Set value in a single line text variable in a multi row variable set based on producer variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
How can we set value in a single line text variable which is present in the multi row variable set, based on one of the reference variable [which is present in the record producer].
Name of the reference variable which is present in the record producer : Sales Org
Name of the Single Line Text variable which is present in the multi row variable set : Sales Organization
When user selects a value in the reference variable : 'Sales Org' from record producer and selects 'Add' on the multi row variable set ->New row opens
Which is having a single line text variable named 'Sales Organization '.
I wants to autofill MRVS 'Sales Organization' field based on the selected value in Sales Org (outside MRVS).
Could you please help me here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
I tried with an OnLoad Client Script in the MRVS level . But this is not working. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @Amrutha K V
You can use an onLoad Catalog Client Script that applies to the MRVS instead.
Within this script, you can reference variable values on the parent form using g_service_catalog.parent.getValue('var_name').
sample code:
var display = g_service_catalog.parent.getValue('sales_org');
g_form.setValue('sales_organization', display);
