Accessing Multi-Row Variable Set value in Client Script.

ajx
Tera Guru

Hi all,

I got a requirement to add the total hours of each row in a Multi-Row Variable Set(MRVS) and compute it and set it to a another variable outside of the MRVS at the client side(preferably an OnChange).

find_real_file.png

After I click Add for multiple days and close the same, I should be able to get the added Integer value in the field shown below. Total work week hours will be sum of add the days total hours for the week.

find_real_file.png

 

I tried multiple ways which was mentioned by @Mark Roethof  and others. But no luck.

Is it possible from Client side? Any help is highly appreciated. Let me know if you need any more info.

1 ACCEPTED SOLUTION

Finally got it working.

The following link is helpful using a Macro(widget).

See this. Hope this will be helpful to anyone who is looking for Adding values in MRVS(Multi Row Variable Set).

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can refer this link on how to check if it was add/remove on MRVS and accordingly update your script

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

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar  : It didn't work as expected.

I ended up trying to add the values using Macros(added a button to add using widget). Can you help me on the code for this Macro? I am not able to get the values added as expected.

 

Thanks in advance.

Finally got it working.

The following link is helpful using a Macro(widget).

See this. Hope this will be helpful to anyone who is looking for Adding values in MRVS(Multi Row Variable Set).