Calling UI Macro
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2024 05:24 AM
Can we call and print a specific g2 evualate value from parent UI Macro to child UI macro, if yes please provide the syntax to call
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2024 05:37 AM
Hi
Can you try this
Parent Macro
<g2:evaluate var="currentUserName" expression="gs.getUser().getFullName()" />
<!-- Pass the value to the child macro -->
<g2:invoke macro="child_macro" currentUserName="${currentUserName}" />
Child Macro
<j2>${currentUserName}</j2>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 08:23 AM
Please suggest another approach. This is giving error : Avoid Dynamic JEXL Expressions in an Evaluate