You know what is the best part of IP 2014, it includes all those missing HI features like drag & drop in attachments and all Calendar features. So, if you are planning to upgrade your app to 8.1.1.11. Please drop it and upgrade it to IP 2014. Because its willing to replace your HI application, so you need not to upgrade module by module and keep your HI app as well.
Exploring IP 2014 on bookshelf and Alex’s blog, found a lot of new and interesting stuffs. Plug-in wrapper is one of them.
What is Plug-in Wrapper ??
In earlier Open UI versions, if you want to customize a control then we need to write a dedicated PM/PR file.
But in IP 2014, we got a new feature called Plug-in wrapper with which we can get instance of all defined controls by extending predefined classes and make our customization on top of it. Even we can apply these changes conditionally.
When we can use this ?
Now we know that we have a single theme “Aurora” which will even work on mobile devices.We don’t have a separate mobile device application. IP 2014 is responsive enough to work on all devices we know.
Suppose we want all checkboxes to convert to flip switches for all touch devices. For that we need below code only:
SiebelApp.S_App.PluginBuilder.AttachPW(consts.get(“SWE_CTRL_CHECKBOX”), SiebelAppFacade.CustomPW, function (control) {
return (SiebelAppFacade.DecisionManager.IsTouch() && control.GetApplet().GetView().GetName === “Opportunity Detail View”)
});
- Like PM/PR file, we need to create a JS file with all Init, ShowUI, Bind Events methods defined in it.
- Except this AttachPW method of Plugin Builder where we are calling our required control
- And applying condition on it.
So, this code will attach this file to all checkboxes when it will be a touch device and view name matched.
In my next post, I will explain this with an example. You can find this topic in more details here…
[su_divider]
@AskmeSiebel
1 comment for “Siebel Innovation Pack: Plug-in Wrapper”