- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 04:18 AM
Hi
I have 2 pages that have data from one table in the DB.
I want to write client script for the 2 pages.
Can i write 1 client script for the 2 pages ? or to write the same script include twice ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 06:05 AM
Script includes are for server side code libraries. UI scripts are the client side counterpart. You need to use a UI script to store your common code that you call from the various client scripts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 05:02 AM
When you say 2 pages, are these different screens/forms of same table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 05:28 AM
yes ,
deferent screens, that i need to write in the both screen the same client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 05:08 AM
Hello Abed,
You can leverage UI Scripts to implement similar use cases.
Please check below documents and see if it helps:
Hope this helps.
Thanks,
Abhishek
If this reply assisted you, please consider marking it Correct, Helpful, or Like it.
This helps other customers to learn from your thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2017 05:10 AM
Hi Abed,
Take a look at UI Scripts. They are a "library" that you can call. Yes, you'll have some similar code to CALL the functions in the UI script, but it's not duplicate code per se. UI scripts are similar to their server counterpart called script includes.