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

Saurav11
Kilo Patron
Kilo Patron

Hello,

The first thing to note is that you will need a customer widget to do this. It's not available OOB because every RITM has different variables so there's no easy way to display them in a list.

You have to create a custom widget for this.

Please find the below thread where Chuck Tomasi confirms the same:-

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

Please mark answer correct/helpful based on impact.

Thank you for spamming the thread and confusing user with same response 🙂 Please try to keep it clean wherever possible just a suggestion.

Thank you
Prasad

Hello Prasad,

1) When I opened the thread there was no response. But I had open 3 or 4 threads together so by the time I posted on this and submitted you probably had answered it earlier.

 2) How did I confused the users if I have answered the same thing not sure what you are referring to over here.

And if the confusion is who he will mark correct these are vey pretty things for me I am bigger than this 

@mathieu.brule Please mark Prasad answer as correct if it applies.

Thanks and Cheers 🙂

I wish I could answer you but dont want to spam thread with unnecessary responses.

I have responded for more than hour now and you responded 30 mins back not sure how you didnt see my response. Infact when someone add the reply you will see it as immediate effect(working on community for more than 8 years now). Anyways you are champion and I appreciate your help/time you spend on thread but just a suggestion donot give duplicate or replies which will lead to same result. Its not about points or whose response is correct. We are all here to help and that should be only motive.

Thank you
Prasad

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.