ASP CascadingDropDown control does not reload on postback - ajax

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.

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.

How do I view last pages output in debugger

I have events set to fire throughout the website on button and link clicks etc.
For this particular button, on click, the page loads, displays for a second the GA Debugg output and then redirects to a new page before I've had a chance to read the output from the button click event.
Is there a way in GA Debugger to view the last pages output?
I'd suggest installing the ObservePoint plugin - you can enable a "persistent" mode that won't clear the console on page refresh.
https://lh6.googleusercontent.com/lKLkVzXtUv5vKaUkGr7XcuDp4fPfKpjd9vS7xl0Ci9N7WUY1Jvt6t4CNfxWLqYn6pOMG1j9F=s640-h400-e365-rw
ObservePoint doesn't format the GA params as nicely as the debugger, but it's serviceable.

N2CMS: how to add popup conent

I have a news-type website that I am looking to create using N2CMS, but besides the regular operations (being able to see a calendar, viewing lists of news, viewing news details etc.), part of the content in the website is displayed in "modal" popups (similar to the ModalPopupExtender from the AjaxToolkit) inside the page (for example if you click Login, a popup panel appears with the login controls).
My question is: is there a way of adding a handler for a link, and displaying a "modal" popup when the link is clicked? If so, can this be done from the template GUI editor (and how)?
Thank you
N2CMS doesn't have any built-in handlers to create modal pop-ups for links. However, N2CMS does ship with the Jquery JavaScript library. My suggestion would be to use JavaScript in your site template to select and format the desired links with modal dialogs -- but that can't be done from the GUI editor, you'd need to do it in the template code directly.

Resources