Difference between client script and script include (server).

Mi4
Tera Expert

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,

1 ACCEPTED SOLUTION

Hi Mi
 
SAP GUI Scripting is required in order to Enable UI elements recognition in SAP GUI. User needs to update scripting setting by configuring his client, then the server system that user is connecting to.you need to enable the scripting before use.
 
Enabling SAP Scripting:-
 
In Service Now,You Have to write the separate scripts for client and Server Side.
 
Client Script:-Every user's Browser has the JavaScript Engine Installed by Default.basically all Rendered Items are configured before they gonna stored in Database using simple Java Script Code embedded in UI Policy or Client Scripts like Facilities.
UI Policy:-
 
Client Scripts:-
 
Server Side Script:-Here we have to deal with the actual data which is stored in Database or needed to be stored in Database.It is also JavaScript code embedded in Business Rule,Script Include.
Business Rule:-
 
Script Include:-

 

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat

View solution in original post

11 REPLIES 11

Geetanjali Khy2
Mega Guru

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

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,

Hi Mi
 
SAP GUI Scripting is required in order to Enable UI elements recognition in SAP GUI. User needs to update scripting setting by configuring his client, then the server system that user is connecting to.you need to enable the scripting before use.
 
Enabling SAP Scripting:-
 
In Service Now,You Have to write the separate scripts for client and Server Side.
 
Client Script:-Every user's Browser has the JavaScript Engine Installed by Default.basically all Rendered Items are configured before they gonna stored in Database using simple Java Script Code embedded in UI Policy or Client Scripts like Facilities.
UI Policy:-
 
Client Scripts:-
 
Server Side Script:-Here we have to deal with the actual data which is stored in Database or needed to be stored in Database.It is also JavaScript code embedded in Business Rule,Script Include.
Business Rule:-
 
Script Include:-

 

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat

Hi,

Thank you for your comment.

I understood more than before thanks to your SAP information.

Regards,