on 03-12-2007 7:11 AM
Hi All,
I am having a tab delimeted .txt file which contains blank records which need to be supressed otherwise i get empty XML tags in the output as shown below.
- <Header>
<PERNR />
<BEGDA />
<ENDDA />
<SCHKZ />
</Header>
Actually i am getting a tab in PERNR field. I tried the createif function but its not working .Can anyone help me out in this
Hi,
The following way is one way if you are using sender file with content conversion.
NameA.fieldContentFormatting
● Specify trim to remove all the leading and subsequent blanks for a value found. This is the default.
● Specify nothing to ensure that the value remains unaltered.
The second way is..
if target structure is 0..unbound then
source -- exists-- createIf -- target node
or write UDF to handle input string is null then return
ResultList.SUPPRESS in you UDF.before that the target parent node/node should be having occurrences 0..unbound/0..1
please clarify
Regards
Chilla..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinay,
This could help u out
/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vinay,
dont use fieldContentFormatting in sender file adapter you wont reciver space in PERNR.
otherthing use "IF" boolean function in our mapping if blank then supress and pass it to target .
Regards
sreeram.g.reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.