AttachPostProxyExecuteBinding Method
The AttachPostProxyExecuteBinding method binds a method that resides in a proxy or presentation model to a PostExecute method. Siebel Open UI finishes the PostExecute method, and then calls the method that AttachPostProxyExecuteBinding identifies. It uses the following syntax:
this.AttachPostProxyExecuteBinding("method_to_call", function(methodName, inputPS,
outputPS){"binder_configuration";return;});
where:
method_to_call is a string that identifies the method that Siebel Open UI calls.
binder_configuration is a string that identifies code that Siebel Open UI runs after the applet proxy sends a reply.
For more information, see Refreshing Custom Events and PostExecute Method.
In the following example, the user clicks the New button in an applet, Siebel Open UI runs the NewRecord method, and then the client receives the reply from the Siebel Server. In this situation, you can use the following code to run some logic in the presentation model after Siebel Open UI runs the PostExecute method as part of the element life cycle:
this.AttachPostProxyExecuteBinding("NewRecord", function(methodName, inputPS,
outputPS){"Do Something for New Record";return;});
The following code runs this same logic in the presentation model for all methods:
this.AttachPostProxyExecuteBinding("ALL", function(methodName, inputPS,
outputPS){"Do Something for all methods";return;});
For more information, see NewRecord Method.
For more examples that use AttachPreProxyExecuteBinding and AttachPostProxyExecuteBinding, see Customizing the Presentation Model to Call the Siebel Server and Delete a Record and Calling Methods for Applets and Business Services.