Padding at Input and Output side difference

If padding is used for particular item in WTX then how it works ?

   Consider the structure is having fixed Length of 10 with padded 0.

1) If type tree is used in input side of wtx.If data is less then 10 chars then remaining chars should be present in fixed Length with padded 0.
     Ex. input data is 12345 with 5 chars only then 5 ''0'' should be present for validating data proper in this case.The data to satisfy above condition is without invalid error will be as :

  0000012345.

Note : 
         If the input element is dragged on any output element then you can find only 12345 as if input element is padded by char [in this case 0 ] then resulting element at output side will be without padding.


2) If type tree is used in output side of wtx.If data is less then 10 chars then remaining chars will be added automatically in fixed length with padded 0.
     Ex. Output data is "12345'' is hard coded value then 5 ''0'' will be added automatically  in this case.The data to satisfy above condition is with invalid error will be as :
  0000012345

No comments: