Feb 28, 2012, 1:56 PM
DirectEvent - OnEvent Not Firing if ExtraParam/GridPanel has no selection?
I have the below directevent - two seperate button clicks can call this - however, only on the second button click is the extraparam being used - as otherwise, Gridpanel3 is hidden (when the first possible button to consume this event is clicked) - so problem is thatwhen I click teh first button and Gridpanel3 has no selections - it seems to ignore the onevent fire completely? Is there a way to make the param optional?
Or is there a way to get a specific field of that gridpanel from the code behind, without using an extraparam (I cannot use the accountNumber field as an identity for the store)
Or is there a way to get a specific field of that gridpanel from the code behind, without using an extraparam (I cannot use the accountNumber field as an identity for the store)
<DirectEvents>
<Click OnEvent="getBPRIDByCAS02" Before="if (!this.noMask) {Ext.net.Mask.show({msg: 'Updating Selection Based Upon Denial Codes. Please Wait...'}); }"
Complete="Ext.net.Mask.hide();">
<ExtraParams>
<ext:Parameter Name="id" Value="#{GridPanel3}.getRowsValues({selectedOnly:true})[0].AccountNumber"
Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
Last edited by Tbaseflug; Feb 28, 2012 at 1:59 PM.