MRVS deletion and MRVS Variable Mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2024 04:08 AM - edited 07-05-2024 04:47 AM
Hi All,
Queries for MRVS:
1) Requirement is to make one variable in MRVS mandatory based on one checkbox on catalog item form :
Able to achieve this if I write a onLoad script(using g_service_catalog) on MRVS and make the field in MRVS as mandatory along with a UI Policy making the MRVS as mandatory but unable to achieve it onChange of one checkbox because the moment I will write a onChange Client Script on MRVS it will be unable to access the variable on catalog item form.
2) I need to register that if a row has been deleted from MRVS , if there is a deletion I need to make a checkbox true which indicates row deletion has been done and then collect all the deleted data and show it in multi line text field on catalog item form. From all the community threads it seems that I need to create a Macro and write a code based on session item storage. Need help on code if macro code needs to be written as well.
3)Also is below code considered under good coding practice:
this.cat_g_form = g_form;
I need guidance on above queries.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2024 07:01 AM
Hi @Brad Bowman ,
I got the solution to the first query I mentioned , UI Policy makes the MRVS mandatory to let the user add atleast one row and the mandatory field in MRVS works with onload script on MRVS and it gets the value of catalog item variable from g_service_catalog API.
Could you please advice me on the second query.