Configuring Siebel Open UI > Customizing Siebel Open UI > Customizing Events >
Refreshing Custom Events
Siebel Open UI does not come predefined to refresh a custom event. The example in this topic describes how to modify this behavior. To refresh custom events
- Add the following code:
this.AddMethod("RefreshHandler", function(x, y, z){ // Add code here that does processing for RefreshHandler. });
This code adds the RefreshHandler custom event handler.
- Add the following code in the presentation model so that it is aware of the event that the RefreshEventHandler specifies:
this.AttachEventHandler("Refresh", "RefreshHandler");
For more information, see AttachEventHandler Method.
- Add the following code in the bindevents method of the plug-in wrapper:
this.Helper("EventHelper").Manage(buttonEl, "click", { ctx: this }, function(event){ event.data.ctx.GetPM().OnControlEvent("Refresh", value1, value2, valueN);
This code binds the event to the presentation model. For more information, see OnControlEvent Method.
|