function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rahavan Arumugam AlameluRahavan Arumugam Alamelu 

how to pass multiple parameters(arguments) in the action functions oncomplete event

Hi, 

Am trying to pass the multiple parameters in oncomplete event in the actionfunction component in visualforce. The oncomplete calls the javascirpt function. Trying to pass the recordid as one of the parameter(argument) in the oncomplete event. 

But it is not working. Please advise. 

In the command button onclick we are able to pass the record id(syssupportid) to the javascirpt:

<apex:commandButton reRender="detailsHeader1,detailsHeader2, detailsHeader3,CompDetBlockOther" value="Update" id="btnUpdateCert" styleClass="open-DeployDialog button btn btn-primary btn-right ahover" onClick="uploadFileDetails(1,'{!syssupportid}');" status="attachCertification1"/>
<apex:param name="systemIDSumm" value="{!sysSupportId}" assignTo="{!systemIDSumm}"/>

But unable to do the same in the oncomplete event of action function:

<apex:actionFunction name="AttachCertFile2" action="{!AssignCertSum}" status="uploadCertfile1" onComplete="uploadFileDetails(3,'{!sysSupportId}');">

Please advise. 

Thanks