Reputation: 1343
Per help me getting a single XSP.partialRefreshGet to work. That is working fine for me noe. Thank you. Now I need to get multiple refreshes to work:
XSP.partialRefreshGet("#{txtRateType}", {
onComplete: function() {
XSP.partialRefreshGet("#{CurrentBalancesSection}", {
onComplete: function() {
XSP.partialRefreshGet("#{PricingSection}}", {});
}
});
}
});
I get a run time error. Any idea what I am doing wrong?
Upvotes: 0
Views: 674
Reputation: 21709
You are missing the id part again (and you had an extra curly brace), Bruce :-)
XSP.partialRefreshGet("#{id:txtRateType}", {
onComplete: function() {
XSP.partialRefreshGet("#{id:CurrentBalancesSection}", {
onComplete: function() {
XSP.partialRefreshGet("#{id:PricingSection}", {});
}
});
}
});
This is client side JS and the functions need client side ids. You use {id: to tell XPages to return the client side id of a server side component.
Upvotes: 3