Reference field is showing empty but sys_id is present.

Twinkle S
Mega Sage
Mega Sage

Hi all,

On the record there exist field: model. Which when i set from script doesnt display the value and shows empty record . But when i try to see model's value, it has sysid .I tried checking the display value and dictionary override, no issue from that front.

Any leads?

 

twinkle4_0-1691740337429.png

 

 

 

 

twinkle4_0-1691740084989.png

 

Regards

Twinkle 

1 ACCEPTED SOLUTION

Twinkle S
Mega Sage
Mega Sage

Just solved it.

It was not taking the right sys_id  which should belong to the cmdb_model table.

 

Thank you

View solution in original post

4 REPLIES 4

Mohith Devatte
Tera Sage
Tera Sage

hello @Twinkle S ,

So field which is set to display true has a value or empty value ?

 

 

Hi Mohith,

Field which is set to display true is display_name  and it has value in it.

Samaksh Wani
Giga Sage
Giga Sage

Hello @Twinkle S 

 

You should use :-

 

 

alert(g_form.getDisplayValue('model'))

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Twinkle S
Mega Sage
Mega Sage

Just solved it.

It was not taking the right sys_id  which should belong to the cmdb_model table.

 

Thank you