The CreatorCon Call for Content is officially open! Get started here.

Setting Reference Field Values from Another Value of the Same Table

Wasdom_Kung
Tera Guru

Hello,

I currently have a reference field that pulls information from a table - as you can see below there are multiple entries for A053501, but the second and third columns of this table will have differing information (This is fine).

find_real_file.png

When a user selects a value, say row 1 from above, the field 'All associated trays' should populate all of the entries with the same ID (A053501) just so the user can cross-check their selection.

find_real_file.png

I've read multiple threads about using javascript as a reference qualifier:

javascript:"u_all_associated_trays=" + current.u_unique_tray_id

and also using / setting dependent fields (I haven't been able to find this though)

 

Any help is appreciated.

1 ACCEPTED SOLUTION

Wasdom_Kung
Tera Guru

This was actually re-designed to be achieved using a script include and by changing the field from a reference to a unique value field (This has a big performance impact considering how many values we are using - over 30k - but it will do for the time being)

View solution in original post

14 REPLIES 14

What is the name of 1st column?

find_real_file.png

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ah, I have corrected my previous reply, here is the table:

It is u_tray_id

find_real_file.png

Then your reference qualifier would be:

javascript:"u_tray_id=" + current.variables.u_unique_tray_id.u_tray_id.toString();

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Saurav11
Kilo Patron
Kilo Patron

Hello,

Looks like you are using a catalog item:-

So use the below reference qualifier:-

javascript:"u_all_associated_trays=" + current.variables.u_unique_tray_id

Please mark answer correct/helpful based on impact.

Wasdom_Kung
Tera Guru

This was actually re-designed to be achieved using a script include and by changing the field from a reference to a unique value field (This has a big performance impact considering how many values we are using - over 30k - but it will do for the time being)