Widget List - add variables from RITM

mathieu_brule
Kilo Sage

Hi everyone 🙂

I have a requirement, for displaying a variable in the list of the RITM on the Service Portal, displayed through Instance of Simple List.

I'd like to configure Display field, given that this variable should be displayed on the first position in my list, but it seems that I can't access to variables :

find_real_file.png

As a workaround, I'd like to add my variable in my secondary fields, like this :

find_real_file.png

it almost works, but I have strange behaviour, in red below :

find_real_file.png

 

Could anyone help me ?

Is it impossible to add my variable field as first element, without creating a field on ritm table, which would be synchronized with my variable ?

As a secondary field, why do I have such a behaviour ?

 

Thanks a lot for your help !

 

Regards,

 

1 ACCEPTED SOLUTION

mathieu_brule
Kilo Sage

Hi,

 

Sooooo ...

I succeeded to add my variable in my list, but only as secondary element. Indeed, the first element can only be a field of the table, as said in this topic.

"secondary_fields": {
   "value": "variables.object,......",
   "displayValue": "variables.object,..."
	},

(Note : "object" is the name of my variable)

I just faced an graphical issue, as mentioned in my first post, due to the fact that there was too much columns... My sys_updated_on column was graphically "merged" with the first column of my secondary fields...

I've also re defined the .col-md-2 CSS class in the simple list widget, in order to reduce the width :

.col-md-2 {
  width: 13.667% !important;
}

 

 

Thanks to all for your help.

 

View solution in original post

9 REPLIES 9

Prasad Pagar
Mega Sage

Hi @mathieu.brule 

It is not possible OOB. You need to have custom widget for it as per my understanding.

See the response from Chuck below

https://community.servicenow.com/community?id=community_question&sys_id=d308c36ddb1cdbc01dcaf3231f9619d3

Thank you
Prasad

I have deleted my reply.

Let's move on

Cheers:)

No worries 🙂

Thanks, Prasad.

 

I've read Chuck's response, and I'm ok with it.

But how could we explain the behaviour when I try to add my variable in the secondary field ? It's as if sys_updated_on field was loaded in my list ...

I'm disappointed, because it almost works, I do have my variable value in my list, for each of my RITMs, but with sys_updated_on data... 😞