Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Doing Dot Walk on Catalog Item Variable default value

Henrik Jutterst
Kilo Sage

Ok.. On a Catalog Item in the variable section, is it possible to dot walk on the default value to another table?. 

Below Default Value gives me the users department name.

javascript:gs.getUser().getRecord().getDisplayValue('department');

 

But what if i have a variable called floor number on department (or something custom) and I want this to auto fill when the user open the catalog item in the portal. Can that be done?

javascript:gs.getUser().getDepartmentID().getRecord().getDisplayValue('u_floor');
javascript:gs.getUser().getRecord().department.u_floor.getDisplayVaule();

 

find_real_file.png

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron

You will need to use script include in default value with below syntax

 

javascript: new ScriptIncludeName().functionName();

 

Regards,

Sachin

View solution in original post

1 REPLY 1

sachin_namjoshi
Kilo Patron

You will need to use script include in default value with below syntax

 

javascript: new ScriptIncludeName().functionName();

 

Regards,

Sachin