Hello all,
I have create one IpopupWindow, after i perform some operation in that popup i have to close the popup, Is here any function to close the created popup.
Your browser version is currently not supported.
Please update your browser to the
latest version.
Comment
Hi sathya
Please check the following documentation related to the IPopupWindow object.
http://documentation.custhelp.com/euf/assets/devdocs/unversioned/BUI_Extensibility/topicrefs/IPopupWindow.html#IPopupWindow-91582B40__Close-915D3828
You will find what you want.
Regards
Abdelali
Be the first to rate this
|
Sign in to rate this
Hello abdelali,
Thanks for your response.
Below is the function for close, But it does not close the function instead we can do some operation on the popupclose.
But i need to close the popup without click the popupclose.
Be the first to rate this
|
Sign in to rate this
Hi Sathya
In your logic ( operations you performed once the popup is displayed ) you have to identify one event or variable to set that will act as a trigger to close the window.
What do display in your popup ? Fields or button ? a click on that button could be a trigger to close that popup...
Regards
Abdelali
Be the first to rate this
|
Sign in to rate this
Hello Abdelali,
I closed my popup with the below code on the button click of the popup.
ORACLE_SERVICE_CLOUD.extension_loader.load(appName , appVersion)
.then(function(extensionProvider)
{
extensionProvider.registerUserInterfaceExtension(function(userInterfaceContext)
{
userInterfaceContext.getPopupWindowContext().then(function(popupWindowContext)
{
var popupWindows;
popupWindowContext.getCurrentPopupWindows().then(function(currentPopupWindows)
{
popupWindows = currentPopupWindows;
popupWindows[0].close();
// Perform some operations on popupWindows.
});
});
});
});
Did you have any idea to close the content pane because i did not found any function to close for IContentpane.
Be the first to rate this
|
Sign in to rate this
Hi Sathya
Your code should work, try to replace the below line by :
popupWindows[0].close(); ==> currentPopupWindows.close();
I did a similar dev using using "ModalWindowContext" function and works properly :
sdk.registerUserInterfaceExtension(function(IUserInterfaceContext)
{
IUserInterfaceContext.getModalWindowContext().then(function(IModalWindowContext)
{
IModalWindowContext.getCurrentModalWindow().then(function(IModalWindow)
{
// Perform some logic with closedWindow.
windowClosed = false;
console.log('record saved :');
console.log(status);
IModalWindow.close();
});
});
});
Be the first to rate this
|
Sign in to rate this
Hi Abdelali,
My code works for Popupwindow, I asked for IcontentPane.
Be the first to rate this
|
Sign in to rate this
Hi sathya
For IcontentPane, there is no function to close it. Not possible. it's static.
Regards
Abdelali
Be the first to rate this
|
Sign in to rate this
Thank you for your response abdelali,
Ok we cannot close the IContentPane, Can we update the existing IContentPane URL and Name.
Be the first to rate this
|
Sign in to rate this
Yes you can do that.
Be the first to rate this
|
Sign in to rate this
Hi abdelali,
Thanks a lot for your response.
One last question. As you said if we can update the existing ContentPane.
I am creating IContentPane, when open a contact. My question is if an Agent opened more than one contact and it opens more than one IContentPane.
So can we update the existing multiple and its related Contacts IContentPane also?
Be the first to rate this
|
Sign in to rate this
Hi Sathya
Yes you can update. it depends on the logic you want to build.
IContentPane is made to display content from URL ( dynamic or static ).
Hope this help
Regards
Abdelali
Be the first to rate this
|
Sign in to rate this
Hi abdelali,
I think we could not update the existing IContentPane also, Because when we call "createContentpane" itself it created the new Contentpane. But as documented
ORACLE_SERVICE_CLOUD.extension_loader.load("CUSTOM_APP_ID", "1")
.then(function(extensionProvider) {
extensionProvider.registerUserInterfaceExtension(function(IUserInterfaceContext) {
IUserInterfaceContext.getContentPaneContext().then(function(IContentPaneContext) {
IContentPaneContext.createContentPane('contentPaneSampleCode').then(function(IContentPane) {
IContentPane.setName('New Contact');
Be the first to rate this
|
Sign in to rate this