My dojo button bar is connected to a csjs function that performs a partialrefreshget() on a datable control. The datasource for the datatable control is a view.
Within the this.keys property, I have implemented logic to check if the partialrefresh was initiated by examining the context.getSubmittedValue(). While testing this approach, I observed that the code snippet below is executed twice.
<xp:this.keys><![CDATA[#{javascript:
var vec = new java.util.Vector()
vec.add("category");
if(context.getSubmittedValue()!=null){
var x = context.getSubmittedValue().trim();
print("--")
}
return vec;}]]></xp:this.keys>
The print statement is logged twice in the console, causing the logic to run twice as well. I am unsure why this duplication occurs and would appreciate any insights on how to address it. Should I be checking for submittedvalues in a different location?