- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 02:42 AM
does the <g:ui_reference macro support an attribute for specifying a default value ? I can set it using a client script but that is not an ideal scenario...
the <g:ui_reference macro is to be invoked in an UI page...
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 08:02 AM
Hey makosko,
Also try setting displayvalue too. Did you try that?
<g:ui_reference name="ref" table="${table_name}" value="<give_sys_id_of_default_value_here> displayvalue="<display_Value_here>" "/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 07:54 AM
<g:ui_reference name="ref" table="${table_name}" value="<give_sys_id_of_default_value_here>"/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 08:00 AM
thanks for your reply. looks like there is some kind of bug with rendering a reference field in my instance since I can`t see a record display name, although I know it was loaded.... I recall trying value, default_value and default as attributes... thanks for your help anyway..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 08:02 AM
Hey makosko,
Also try setting displayvalue too. Did you try that?
<g:ui_reference name="ref" table="${table_name}" value="<give_sys_id_of_default_value_here> displayvalue="<display_Value_here>" "/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 08:06 AM
that did the trick
<g:ui_reference name="ref" table="sys_user" value="${gs.getUserID()}" displayvalue="${gs.getUser().getDisplayName()}" />