Is it possible to inline edit a value in a Multi-Row Variable Set?

Hendrik6
Kilo Guru

Hello

 

Brad outline in his blog post a great example of a Multi-Row Variable Set: https://www.servicenow.com/community/developer-blog/exploring-the-multi-row-variable-set/ba-p/229153...

 

Currently, I would need to click on the edit button and then a pop-up appears where I can edit and finally save the value. The edit button is the one with the pencil icon. However, I am wondering whether it is possible to inline edit the different values of the set? 

 

I tried to use embedded lists in the service portal, because such lists support inline editing. But the service portal, does not support embedded lists. Hence, I am following the approach with a Multi-Row Variable Set.

 

Kind regards,

 

Hendrik

1 ACCEPTED SOLUTION

@Hendrik6 Yes we can do that using some JavaScript libraries. Ex: DataTables JavaScript library

 

We can include the library in ui script and add it as dependency in the widget and use library functions to render the table.

 

Without using any library and doing it custom way can be tedious and long process.

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

View solution in original post

6 REPLIES 6

jaheerhattiwale
Mega Sage
Mega Sage

@Hendrik6 Its not possible to edit the Multi-Row Variable Set inline. There is no way to implement is as well.

 

Please mark as correct answer if this has helped you

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

Hendrik6
Kilo Guru

Thank you Jaheer!

Would it be possible to achieve this funtionality by implementing a custom widget: https://docs.servicenow.com/en-US/bundle/tokyo-servicenow-platform/page/build/service-portal/concept...

 

If this is possible, how difficult do you think is this task?


Kind regards,

 

Hendrik

@Hendrik6 Yes we can do that using some JavaScript libraries. Ex: DataTables JavaScript library

 

We can include the library in ui script and add it as dependency in the widget and use library functions to render the table.

 

Without using any library and doing it custom way can be tedious and long process.

 

Please mark as correct answer if this solves your issue.

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

Hendrik6
Kilo Guru

Thank you Jaheer for your helpful insights!