UI Page - <g:ui_reference

Wade Clairmont
Tera Guru

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}"
/>

2 REPLIES 2

Kalyani Jangam1
Mega Sage
Mega Sage

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

Wade Clairmont
Tera Guru

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.