wcRenderContext.testForChangedRC (id, propertyNames)
The wcRenderContext.testForChangedRC function searches the specified array of property names for a render context property that has changed since the last time a render context changed event was detected. It returns a value of true if any of the specified render context properties have changed, and returns a value of false if none of the specified render context properties have changed.
Example
if(wcRenderContext.testForChangedRC("traditionalShipmentDetailsContext", ["beginIndex"])){
myWidgetObj.refreshWidget("refresh", myRCProperties);
}
Parameters
- id
- (String) The render context ID.
- propertyNames
- (Object) The property names to check for render context updates.