UI Page - <g:ui_reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 02:03 PM
Hey all,
Hoping you can assist. I have the following code in a UI page that allows the user to select a record from a table, however, it returns the wrong value. If I change the display value on the table, it will return the correct display value for that record, but then it breaks the form, as I need the original display value from the table to display on selection.
Is there a way, in a g:ui reference, to specify a display of a different field on the record instead of the table default display value? Anyone?
<g:ui_reference
id="stockroom_picker_${grpoli.getValue('sys_id')}"
name="stockroom_picker_${grpoli.getValue('number')}_0"
table="x_nuvo_wm_m2m_parts_bins"
value=""
displayValue=""
show_lookup="true" show_popup="true" query="parts.sys_id=${grpoli.getValue('parts')}^bin.shelf.rack.aisle.stockroom.location.floor=${grpo.u_facility}"
/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2023 10:40 PM
Hi,
Try to make simple like below
<g:ui_reference name="my_reference_element" id="my_reference_element" table="my_reference_table" query="active=true"/>
use small id and value and then check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2023 12:57 PM
ok, simply put, is there a way to override the display value of the selected record? Table display value is BIN, and I need to display PART when selected.