- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 11:17 PM
Hi All,
I have one string where i stored glide record information like this Name1:Value1,Name2:Value2,Name3:Value3,Name4:Value4 . But here the client gets more confusion like that so that i want
Name1:Value1,
Name2:Value2,
Name3:Value3,
Name4:Value4
Please find the below script which i wrote.
state_report= sr.u_productnumber+ ':' +sr.u_hpprodfamily+ ',' +state_report;
Can anyone help on this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019 01:09 AM
Hi,
Use below script; instead of \n I have used two spaces
state_report= sr.u_productnumber+ ':' +sr.u_hpprodfamily+ ',' + ' ' + state_report;
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 11:23 PM
use '\n' for new line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 11:27 PM
Hi,
you can use the newline character \n at the end
state_report= sr.u_productnumber+ ':' +sr.u_hpprodfamily+ ',' + '\n' + state_report;
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 11:37 PM
Hi Bawiskar ,
Very thanks for the solution provided for new line.
@Kindly help on the second scenario
for the same i want space like this
Name1:Value1, Name2:Value2, Name3:Value3, Name4:Value4
what needs to be done?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 11:40 PM
Please see my response, should answer your question
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022