Refresh the Parent page after closing the popup
Hello
I open the pop for that insert data and then I want to see the page parent page refresh after closing of pop either perform cancel or closing popup using X.
try like this
< af:commandLink text = ' #{rank. " DEPTNO}"id ="cl1"partialSubmit ="true"returnListener =" #{backingBeanScope.backing_DeptDBFace.backFromPopup} "> | |
"" < af:showPopupBehavior popupId = ': p1 ' triggerType = 'action' / > | |
< af:returnActionListener value = "10" / > | |
< / af:commandLink > |
When this method ({. backing_DeptDBFace.backFromPopup}) contains the PON - Stmts which are not executed after the closure of the pop-up window
Thank you
Venaktn
Hello
Try to use the popupCanceledListener. (af:popup)
This event will happen only when you click the X or cancel the popup.
Kind regards
Ruben
Tags: Java
Similar Questions
-
How to refresh the Parent page after closing the window pop up (Dailog)
Hello
My Version of JDEV is 11.1.1.7.0
I open the POP-UP (Dailog) using goLink
Now how can I use property return Action Listener to refresh the parent page.
Thank you
Hello
Is there a reason why you using a goLink erq? Could replace you it with a commandLink? You will be able to refresh the page in the earphone of return.
Kind regards.
Ruben
-
ADF11g:
I have problem in refreshing the popup.
On the homepage, there is a table and a column of this table, I put commandImageLink one click on this image that I supposed to open a popup where I display the result of information.
during the first click on this image, I am able to show the result correctly, but if I change the line and try to click the image once again, of that I am not able see the new result .it antique watch. OnClick, I checked the new result values are extracted by the server, but not reflecting does not Popup.
Yet one thing i course is only the first time when I click on the image goes to the action method and then open popup but at next until it clicks fisrt popup opens and then call the action method.
< af:column sortable = "false" headerText = "Actions".
rendering = "true" width = "50" >
< af:panelGroupLayout layout = "horizontal" >
"< af:commandImageLink icon="/image/info.jpg ".
shortDesc = "Info".
partialSubmit = "true" action = "#{IssueActionBean.refresh_ContentRevisionInfo1} '"
launchListener = "#{IssueActionBean.getRevisionLauncherListener}" >
"" < af:showPopupBehavior popupId = ": popupinfo".
triggerType = "click on" / >
< / af:commandImageLink >
"< af:commandImageLink icon="/image/checkinout.jpeg ".
shortDesc = "Check in/out" >
"" < af:showPopupBehavior popupId = ": popupMenu.
triggerType = 'action '.
align = "beforeStart" / >
< / af:commandImageLink >
< / af:panelGroupLayout >
< / af:column >
< / af:table >
< af:popup id = popupFetchListener = "#{IssueActionBean.getfetchRevisionLauncherListener"popupinfo"}" >
< af:panelWindow title = "information content".
inlineStyle = "width: 600px; height: 500px; ">
< af:table value = "#{bindings.documentRevisions.collectionModel} '"
var = 'row' id = 'popupinfo1 '.
Rows = "#{Bindings.documentRevisions.rangeSize} '"
emptyText = "#{bindings.documentRevisions.viewable?" "{"No line yet.":"Access Denied."}"
fetchSize = "#{bindings.documentRevisions.rangeSize} '"
selectedRowKeys = "#{bindings.documentRevisions.collectionModel.selectedRow} '"
selectionListener = "#{bindings.documentRevisions.collectionModel.makeCurrent} '"
rowSelection = 'single '.
inlineStyle = "width: 750px; height: 250px; margin: 20px; ">
< af:column sortProperty = "revLable" sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.revLable}" >
< af:convertNumber groupingUsed = "false".
pattern="#{bindings.documentRevisions.hints.revLable.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "release date".
sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.releaseDate}" >
< af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "expirationDate".
sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.expirationDate}" >
< af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = 'status' sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.status}" / >
< / af:column >
< af:column sortProperty = 'fact' sortable 'true '.
headerText = "#{res}" >
< af:outputText value = "#{row.did}" >
< af:convertNumber groupingUsed = "false".
pattern="#{bindings.documentRevisions.hints.did.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "docName" sortable = "true".
headerText = "#{res}" >
"< af:goLink destination =" #{row.docURL} "text =" #{row.docName} ".
targetFrame = "_blank" / >
< / af:column >
< af:column sortProperty = "docURL" sortable = "true".
headerText = "#{bindings.documentRevisions.hints.docURL.label}" >
< af:outputText value = "#{row.docURL}" / >
< / af:column >
< / af:table >
< af:panelFormLayout >
< / af:panelFormLayout >
< / af:panelWindow >
< / af:popup >
public String refresh_ContentRevisionInfo1() {}
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute ();
Bindings.Refresh ();
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
iterBind.executeQuery ();
iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);
Returns a null value.
}
{} public void getRevisionLauncherListener (LaunchEvent launchEvent)
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute ();
Bindings.Refresh ();
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
iterBind.executeQuery ();
iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);
}
Thanks for any help.
KatieTry to set the attribute contentDelivery of the pop-up window to layzUncached and see if that helps.
If this is not the case, try to send a ppr to the pop-up window.
Timo
-
button is not rendered in the parent page after setting the condition made in popup.
Hi all
I have a page test.jsf where I have a button called display window confirmation with condition rendered as below
< af:button text = "show the Confirmation window" id = "b8".
actionListener = "#{TableShuttleBean.showConfirmationWindow} '"
rendered = "#{TableShuttleBean.popUpCheckBox.Value == true} '/ > "
I call a popup based at the click of another button. Where I gave an option so that the user doesn't show this confirmation again window. Once the user sets this checkbox and close the pop-up window. I display a button in my test. JSF which will allow the user to restore to the original setting.
< af:popup.
a code
< af:selectBooleanCheckbox shortDesc = "#{bindings." EmployeesView1.hints.Selected.tooltip}.
ID = "sbc22" text = "don't show this window again"
Binding ="{tableshuttlebean.popupcheckbox}" / > "
< / af:popup >
I put the partial trigger for the OK button of the pop-up window to the form of the page parent element, but it does not work. I'm not able to update my parent page and show the button.
My apologies if I'm not able to explain my problem clearly.
Thank you
Mozakkir
Mozakkir, please indicate your Jdev version!
You cannot use the property made for it. Once the rendering of the property is false, the component he remembers of the tree and is not shown again without a full page refresh. However, you are only a partial new.
The visible property of the user instead that just hides the component and allows to show later with a partial refresh.
Timo
-
How to refresh the Popup form, when it is in mode insert create?
Hello
When I press on Jsp page it gives dialog popup (Dept table) is to create the insert mode button, am going to some input values and close the pop-up window (not committed or cancel).
and the call button again once it appears as a mode of updating...
I use Jdeveloper 11.1.2.3.0 and Oracle10g...
Hope this answer.
you have set the popup contentDelivery to be lazyUncached?
-
Refresh the popup programmatically
Hello
I use Jdev 11.1.1.6
I have a FA: table in a popup that is to pick up a few lines... I added a link delete next to each line through links.
When I click on the link delete for a particular line... the line is removed and the window closes automatically.
To avoid this, I put the part delivery of property = true for the link delete...
Now when you click on remove link line gets deleted but context does not close which is very good...
Now the problem is... the other buttons on the pop-up window are not working as record, etc...
I like to write code for the link delete where by program I will delete the line and I want to update the popup as well.
Can someone let me know what is the code to update the popup programmatically?
Thank you
Rajesh.
User, things to check:
is the autoCancel property for the popup?
If so, set it to false and try to delete a line without defining the partial submission button.
Timo
-
HOWTO updating table after closing a popup
With the help of JDev 11.1.1.3
I have a table and a popup. The table is filled with chronogram a datacontrol.
The popup has a form indicating the details of the selected record in the table. I also use this popup to create new records.
I have problems when you press the 'OK' button in the dialog box. The record is saved in the database, a commit is executed but my table does not show the new record. I need to press F5 before recording.
I tried to set a partialTrigger at the table of the popup, but it does not work.
This is the dialogEvent code:
As you can see that the commit is executed and after that I run the Execute to refresh the table, but it doesn't seem to work...public void enqueteListener(oracle.adf.view.rich.event.DialogEvent dialogEvent) { if(dialogEvent.getOutcome() != DialogEvent.Outcome.no) { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding operationBinding = bindings.getOperationBinding("Commit"); operationBinding.execute(); operationBinding = bindings.getOperationBinding("Execute"); operationBinding.execute(); } else { BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); OperationBinding operationBinding = bindings.getOperationBinding("Rollback"); operationBinding.execute(); } }
How can I get that I have is more useless to press F5 if the record show upward directly in the table after click on the OK button in the pop-up?You add partial trigger to the table in your code. If your table is related to an attribute in the bean you can add
RequestContext.getCurrentInstance().addPartialTarget(getTable());
where getTable() returns the component "richeTableau". If you do not link the table to the bean, you can search the tree of components for the id of the table to get the part.
Timo
-
region of refresh on the page parent after closing popup inframe
Hello
I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?
Best regards and thank you
Hi Gor_Mahia,
Gor_Mahia wrote:
Here are the details,
application ID = 46268
page ID = 13
demo123/demo123
proj2010 = workspace
Use the links in the second column IR
Once again thanks for your time.
Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:
Monkey on Oracle: Modal popup with dynamic Actions
Here are the changes:
- Edited your action dynamic and value:
In the section "Advanced":
Scope of the event: Dynamics
In 'true Actions:
Action edited your "run the Javascript Code" and "Code" to modified:
From:
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); apex.submit('edit-IR'); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
NOTE: remove the apex.submit call in the function close to the code below so that it submits the page.
TO
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
I hope this helps!
Kind regards
Kiran
-
Hi, I spent long hours to solve this problem and wait for the answer from the expert.
I created a form with text boxes and one of them, I created just small image button to call the modal region of the tree.
Everything is OK, tree appear and disappear after the passage of the code value for the text element in the parent form.
But it refreshed and initialized all other areas of empty text as well... ^ ^;
I think that, because of the link in SQL tree. Someone help me?
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
else -1
end the status,
level,
"CAT_NM" as the title,
NULL as an icon,
"CAT_CD" as a value.
NULL as ToolTip,
? p = & APP_ID.:112 :'|| : APP_SESSION |': P112_CAT_CD :'|| "' CAT_CD ' as link-> How to avoid refreshing the page parent and just switch the CAT_CD to the called page?
'category '.
Start with 'PARENT_CAT_CD' is null
connect prior "CAT_CD" = "PARENT_CAT_CD."
siblings arrested by "CAT_CD".
Hey "zoomok,"
Large - an example would have been my next request in any case I took a glance and changed your demo page to work as you want.
Things of note:
-SQL source tree: NO link value! A link value will generate apex code that will redirect you to the link. It will always be a redirect page, where a rerender page, and not what you want! Leaving NULL allows us to interact with the tree interactively via javascript
-Code in variables and functions global page - javascript - next:
function treeOnload(){ var l$Tree = $("#tree_modal div.tree"); // get the tree instance // handle the onselect event of the tree $.tree.reference(l$Tree).settings.callback.onselect = function(NODE, TREE_OBJ){ $s( "P112_CAT_CD", $(NODE).attr('id') ); // get the VALUE of the node and put it in item P112_CAT_CD closeModal(); // close the active modal region }; };
-In javascript - dependent section I added a call to this procedure:
treeOnload(); // initialize the tree with our settings
And that's all! I didn't know that you use "openModal". There are different ways to implement modal regions, so it is important to know how we do for ourselves what to do with it.
FYI - you now need to change your credentials. And mark the answer that has helped you or is correct, please.
-
Refreshing the page does not not after the closing of popup.
I have a main page that has a list that includes a list of elements. And there is a button create that opens a popup to create a new line. I have 2 buttons on the popup, create and cancel.
The page contains a workflow in which I have an activity back to the home page.
Action = "return" the Cancel button on the shortcut menu to return to the home page.
But when I click on cancel, I will return to the home page but the page is empty. I have partialTriggers on the homepage of listView set the id of the button.
Help, please.
I had partialTrigger the button on the shortcut menu.
Instead if I set the partialTrigger for the popup itself, refresh works fine.
-
skillbuilders modal page: how to submit the page parent after closing modal window
Hello.
I use Apex 4.2.1 on mod_plsql and Oracle 11 g 3.
I installed version 2.0 of plugin Skillbuilders Page modal.
In may, app, page 7 presents a button. When you click on it, page 6 is displayed as a modal popup. Users can change this modal page form fields and then click on a "submit" button. This, in turn, automatically closes the modal page. Users seek then to page 'parent' (page 7). It all works very well.
My problem: Page 6 (modal page) contains a collection of Apex. This collection is updated when users click the submit button. It is this collection to be displayed with the data updated on the page "parent" (page 7). And so, I need to automatically send page 7 when the modal page closes automatically after clicking submit on the modal page.
I tried a dynamic action that performs an action of "submit page" whenever the user clicks on the button send in the modal page. But because the plugin uses an iframe to display the modal page, the action of page submit real that happens in the iframe, not in the 'parent' page (page 7). When the modal page closes automatically, users are left looking at the page of 'parent' (page 7) with the previous data (not updated). I have to manually refresh the page (via the browser) to see the data updates to the collection.
And then, does anyone know how to automatically return the page of 'parent' when the modal window closes automatically?
Thank you.
Elijah
Your dynamic action automatic closing has not been set correctly. The action is not triggered on a specific item, but rather on the 'document '. Your selection should be 'Élément DOM' and the element must be "document".
(Note that if you use several modal pages on one page, this action triggers for each of them. You can use the 'modal page id' in the creation of the page modal DAs must be able to stand out in outreach. You can find this in the documentation, too.)
-
How to close the parent page popup and refreshment with click of a button.
With Aped 4.0, I created a window close popup with this process, I am able to close the popup window after submit. But how do I update the parent page before you close the pop-up window.He does ' t work like this, because above JavaScript three calls does not wait for the actions to perform
Means once the function of the saveChanges method is called, it will run funtions all three with waiting for the first action to perform. This is not the right way.Instead, you can use a branch of the page with the guy like branch of PL/SQL procedure with the following code.
And Point branch: on submit: calculation of before (before the calculation, Validation and treatment)
Begin htp.p(''); end;
-
Problem refreshing the page parent when a modal window is closed.
I have the page that opens a modal window of a column in report link. In the modal window, I want to be able to make my changes and press a button so that the modal window is closed and the parent page is refreshed to display the details changed in the report. In Firefox all works well, but IE I get the error message 'Window.opener.location is null or not an object ".
When I comment out window.opener.location.href = window.opener.location.href; the modal window is closed without error, but I want to refresh the parent page with the changes in the modal window.
I'm afraid that my java script is very limited (the code is inspired other peoples examples.)
Page parent I call this function of a column in report link to display a modal window. Sets the hidden field of the SAVE_STATUS to the landing page of "n".
function modalWin (pshow)
{
var url;
URL ='f? p = & APP_ID.: "+ pshow +": & SESSION. : SAVE_STATUS: NO;
If (window.showModalDialog) {}
window.showModalDialog (url, "name", "dialogWidth:650px; dialogHeight:700px"); }
else {}
Window.Open (url, "name", "height = 700, width = 650, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");
}
}
Landing page (modal window)
Header HTML.
Function closeWindow should refresh the parent page and close the modal window.
< base target = _self >
< script language = "JavaScript" type = "text/javascript" >
<!--
htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";
function closeWindow() {}
If (document.getElementById("SAVE_STATUS").value == 'Y')
{
Window.opener.Location.href = Window.opener.Location.href;
Window.Close ();
}
}
->
< /script >
Attribute Html Body .
onLoad = "closeWindow (); »
P_UPDATE_DATE process called of the button changes. Games of the SAVE_STATUS flag 'Y' for the onload in the html body.
UPDATE event
SET event_date =: P5001_EVENT_DATE
WHERE contract_reference =: P330_EVD_CONTRACT
AND event_number =: P330_EVD_EVENT_NUMBER;
: SAVE_STATUS: = 'Y ';
Thank you in advance, I'll take a look when back in the office on Monday.
Pete has soonHi Pete,.
In my view, that the refreshment of your page should happen on your parent Page. You can also check the JQueryUI there a beautiful modal dialog Widget.
--
Chris -
I have a parent page that triggers a modal dialog box in APEX 5.0. When the user confirms in the dialog box, it closes the dialog box by using the process of dialogue.
In the parent page, if I do not have a dynamic action "Dialog box closed", the user returned to page with the values, they recently came again here. If I add a closed action dialog box to send the page, the values are lost - it's as if the page refreshes before submitting. Someone knows how to solve this problem.
Thank you.
user3282753 wrote:
Please update your forum profile with a recognizable username instead of "user3282753": Video tutorial how to change username available
Also, is it possible to display the success message from the Page of the dialog box without updating the parent page.
See Roels Blog: display a success message after you close a modal dialog box
-
refresh the report after you close the modal popup
Hello
I try to call page editing as popup modal as in this example below.
http://Apex.Oracle.com/pls/Apex/f?p=45420:3:0:no:
It works fine, but after you change/update a registration and closing of the edit page, is not refresh the main report page (first). How can I change so it refresh the report calling when closed. Please NOTE: I do not want to refresh the whole page, but only the report after you close the page modal popup.
Apex 4.2
Thank you in advance... regards
It worked, now missed me the branching code and the parameter by js... Thank you
Maybe you are looking for
-
Each item in the Inbox is marked * phishing * what happens?
Each piece of mail in my Inbox is marked * phishing * how can I get rid of this label on my emails?
-
I just loaded Firefox 4, but I do not have a Firefox Button
I downloaded the new version, but there is no Firefox Button.I have the file, editing, display, options history etc. and saw something that might be compatible with Windows XP. I am running Windows 7
-
RAM is not recognized on Satellite L650-1MC
Hello guys I have a Toshiba Satellite L650-1MC with an i5 480M CPU and 4 GB DDR3 PC3 - 10600 (2 x 2 GB modules). Today, I got a 4 GB of DDR3 PC3-8500 module to upgrade the RAM 6 GB. I put this new module in and he was not recognized, perhaps because
-
CD/DVD-RW is faulty and can not boot from an external DVD-R - Satellite A30
CD/dvd-rw from my Satellite A30 is defective and I bought and started using an external dvd - r, but when I want to format the laptop, the recovery cd does not start, well it starts, I can see what is on the cd, but when it runs the autoexec.bat file
-
Create a unique standalone program that requires no Labview
Literally, I spent all day following the tutorials on how to generate a new installer from the directory of projects I watched several videos and read all the comments in the forum that I could find I generated an executable file But now I have a lis