
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 04:25 AM
Hi,
I used this line in my ui macro <g:evaluate var="jvar_guid" expression="gs.generateGUID(this);" />
I want to debug it and want to know which value will store in the variable var, Can anyone tell me how to debug UI Macros.
Thanks,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 10:02 AM
here you go.
what i had done now. i have created on ui macro and defined the one jvar into the break point to check the log.
UI Macro:
now the question is how did you invoke your ui macros, for me i just called it in my ui page
so for this i randomly created on ui page:
UI Page:
once you click on "Try It" on the ui page then scroll down and try to search "BreakPoint tag start". refer the screenshot below that i had searched and found.
Note: enable all the session debug.
hope it will help you now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 05:26 AM
I tried it but i didnt see the breakpoint and its variable there... I found lot of unwanted stuff.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 10:02 AM
here you go.
what i had done now. i have created on ui macro and defined the one jvar into the break point to check the log.
UI Macro:
now the question is how did you invoke your ui macros, for me i just called it in my ui page
so for this i randomly created on ui page:
UI Page:
once you click on "Try It" on the ui page then scroll down and try to search "BreakPoint tag start". refer the screenshot below that i had searched and found.
Note: enable all the session debug.
hope it will help you now.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 10:23 AM
Hi
But here i am using OOB UI Macro on caller field in incident table.
<g:evaluate var="jvar_guid" expression="gs.generateGUID(this);" />
What this GUID Will generate in my case. I found that i will give the sys_id but i which sys_id it is giving.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 12:17 PM
gs.generateGUID() is used to generate unique sysid.
once it get generated you can use it to perform other task for example creating a record through this.
for eg: you can refer this thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 05:21 AM
Is there anyway to print that variable anywhere either in console or in html like that.. for dubugging easy