How to use g_scratchpad can u explain me with any real time example with code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2018 05:44 AM
How to use g_scratchpad can u explain me with any real time example with code?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2023 10:26 PM
Is there any table level validation for g_scratchpad like the table of both business rule and client script should be same or something ?
Like for example :- what if i want to pass some value from incident to problem ? is that possible with g_scratchpad?
Regards
Ansh Mahajan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2025 11:45 PM
Can we use one g_scratchpad in multiple client scripts?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2018 10:22 AM
HI,
scratchpad is nothing but a way of creating a temporary variable at server side which can be passed to client side when the form is loaded. Whenever client code need a data from server side and we want it immediately on load of form for example all caller related data. Then we use display BR that create a temporary scratchpad as below:
g_scratchpad.email = current.caller_id.email;
and then we can use this in client script as g_form.setValue('email',g_scratchpad.email);
THanks,
Ashutosh Munot

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 09:16 AM
HI,
Can you close this thread.
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2018 10:59 AM
Hi Chaitanya,
Refer the following links, it contains the description with simple examples.
Understanding Scratchpad Part 1 (g_scratchpad)
Display Business Rules & g_scratchpad
Mark If Correct/Helpful
Thank You
Regards,
Ajay
www.DXSherpa.com