- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 08:58 AM
Hello,
Sorry for the elementary question.
I'm studying servicenow, and also learning about development and mechanics.
My question:
Why does servicenow write the processing separately with client script and script include (server)?
For example, in SAP, everything is written on the server side, including screen control and check processing.
What is the meaning and advantage of writing the processing separately?
We believe that understanding this mechanism will help you code efficiently in the right places.
Regards,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 10:01 AM
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 09:09 AM
Hello,
Basically Client scripts runs on web browser level, when client-based events occur, such as when a form loads, after form submission, or when a field changes value.
For ex, Client script we can use to alert something on load of form.
or if you want to do some manipulations on change of field
In short, we can only use client script for the manipulations that we can see on our browser.
But, Script include use to work for back end database operations which are not possible using client script.
Kindly mark the answer as Correct and Helpful if this answers your question.
Thank You.
Regards,
Geetanjali Khyale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 09:19 AM
hi,
Thank you for reply.
I have been developing with SAP so far, but in SAP, even the process of writing with the client script called Service Now was written on the server side.
So I'm confused.
Is there a difference in making this part?
SAP can write screen processing on the server.
In ServiceNow, it is written separately for the client and the server.
Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 10:01 AM
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 06:57 PM
Hi,
Thank you for your comment.
I understood more than before thanks to your SAP information.
Regards,