How to refresh page after dialog has completed? - dynamics-crm-online

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.

Related

Dynamics 365 portals - Entity list button missing

I am attempting to recreate the case-list from the default /support page in Dynamics 365 portals. However, the button to the far right, that enables me to open up and view details about the case is not appearing.
From intensive research and trying, I conclude that the button is created in the "Entity list" option in portals, in the buttom menu called "Grid configuration".
However, when I create it nothing happens. As if the changes are not making it to the front. If I make the same changes to the default /support page, the changes appear instantly. I have cleared the cache, and restarted the portal.
Am I forgetting some extra setting somewhere to enable these buttons, or what am I missing? Mind that everything else on the page works 1:1 like the /support page. The individual components also work if configured with the /support page.
Any pointers would be appreciated. Thank you.

Close modal dialog page and refresh the page Oracle APEX

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.

Two quick create forms are opened from Subgrid on "New" button click

I have kind of unusual issue with one of my subgrids in CRM.
On the Main form for an entity i have several subgrids, each of them for records from different entity.
When creating new record from subgrid, all of the forms are opened as expected, except one. It opens two quick create forms.
Forms are not opened normally, one following another. First one looks fine, except there is display name displayed twice. Another form doesn't display any field, just the close button. You can see the issue in the attached images.
I have checked Command for "New" Subgrid button in Ribbon Workbench, and there is nothing more than standard command. I have also tried to do this in several browsers, but the issue continued to appear. I have checked JavaScript functions and none of them is connected with this form.
Now I have lack of ideas what could cause this issue.
I need help for this if anyone had similar issue.

Open panelaccordion item programmatically in an ADF popup

In an Oracle ADF web app I have a popup that users access in order to fill out a detail form. The information entry is broken up using a panelaccordion with only two detail items. Panelaccordions I have noticed remember which item was showing when they were last viewed, so if a user cancels the popup with the second detail section open that section will be open when they access the popup a second time.
I want to force the panelaccordion to be showing the first detail section each time the popup is accessed (currently this occurs with a button click). I haven't found any info on pro grammatically setting which section of the accordion is showing, or to simply reset it to it's beginning state.
set the disclosed property of the showDetailItem to true in a backing bean - similar to how you would do it with tabs:
https://blogs.oracle.com/shay/entry/deciding_which_tab_to_show

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.

Resources