- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2016 07:21 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2016 12:17 AM
// global scope returns Java String
// app scopes return JavaScript String
gs.getSessionID();
// OR
// global scope only - Java String
gs.getSession().getSessionID();
To show this in the UI to a user:
Display business rule:
g_scratchpad.user_session_id = gs.getSessionID();
UI Action - Client
alert('Your session ID is: ' + g_scratchpad.user_session_id || 'Unknown');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2016 12:17 AM
// global scope returns Java String
// app scopes return JavaScript String
gs.getSessionID();
// OR
// global scope only - Java String
gs.getSession().getSessionID();
To show this in the UI to a user:
Display business rule:
g_scratchpad.user_session_id = gs.getSessionID();
UI Action - Client
alert('Your session ID is: ' + g_scratchpad.user_session_id || 'Unknown');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2016 12:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2016 01:07 AM
Hi Manoj,
gs is not available client side. As @James showed you need to create a display business rule and pass the required value to client with the help of scratchpad.
That Business would look like,
And then you can access the session id in the UI action something like this,
Hope this helps
Srini
PS: Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2016 02:25 AM
Thanks Srinivas Thelu I got the output