How to call UI macros in to Ui page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:02 AM
Hi All,
I want to call ui macro in to ui page so for that i used below tag but its not working and its showing blank page please help me on this.
<g:macro_invoke macro="ui macro name" />
Regards,
mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2016 11:58 AM
A couple of things to check:
1. make sure the part highlighted in bold is exactly what your macro is named, including proper case, underscores, etc...: <g:macro_invoke macro="ui macro name" />
2. If your ui page is part of a scoped application, make sure the macro was created under the same application. It should have an API Name showing for the macro if it was done correctly.
3. If you are creating this for a Service Portal page, it cannot be called with the above <g: /> tag since Service Portal will not accept jelly syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016 10:02 AM
HI Tim,
Apologies for late response i want to import the ui macro in to ui page still i am not able to do that.
- I am trying to do this in demo instance ui macro name:catalog_search_messages.
- And i create new ui page in demo instance i am using like to import ui macro in to ui page <g:macro_invoke macro="catalog_search_messages" />
- But i cant please give me suggestions on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016 12:57 PM
Can you provide a few more details please. I created a new macro and ui page and had no problems displaying the macro with the above code.
Some things that might help determine why it will not display:
Code that you are using in the ui page and ui macro.
Screen shots of the rendered page.
Screen shots of the ui page and macro.
Are you doing this in a scoped application?
Is the <g:macro_invoke macro="ui macro name" /> command in the HTML box of the ui page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2016 10:28 PM