Close modal dialog page and refresh the page Oracle APEX - oracle

I am trying to close a modal dialog page after changes have been made and then refresh the edit form that was underneath the modal dialog in Oracle Apex.
I tried using dynamic action to close the dialog, but it seems that the dynamic action proceeds the processing step, resulting in the data not being saved into the database after the modal dialog has closed.
modal dialog = page
edit form = page
modal dialog is a pop out on the edit form
Is there a way to close the dialog, while saving the data and also refresh the edit form?
I think there is a way to also redirect to previous page but I do not know how to do that.

Yes there are many ways to close the dialog box while saving the data.
you can use the process for dialog close, process should be after your process which is saving data.
Javascript: please refer below link
http://ashishtheapexian.blogspot.in/2017/06/refresh-region-of-base-page-when.html
https://apex.oracle.com/pls/apex/f?p=1200008:15:132444785184935::NO:RP:P15_POST_ID:142
Branching :
You can create a branch after processing point. this will redirect and close the dialog after saving you data to the database.

Refresh Page when Dialog is closed. Click here
this blog will give enough information about how to refresh the Page when model dialog closed (cross icon).
We can trigger a dynamic action when user press cross icon in model dialog. This will archive by pasting the following code in Model dialog property-> Dialog -> attribute:
close: function(event, ui) {apex.navigation.dialog.close(true,{dialogPageId:7});}
And one more thing we need to keep in mind that "chained property" set to Yes for page to refresh. Here 7 is model dialog page number. Above given code will trigger dialog closed event.

Related

Oracle Apex 5.1: Edit link in report not working

I have made an interactive report with a From. My report is made by joining two database tables. After creating the report and the form page I changed my Form Type from "Normal" to "Modal Dialogue" in page designer and also made several changes in the form page.
When I run the report page and click the "Edit" link in the report the form page appears but the form field is not fetching any data to be updated. Also there is no "Delete" button and "Save" button in the from which are supposed to be there.
Could anyone help me correct the edit link so that when I click the edit link I can edit data and save or delete?
When I run the report page and click the "Edit" link in the report the form page appears but the form field is not fetching any data to be updated.
What are the values in session? Did you check those ? After changing Normal page to Modal page make sure you are passing ITEM and Value to you're modal page when user clicks on EDIT link.
Also there is no "Delete" button and "Save" button in the from which are supposed to be there.
This button must be conditional. Lets say for an example i wanted to see Delete and Save button when One of my page item have some value(where by i can make sure i'm editing something in this case) if not then i am creating new stuff so i don't need to see Delete and Save button.

How to refresh page after dialog has completed?

I'm running a dialog (the workflow-ish one, not a custom, modal window) on Customer and during the process, an instance of a related entity Project is created. All the related instances of Project are displayed in a subgrid on the Contact form.
The problem is that the most recently added instance of Project isn't view until a refresh of the page which confuses the users. How can I force the form to refresh when a dialog has run?
I've googled the issue but the only resolution I've found are to a modal dialog frames à la JavaScript. The abundance of these drowns any relevant hits, as far I can see (if there are any, that is).
I think you'll find refreshing the page after a dialog closes in CRM Online impossible in the way you describe. As such my only recommendations are to flag up to the user before the dialog closes that they will need to refresh the page or to do something custom via a ribbon button.

Joomla 1.5 system messages in modal window?

I have made a link, that gives me Joomla's registration edit form into a modal window. Everything is okay with this but, when user click on save button, loads the whole homepage in to modal window with a message that says everything saved. How can I make it just load the system message in to modal window and not the whole home page?
set tmpl=component & format=raw in the controller before calling for the template. Your system msgs div should be inside the component to be shown.

ASP CascadingDropDown control does not reload on postback

I have a web form page that contains two modes: View and Edit. When in view mode, I do not load the CascadingDropDown control. When in edit mode, I do load the CascadingDropDown control.
When in edit mode, the user also has the ability to click another edit button to enable a set of checkboxes and then click update. Clicking these buttons while in edit mode causes the web form to be posted back to the server for process. When the form is redisplayed (still in edit mode) some dropdowns have values to choose and others have nothing. I programatically create the cascading drop down controls in the pre-render phase ever time the page is loaded. I noticed the AjaxControlToolkit script code is not in the output HTML when the user posts back but it is the first time they come into this page.
Seems like I need a way to get the Toolkit to load its scripts after postback? I cannot use update panels either because new dropdowns are added after postback.

Creating a functioning dialog box in Balsamiq

I want to demonstrate a working dialog box in Balsamiq. I can mock one up but I want it to open and close when I click on a page element.
Anyone know how?
The feature you need to achive your goal is called linking. With it you can connect several static mockups. The result will be a click through prototype.
What you need are following views:
A view when the dialog is closed
A view when the dialog is open
The dialog with text (optional)
A view when the dialog is closed. It could be the first or if you want to show the progress you could modify the initial view to have text.
Once you have the 4 mockups you can specify the links.

Resources