- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 06:42 AM
Hello All,
Im trying to send the array values from script include to Server Script.
When i send from Script include i can see that the array values are getting sent in New Line.
I get the array values in the Server script and trying to print in the HTML portion.
So in the portal, the array values don't get printed in new lines.
Here is the Server Script :
(function() {
/* populate the 'data' object */
/* e.g., data.table = $sp.getValue('table'); */
if(input.val){
gs.log('value is'+input.val);
gs.addInfoMessage('Message is'+input.val);
data.a=new getValues().Application(input.val);
gs.addInfoMessage("server" + data.a);
}})();
Here is the HTML Code :
<div>
<p> Applications : </p>
{{data.a}}
</div>
any help on how to print the array values in new line ????
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 07:14 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 07:06 AM
did you tried
gs.addInfoMessage("server" + data.a + "\n");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 07:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2019 08:55 AM
Hey Navjot,
This really helped a lot.
Thanks for this.
Also i need one more help.
How can I add the select box beside every application which has few values in it.??
Thanks in Advance.