Number Generator in MRVS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 11:18 AM
I have read several articles concerning MRVS and how to how to automatically display several rows based on a variable input. I am trying to see if there is a way to include a number generator that will populate the first field in each row starting after the last number populated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 01:44 PM
You can do this with an onLoad Catalog Client Script that applies to the MRVS - so when the add/edit row dialog is opened, if the first variable is blank (so you are adding a row, not editing) it will populate it. Use g_service_catalog.parent.getValue('mrvs_internal_name') to get the contents of any existing rows, then parse it and loop through to get the value of the first variable in the last row, then do whatever kind of number generation you want based on that value...