not able to map fields in catalog item

umaaggarwal
Giga Guru
Giga Guru

i created a category in catalog > created a catalog item 

i have a drop down in catalog item wherein user can select any person he is raising that request for, however the problem is that there is no map to option in catalog item, so not able to map that reference field ( referencing to sys_user) to requested for. 

Can someone please help here ?

 

 

7 REPLIES 7

Community Alums
Not applicable

Hi Uma,

I suppose you are creating Variables under the Catalog Item. Whilst, creating new Variable, you will have to choose type as Reference and  You will have to choose the field type as Reference and also in Type Specification give Reference table value as 'sys_user'.

Below are screenshot and let me know in case of any issues.

On Catalog Item form-

find_real_file.png

 

 

 

 

find_real_file.png

 

Shweta KHAJAPUR
Tera Guru

Hi,

The Map To field is visible when catalog item is of type Record Producer

Shashikant Yada
Tera Guru

You can add the Run Script under the Workflow, were you can write below code:

 

current.requested_for = current.varaiables.varaiable_name;

OR

on RITM you can wite OnBefore Business rule on Insert:

current.u_requested_for = current.variables.varaiable_name;

 

Thanks

Shashikant

Shweta KHAJAPUR
Tera Guru

Hi,

There is Client script written on map_to field. The field is visible when item_type is record producer and field is invisible for other item type. Please find below client script