You need to sign in to do that
Don't have an account?
Todd B.
How to call two actions from one button on VF page?
I have been handed a fairly complex VF page to update. The are several sections on the page, call updated by clicking on a row in a table. The issue I am having is, when some updates one of the subsections on the page, I need the entire page to refresh. Currently, I have a two button process, the first button is the standard "Save" functionality:
<apex:commandButton value="Save" action="{!saveTask}" status="loadSDMember" oncomplete="RefreshText();" rerender="taskDetail, SDMember, SDMemberSummary, PhoneDetail, debug" rendered="{!editTask}"> <apex:param name="editTask" value="false" assignTo="{!editTask}"/> </apex:commandButton>Then I created a second button to refresh the page
<apex:commandButton value="Press Here After Saving" action="{!getSDMember}" status="loadSDMember" oncomplete="RefreshText();" rerender="taskDetail, SDMember, SDMemberSummary, PhoneDetail, debug"> <apex:param name="taskID" value="{!task.id}" assignto="{!taskID}" /> <apex:param name="editMode" value="false" assignto="{!editMode}" /> <apex:param name="editTask" value="false" assignto="{!editTask}" /> <apex:param name="viewFullRecord" value="false" assignto="{!viewFullRecord}" /> <apex:param name="SDMemberID" value="{!SDMember.id}" assignto="{!sObjectID}" /> <apex:param name="PHID" Value="" assignTo="{!sObjectid02}" /> </apex:commandButton> Is it possible to combined this into just one button?
Raj Vakati
I could say yes .. But can you share the controller method as well for getSDMember and saveTask actions
Todd B.