You need to sign in to do that
Don't have an account?

calling apex command button twice results in the output
i have 3 command buttons with 3 different panels getting cases based on status.
If there are records in all Case Status then it is working fine but sometimes when there are no records in particular status
i need to hit the command button twice to get the details.
Any workaround for this??
If there are records in all Case Status then it is working fine but sometimes when there are no records in particular status
i need to hit the command button twice to get the details.
Any workaround for this??
<apex:commandButton value="1" action="{!firstButton}" /> <apex:commandButton value="2 action="{!secondButton}" /> <apex:commandButton value="3" action="{!thirdButton}" ;"/> <apex:outputPanel id="one" title="one" rendered="{!firstPanel}"> ---retreivedata---- </apex:output panel> <apex:outputPanel id="two" title="two" rendered="{!secondtPanel}"> ---retreivedata---- </apex:output panel> <apex:outputPanel id="three" title="three" rendered="{!fthirdPanel}"> ---retreivedata---- </apex:output panel> public void firstButton() { firstPanel=true; secondPanel= false; thirdPanel = false; customethod1(); } public void secondButton() { firstPanel=false; secondPanel=true; thirdPanel = false; customethod2(); } public void thirdButton() { firstPanel=false; secondPanel=false; thirdPanel = true; customethod3(); }
Give that a shot and see if it helps. I know you're just pasting pseudo code, so there could be something in the actual code we're not seeing that is also causing your issue. If you still have problems with it, please post the actual code next time.