on 08-25-2009 9:50 PM
Hi,
I have a RFC to SOAP scenario.
RFC has an internal table for long text and the Webservice expects all the lines in a single field. So I concatenate all the lines using UDF and pass it to that field.
I want to add a line break between each line in the internal tableso that it displays exactly the same way the long text is formatted in CRM. Can you please suggest a way to achieve this?
Thanks,
Venkat.
Hi Venkat,
Create a Value user defined function add. Have two arguments u2018au2019 and u2018bu2019.
Imports: java.*;
Add this code to the UDF:
String lines;
lines = "";
lines = lines.concat(a + '\n' + b + '\n' );
return lines;
Then it puts the u2018au2019 value and adds the new line and then puts the u2018bu2019 value. If my input of u2018au2019 and u2018bu2019 is Satish and hi then the output would be:
Satish
hi
You can modify to your requirement.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Venkat,
It should not show /n in your target payload. I see you put double quotes for /n. Instead it should be put only single quote. First if you see a new line in your target payload in xi then we will think of target application. First we will fix ours and then we will see target application later venkat.
Give a try and let us know.
Regards,
---Satish
Hi Sathish,
I tried but it is giving the following error
Source code has syntax error: MMCreatePrimaryItem_.java:229:
unclosed character literal
result1 += tdline[j] + ' \n ' ;
Here is my source code
String result1=new String();
for(int j=0; j<tdline.length; j++)
result1 += tdline[j] + ' \n ' ;
{
result.addValue(result1);
}
Thanks,
Venkat.
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.