Open panelaccordion item programmatically in an ADF popup - jdeveloper

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

Related

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.

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.

Partial refresh/reload in a repeatcontrol of a xpage

I've created a customcontrol with a repeatcontrol showing a panel for each related document (of a notes doccollection). The xpage arround the cc is bound to a maindocument.
The panel in the repeatcontrol contains some inputfields, a fileuploadcontrol, a filedownloadcontrol and an action-button.
If the user select a file in the fileuploadcontrol an press the button, then the document bound to the panel is saved and an notesagent replace the old attachment with the new selected.
After that, the current panel should be refreshed, so that the filedownloadcontrol shows the right attachment for download. But only the current panel should be refreshed, not the complete xpage or other panels in the repeatcontrol (context.reloadPage is not the solution I need).
Any idea?
I suggest you put all your code in the button and then partial refresh the panel in the button.
But I suspect that the question refres to that you cannot save a file attachment using partial refresh. which is true. there are a few solutions to this, like using an iframe. do a google search on that
An example for using iframes is described at the Domino development wiki. The mentioned approach is used in the Lead Manager X example at OpenNTF.
However, depending on whether or not that fits your needs, you may also consider using the XPages Exension Library, specifically the Dynamic Pages therein.
did you try giving the partial refresh id for the panel containing the document? If that doesnt work.. get the handle of the particular panel in clientside and refresh it. Panel inside repeat can be identified with its index.

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