Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi,
I am trying to return two strings in two next lines but it does not work. Could you please correct the script on what I am missing.
var result = "Mashup1" +\n
"Mashup2"
Thanks in advance,
Shalini V.
Solved! Go to Solution.
For that, you should use InfoTables and DataShapes.
var result = "Mashup1" + '\n' + "Mashup2";
Or
var result = "Mashup1" + "\n" + "Mashup2";
Both should work.
Hi ashaban,
Thanks for your swift reply. I tried both the script but it prints on the same line. Could you please tell me if there is any other way to achieve it?
The result should be used in a mashup.
Bind the result string to a Text Area widget.
Hi ashaban,
Actually I wanted to display the result in combo box or list. I am trying to display it as two items where I can choose each item individually.
For that, you should use InfoTables and DataShapes.
If the responses provided by @ashaban answered your questions, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon