- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 01:13 AM
Hi,
Can anyone explain me the meaning of this.getParameter('sysparm_id').toString().split(','); in layman terms. Kindly help.
Regards
Suman P.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 01:18 AM - edited 09-22-2023 01:19 AM
Hello @Community Alums ,
this.getParameter('sysparm_id'): It's like asking script to give you a specific piece of information called 'sysparm_id'. for example if you pass some information from Client script to script include.
.toString(): Once you've got that piece of information, it might be in a format that's not easy to work with, like it's written in a secret code. `.toString()` is like decoding it and making it understandable String Format.
.split(',') Now that you have a plain piece of information, it might actually be a list of things separated by commas. .split(',') is like cutting that list into individual pieces. So, if you had "apple,banana,orange," it would split it into three pieces: "apple," "banana," and "orange."
Kindly mark correct and helpful if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 01:18 AM - edited 09-22-2023 01:19 AM
Hello @Community Alums ,
this.getParameter('sysparm_id'): It's like asking script to give you a specific piece of information called 'sysparm_id'. for example if you pass some information from Client script to script include.
.toString(): Once you've got that piece of information, it might be in a format that's not easy to work with, like it's written in a secret code. `.toString()` is like decoding it and making it understandable String Format.
.split(',') Now that you have a plain piece of information, it might actually be a list of things separated by commas. .split(',') is like cutting that list into individual pieces. So, if you had "apple,banana,orange," it would split it into three pieces: "apple," "banana," and "orange."
Kindly mark correct and helpful if applicable
