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

Reference to extended table fields

Koji Yanase
Tera Contributor

var tbla = g_form.getReference('u_table_a');

if (tbla.u_field_b == 'true'){.....................

The code above does not work because 'u_field_b' belongs to 'u_table_b' which is an extended table of 'u_table_a'.

Is there any easy way to access 'u_field_b' using sys_id of 'u_table_a' in client script?

5 REPLIES 5

vinitha3
Tera Guru

Easy way ,


Navigate to tables and columns in the application navigator or the filter navigator,


Select the table name and its corresponding columns come visible in the right hand side.



For eg, I selected the Incident table and caller id is the reference field.


this is how we can fetch the email id of a caller by DOT-WALKING.



Copy the yellow marked text and paste it in client script code.



find_real_file.png


Sorry. My question is about extended table.


Then, its just the



currenttablename.fieldname.



we need not reference it with the extended table name.


I tried to alert 'tbla.u_field_b'. But it returned "Undefined".


I hope there is an additional qualifier for extended table.


Thanks.