How can i make a view for reference field(Reference LookUp) ?

Karun Pandey
Tera Contributor

I want to change the location table column list view   for a reference type variable.

I have a catalog item on which i have a reference type variable and when we click on the reference lookup search icon a reference table open a list view and this list view have different column view and I want to show new view of the list of the table(i have created new list view ).

So how to show a different view on the reference field lookup ?

15 REPLIES 15

Yes i know but list control options but if i change the list layout from here then when ever i use this table the reference lookup show the same layout if i use this table somewhere else also .So i just want to change the column layout for one variable only   .Do i make sense to you or i will explain this in more better way?


Hi Karun,



I believe I understand your situation. Correct me if I am wrong. I'll use an example of user1 field on table A referencing sys_user and user2 field on table B referencing the same table.



When you click the magnifying glass on user1, you want the list of users to come up with a certain layout.


When you click the magnifying glass on user2, you want the list of users with a different layout.



Unfortunately, this isn't possible to be that prescriptive since the magnifying glass specifically requests for the sys_ref_list view each time.


Yes thank you sir(ctomasi) i just want to do this only i tried it but was not successful .So i was thinking for making one ui macro which is same as   reference variable .and on the click i can open different view ?Or something else i can do any idea?


Hi Karun,



Can you go through the similar discussion in below thread and check if this helps.


Different sys_popup per view


<j:jelly xmlns:j="jelly:core" xmlns:g="glide" xmlns:g2="null" xmlns:j2="null" trim="false">


  <g:ui_reference name="parent_id" columns="name" id="parent_id" table="cmn_location" query="active=true" completer="AJAXTableCompleter" />




Can i set the columns view different here then the original table view of columns.