- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2018 04:51 AM
- 8,975 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2018 04:57 AM
Hi,
g_scratchpad is a temporary variable to pass server side values to client side if client need server data. Display business rule is used to initialize scratchpad and make it available to client script.
Ex: if you want caller information then we use it in below manner.
Business rule:
(function executeRule(current, previous /*null when async*/) {
g_scratchpad.email= current.caller.email;
g_scratchpad.phone= current.caller.phone;
})(current, previous);
Client Script :
function onLoad()
{
g_form.setValue('email',g_scratchpad.email);
g_form.setValue('email',g_scratchpad.phone);
Let me know if you need any info.
Thanks,
Ashutosh Munot

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2018 05:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2018 06:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2018 06:45 AM
Hi AnjuShri,
g_scratchpad Object passes the information from server to the client, when the client requires information which are not available on the form.
Refer this link which will help to understand the basic concept :-
Please mark it Correct or Helpful, if it works based on impact....!!!!
Warm Regards,
Priyanka
www.dxsherpa.com