Whoever working on Siebel Open UI developement feels like calling Presentation Models’ methods based on some events triggered in Physical Renderer.
Lets dig out with a scenario…
Requirement:
We want to save values of a custom control (say radio button) on click of Save button in a form applet.
Pre requisites:
We should know how to create custom controls and then save its data explicitly.
Steps to follow:
- Create custom radio button controls in a form applet on page load
- Write onClick event to trigger Presentation Models method to save its data
Now, 2nd step is in the scope of this post…how to do that
In Physical Renderer, need to have this event
$(Selector).click(function(){
pm.OnControlEvent( “SAVE”,inp1,inp2);
});
In Presentation Model, we need to attach this ‘SAVE’ with PM methods inside init method.
this.AttachEventHandler( “RESTORE”, Method);
And we can write code to save our record inside this ‘Method’.
In my next post, I will cover of saving explicitly records in Siebel Open UI…..
[su_divider]
Please have your comments below, if this post helps you.
@AskmeSiebel