Hello!
I've tried to change the viewScope in the CSJS, and this is the code I have in the radio button group:
var v_id="#{id:radioPresType}";
var v_result = getRadioVal(v_id);
"#{javascript:viewScope.presType='" + v_result + "'}";
XSP.partialRefreshGet('#{id:presTypePanel1}', {
onComplete: function() {
XSP.partialRefreshGet('#{id:presTypePanel2}', {
onComplete: function() {
XSP.partialRefreshGet('#{id:presTypePanel3}', {
onComplete: function() {
XSP.partialRefreshGet('#{id:presTypePanel4}');
}
});
}
});
}
});
I can confirm that the "v_result" does evaluate to the proper value, but the viewScope presType comes out as "+ v_result +", instead of reading the value. I've tried many different syntaxes, but haven't been able to get it to work.
The partial refreshes, on their own, work. But, I'm using the viewScope variable to show or hide elements within the several panels.
Any ideas? Am I on the right track, or am I completely off base for what I want to do?
Any assistance would be greatly appreciated.
Thanks, in advance!
Steve in NYC