-
1. Re: Change page type (normalxmodal) in run time
Pierre Yotti Jun 13, 2018 5:00 PM (in response to RomeuBraga)Hi,
you should use inline Dialog to achieve that. have a look here
https://atulley.wordpress.com/2017/02/17/working-with-apex-5-dialogs/
https://apex.oracle.com/pls/apex/f?p=23342:42
create a inline dialog in The Global Page with Position "inline dialog" and position "inline dialog"
add a static ID to your inline Dialog region. Example inline_id
- to open the Dialog
$('#inline_id').dialog('open');
- to close the dialog
$('#inline_id').dialog('close');
-
2. Re: Change page type (normalxmodal) in run time
fac586 Jun 13, 2018 4:50 PM (in response to RomeuBraga)RomeuBraga wrote:
As far as I know this is not possible.
But...
Does anyone know how to modify the page type while running the application?
This is not possible.
Problem:
I need a normal page to work in certain cases as a modal page.
Why? What problem are you trying to solve?
I know I can copy and create modal with the same components, but this makes it difficult to maintain ...
Create the common components on the global page and conditionally display them on two separately defined standard and modal dialog pages. That at least means that the page content and controls are only defined once. Shared validation and processing is not so easy...
-
3. Re: Change page type (normalxmodal) in run time
fac586 Jun 13, 2018 4:56 PM (in response to RomeuBraga)Alli Pierre Yotti wrote:
you should use inline Dialog to achieve that. have a look here
https://atulley.wordpress.com/2017/02/17/working-with-apex-5-dialogs/
How does that address the stated problem? There is no reuse of components and no way for the dialog to be opened by another page.
-
4. Re: Change page type (normalxmodal) in run time
Pierre Yotti Jun 13, 2018 5:01 PM (in response to fac586)The Inline Dialog should be create in the Global Page. In that way, it can be open by another Pages.
-
5. Re: Change page type (normalxmodal) in run time
fac586 Jun 13, 2018 5:09 PM (in response to RomeuBraga)Alli Pierre Yotti wrote:
The Inline Dialog should be create in the Global Page. In that way, it can be open by another Pages.
That doesn't allow the components to be utilised on a standard page. They only exist on a modal pop-up.
-
6. Re: Change page type (normalxmodal) in run time
RomeuBraga Jun 13, 2018 5:51 PM (in response to fac586)Thank you for the answer, the specific problem is:
My application is used to generated report from a lot of databases. And many of these reports are related. So, the user can access some report and after can check another information from another base. In this case, I don't want they leave the first report page, I want to show these aditional information in a modal page. But, these aditional reports should exists too in a standard page.
-
7. Re: Change page type (normalxmodal) in run time
RomeuBraga Jun 13, 2018 6:21 PM (in response to Pierre Yotti)Thank you for the answer, this is a usefull information, but not solve my problem.