How to use g_scratchpad can u explain me with any real time example with code?

chaitanya kuma2
Giga Contributor

How to use g_scratchpad can u explain me with any real time example with code?

10 REPLIES 10

Hi @SaiRaviKiran Ak 

 

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

Can we use one g_scratchpad in multiple client scripts?

Ashutosh Munot1
Kilo Patron
Kilo Patron

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

HI,

Can you close this thread. 

 

Thanks,
Ashutosh

Not applicable

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
find_real_file.png
www.DXSherpa.com