on 06-24-2009 5:09 PM
Hi Experts,
i am working on xml to fcc scenario.In target text file i want line gap between each record.
eg:
1001,ABCD,23
1002,CDF,45
1003,FSF,34
what are the parameters do i need to provide in reciever fcc adapter?
please help me in this issue.
Regards,
Radhika.
Channel will add only single line break, so you add newLine in mapping mannually by below UDF. You may give third field as input to this UDF. It will work fine
String string = ( new StringBuffer("\n")).append(a).toString();
return string;
thanks,
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Execute below statement it will work.
record.endSeparator : nl
record.endSeparator : nl
or
record.endSeparator : nl
record.beginSeparator : nl
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radhika,
I guess you can achieve this with "NameA.absoluteRowWidth=<noOfColumns>" along with "xml.endSeparator".
If the separators do not contain any line breaks, the text document is generated as a single line of text. To restrict the width of the text, use this parameter. <noOfColumns> represents the maximum number of columns in this case. This parameter also functions together with the specification of a line break for xml.endSeparator.
This value requires NameA.addHeaderLine=0 to be specified.
Give a try..
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
i have also the same requirement.
i tried with both the cases what u suggested.i didn't get required output.
pls suggest me any other ways to get the requirement.
regards,
bhuvan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Radhika,
Put endSeparator twice like 'nl''nl'
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
You can specify field.beginSeparator as 'nl' for the first field(the field which has 1001,1002,1003)
Thanks
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.