| So what Bruno P. Kinoshita suggested works. Thanks! However, the programmatic update of an Active Choice parameter via javascript suffers from the luck of a stable parameter element identifier. Every time the configuration is updated the div id changes. Preferably, we will generate a stable element id for the formatted HTML element that the AC parameter generates and then use it to get the AC parameter ID dynamically. So, if we provide each of the input boxes generated from ACRR_1 and ACRR_2 (referencing ACRR_1) in the example above an id lets say id1, id2 respectively, we can use the following pattern:
document.getElementById("id1").value = 'InputBox1_Value';
//now get the Active-Choice Reactive Reference ID programmatically-avoids luck of stable ID issue
parentId=document.getElementById("id1").parentNode.id
//the next line triggers an update to the ACRR_2
jQuery('#'+parentId).trigger('change')
This strategy allows one to use javascript to update Active Choice parameters and cascade these changes to other AC parameters that reference them. |