Popup page not in region position

Hi everyone.
How to popup a page from a button in right side of an item form? I tried to put "javascript:popUp2(.." into a branch to url but it hadn't work.
tks for any help
Ricardo

Hi Elie,
I had the same problem ... I only got it solved with creating a hidden item and adding the input-tag into the "Post Element Text" field.
Just have a look in the source code of your page, how a button is build and copy the necesaary code to the mentioned field. So you get a button with ApEx layout and can add your javascript call.
chrissy

Similar Messages

  • Region Position 01 loads before 'Before Regions' processes?

    Bug?
    I'm using HTML DB 2.0 and it appears that the region in Region Position 01 loads before my 'Before Regions' process. The process sets a page item's value to null and all the regions on the page are conditional for 'Item not null' for that item. All of them are hidden except for the region in Region Position 01 until the next page load where the item is already null -- only then all the regions are hidden. I'm using 'Before Header' now instead, but that has a nasty implication.
    Pavel

    I think I have an idea of what's causing it and how you can reproduce it.
    Edit your template and have it contain the following:
    #REGION_POSITION_01#
    #BOX_BODY#
    #REGION_POSITION_02#
    Note that region position 01 is before #BOX_BODY#.
    Try it now :)
    Pavel
    ---- Update:
    Ordered them like this: body, reg1, reg2, .... and no longer using 'body' on that page. That fixed the problem.
    Pavel

  • How to popup a page from a button not in a region position

    Hello.
    I am using Apex 2.2.1. I have a form (not a report) on which I've placed a button that is positioned "among the items" as opposed to being placed in a specific region position.
    When the button is clicked I would like to have another page popup. The problem is that I can get this to work only if the button is placed in a region position. With the button in a region position, I define the target to be a URL and then place a call to the popUp2 function, as in:
    javascript:popUp2('f?p=&APP_ID.:32:&SESSION.::NO:::', 900, 700);
    This works fine.
    However, I need to position my button on the immediate right hand side of a form item. But when I create a button in such a position, I have no field in which to place the call to the popUp2() function. Instead, I have to create a "Branch to Page or URL" and then place my javascript call in the Branch field. Unfortunately, when I click the button, Apex wants to branch to page zero instead of the desired page. I saw that when I move the mouse over the button, Apex shows:
    javascript: doSubmit('MY_BUTTON_REQUEST');
    And, as mentioned, Apex tries to branch to page zero.
    How does one call the popUp2() function from a button that is not placed in a region position?
    Thank you for your help.
    Elie

    Hi Elie,
    I had the same problem ... I only got it solved with creating a hidden item and adding the input-tag into the "Post Element Text" field.
    Just have a look in the source code of your page, how a button is build and copy the necesaary code to the mentioned field. So you get a button with ApEx layout and can add your javascript call.
    chrissy

  • Changing region position on submitting the page by clicking a  button.

    Hi,
    I have 3 regions in my APEX page.
    1. Region having 20 LOV's with the width between them as 300. The display point is "Page Template Body (1)"
    2. Region having 3 buttons.(Go, CLEAR,CALCULATE) The display point is "Page Template Body (2)" Template is "Region without title" and column = 2 and align = "center" in HTML table cell attributes
    3. Region having a report with 25 display columns.
    Now the problem is,
    a) When I click "GO" button , 25 column report displays and it goes beyond the page layout. Hence button also shifts to right(means center position of the page when it is extended by 25 column report). User cannot see the button.
    This button shpould retain its place. How to do this?
    b) When I click "GO" button , the gap between the LOV's increases and LOV's also shifts to the right side.
    These LOV should be in its place. and should not move on click of button when page submitted.
    How can i achieve this. ??
    Any suggestios would be welcome.
    Please help me.
    Thanks
    Alaka
    Edited by: Alaka on Jan 5, 2009 6:06 AM

    Hi,
    If I understand well your problem... You don't say what theme you are using, but usually regions have width=100%, meaning that they should use the whole width of the page (not just the visible part on the screen). Because of this, when the region containing the report extends to the right, it forces all other regions on the page to resize themselves accordingly, that is why your design is getting messed up.
    One way to fix it is to tweak the region templates (I would suggest making a copy instead of changing the existing templates). Simply remove the width=100% setting, or hardcode it to a fixed width (for instance, width=300px).
    It is a bit complicated to explain here exactly how to do this, but I hope this gives you an idea...
    Regards,
    Luis

  • Nice Page Expired Popup is not showing up

    Hello,
    I am using JDev 11.1.1.4 and created a new ADF Fusion Application.
    Then I adjusted the web.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"
             xmlns="http://java.sun.com/xml/ns/javaee">
      <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
      </context-param>
      <context-param>
        <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
        <param-value>120</param-value>
      </context-param>
      <context-param>
        <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
        <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
        <param-value>false</param-value>
      </context-param>
      <context-param>
        <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
        <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
        <param-value>false</param-value>
      </context-param>
      <filter>
        <filter-name>trinidad</filter-name>
        <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
      </filter>
      <filter>
        <filter-name>ServletADFFilter</filter-name>
        <filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>trinidad</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <filter-mapping>
        <filter-name>ServletADFFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet>
        <servlet-name>resources</servlet-name>
        <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>BIGRAPHSERVLET</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>BIGAUGESERVLET</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>MapProxyServlet</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>GatewayServlet</servlet-name>
        <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/adf/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/afr/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>BIGRAPHSERVLET</servlet-name>
        <url-pattern>/servlet/GraphServlet/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>BIGAUGESERVLET</servlet-name>
        <url-pattern>/servlet/GaugeServlet/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>MapProxyServlet</servlet-name>
        <url-pattern>/mapproxy/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/bi/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>GatewayServlet</servlet-name>
        <url-pattern>/flashbridge/*</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>3</session-timeout>
      </session-config>
      <mime-mapping>
        <extension>swf</extension>
        <mime-type>application/x-shockwave-flash</mime-type>
      </mime-mapping>
    </web-app>I changed this
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
      </context-param>
      <context-param>
        <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
        <param-value>120</param-value>
      </context-param>
      <session-config>
        <session-timeout>3</session-timeout>
      </session-config>My problem is that the "Expiration Warning" and "Page expired" popups are not appearing. The session is timing out after 3 minutes.
    Here you can find the popups I am looking for http://codeplay.net/2011/05/20/adf-session-expire-warning-and-prevent-links-browser-context-menu-in-web-xml/
    Does anyone has an idea what with my web.xml might be wrong.
    Again, I didn't do any other changes to the application.
    Greetings
    Tobias

    Is this feature will work only with jdev 11.1.1.4.0?
    i am using jdev 11.1.1.3.0 i did the same way but i am not getting popup.
    This is a new feature that is available in jdev 11.1.1.4.0 and is NOT available in jdev 11.1.1.3.0.
    For details check this:
    https://blogs.oracle.com/jdevotnharvest/entry/how-to_enable_user_session_time_out_warning_jdev_11114
    Thanks,
    Navaneeth

  • Page Zero (0) - Regions Caching / Page Caching not available

    Hi,
    My page zero display information from a calendar table (fiscal year, etc.). This information will be the same all day long (get updated at midnight). It's not possible to enable caching of regions on page zero. It's also impossible to enable caching of the page zero.
    Why?
    Thanks,
    Louis-Guillaume
    [My Blog|http://lgcarrier.blogspot.com]
    [APEX and jQuery demos|http://www.insum.ca/jquery]

    Louis-Guillaume,
    Good question. We have asked ourselves this and are considering removing the restriction in 4.0. I think it initially had to do with preventing unwanted side effects and anomalies although none of us can recall the details right now. We will have to carefully look at ways to make this something developers can use easily while preventing strange results. First of all, caching of page 0 doesn't make sense. You want to be able to cache regions on page 0. Now, say your page 0 has two regions, P0_CACHED and P0_DYN (one cached, one dynamic). And your page 10 has region P10_CACHED. When page 10 is rendered, you'll get:
    P0_CACHED
    P0_DYN
    P10_CACHED
    That looks okay, you get one cached region from page 0, one dynamic region from page 0, and one cached region from page 10. Of course you have controls with which to purge any individual region from the cache so you can cause P0_CACHED to be refreshed whenever you like.
    But say page 20 is a cached page. When it renders you'll get:
    P0_CACHED <-- not from the page 0 region cache but from the page 20 page cache, regardless of the "stale-ness" of the page 0 cache
    P0_DYN <-- not rendered dynamically from page 0 but retrieved as part of the page 20 page cache. But this content may be different from the content for the same page 0 region displayed on page 10 one second ago or one second from now.
    P20_DYN <-- from the page cache as is normal for a dynamic region on a cached page
    Hardly a thorough treatment, I realize. Just wanted you to know some of the aspects we have to consider. We will also have to read this thread again to come back up to speed: V3 Caching - any more info? .
    Scott

  • Question about region position on a page template

    Hello all,
    I'm trying to create a new page template but I can't create more than 8 Region Position on this.
    Is there a limit on the number of Region Position?
    Thanks
    Paolo

    Paolo,
    eight is the limit. Why do you need more than that? In each region position you may put
    your regions in separate columns.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to capture text input value by user in a LOV search popup page?

    I need to capture the input by the user in LOV search page. I added one controller in the LOV region, and the flow is also working, but what I need to hold the search input in the search popup page. Also do you know what is the id of " Search Term" text input? then I can try to hold the value in PFR of the CO.

    Hi Sandeep,
    Yes, as of now I need to populate blank, so I need to modify the SQL, therefore I need to capture the value which is given by the user. I am trying to capture the value through passive criteria, but not able to get the result. I added below code in PFR of lov region controller,
           Dictionary passiveCriteriaItems = pageContext.getLovCriteriaItems();
           String lov = (String)passiveCriteriaItems.get("SwitchLOV");
          if ((lov != null) && !("".equals(lov)))
               throw new OAException(lov, OAException.INFORMATION); 
    SwitchLOV is a lov map I have added in the LOV, and
    Programmatic Query set to true. and
    LOV Region Item is the id for which user searches.
    I am getting null in the "lov" where i have give some value in the search field.
    Is this would be the way?
    I dont understand where is the issue, Please suggest.

  • How to show result from process in popup page?

    <br>We want to use one popup page for many information in application. So we want to make the following thing.
    <br>We want to execute process and show result in popup page (through hidden parameter-"P2_MESSAGE").
    <br>We also assign title of region on that popup page through "P2_TITLE".
    <br>What I do not know is how to show popup after process-branch problem.
    <br>Process is executed from one button. Button is located on page "28" and popup page is "2"
    <br>Code for javascript should be like:
    <br>
    javascript:popupURL('f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:'+'status '+','+'&P28_X.')<br>THX

    I have found in one thread:
    <br>
    <br>1) create an application item APP_ONLOAD (of course you can choose your own name)
    <br>2) create an application level before footer computation on APP_ONLOAD to clear the item after the page is generated.
    <br>3) place &APP_ONLOAD. (dot also) in the on load property of the page.
    <br>4) fill the APP_ONLOAD using :APP_ONLOAD := 'onload="your own javascript to call a popup window;"' in the plsql of an after On Submit - After Computations and Validations process (type PL/SQL anonymous block)
    Fill the when button pressed property of the process with the button you want to use to show the popup.
    <br>5) create a branch to branch to the current page (or a other if you wish)
    <br>
    Looks OK but when I create in PL/SQL js with "&" signe, which I use for filling some hidden values in popup page I get error.
    begin
      is_test_ok (1, :P28_X);
      :APP_ONLOAD := 'onload="javascript:popupHeightURL(''f?p=&APP_ID.:2:&APP_SESSION.::::P2_TITLE,P2_MESSAGE:''+''statusu testova''+'','+''&P28_X.'')"';
    end;<br>Should I use ASCII codes for that or what? Any example please!
    <br>THX

  • Region position 2 with 2 parts.

    hello
    My pages are made like this :
    Menu region in region position 01
    Body pages in region position 02
    Now, in the body pages : there is some pages in witch the content ca be organized in two parts (in each part I can have a report).
    I know that I can not have a region within another region...
    How can I manage this type of pages/regions.
    thanks!
    Marie.

    Use 2 or more regions in Display Point Region Position 02, with different region templates as necessary to display titles, buttons etc.
    e.g. Region with items at sequence 10; region with report at sequence 20, using region template Region without Title or No Region so it appears seamless with the first region.

  • How to default value from popup page to main page.

    Hi,
    Requirement:
    I have a create page with table region of 10 lines.I have an icon for every line and on click of this icon, a popup window will be opened.
    In the popup window i have quantity field with a table region. User is allowed to select the quantity. Also i have a ADD button on the popup page.
    Now On selecting the quantity and click on add button, the quantity should be added and the sum quantity should be defaulted to quantity field in the main page.
    For this requirement what i have done is
    I have added the quantity on click of the Add button.and the total quantity i set to the quantity attribute that has been attached to main page.
    But the quantity didnt get reflect to the main page. i think the focus is not retured o main page.
    Please suggest me how can i do this requirement.
    Thanks in Advance,
    Thanks,
    Mallika
    Edited by: user12216727 on Nov 21, 2009 4:29 AM

    Hi,
    As per my analysis for the issue, the control is returning to processRequest of the controller and when i set the attribute value, the value is being set and I am able to get the value and print it.
    But the value is not displayed on the page.Here I am using Advanced Table Region, and I am not able to shoe the value.
    I also created one view attribute and tried to set the readonly property to TRUE for the same field. I did in the same way, the value is being set and the field is made readonly.
    The problem is I am not able to show value to the user, even the value is present in the view attribute.
    Any pointers to this are really helpful.
    Thanks,
    --Mallika                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • HTML code for region position 3

    Hi All,
    Can i get the HTML code for display point: Region position 3.
    My requirement is, i have to apply some background color to all the regions which are placed in region position 3.

    Chandran wrote:
    Hi All,
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should normally include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    For layout and visual formatting issues the APEX version, browser, theme, page and region template, and region/item details are always required.
    Can i get the HTML code for display point: Region position 3.
    My requirement is, i have to apply some background color to all the regions which are placed in region position 3.Region position 3 is determined by the location of the substitution string<tt>#REGION_POSITION_03#</tt> substitution string in the page template. This will vary by version, theme and page template, which is information you have not provided.
    Regions located in region position 3 will probably have existing background colours determined by their region templates. Is the requirement to apply a background colour to individual regions, or a background colour underlying all of the regions?

  • ADF Popup Dialog Not Showing Working

    I'm using JDeveloper 10.1.3 and ADF. I have been unable to get a dialog popup working. When I click on a commandLink in the Originating page, it only refreshes the Originating page and does not open the destination page at all. It's happening in both FF and IE.
    Within the faces-config.xml I created a navigational rule with outcome that begins with dialog.
    Extracted sample from faces-config.xml:
    *<navigation-rule>*
    *<from-view-id>/Originate.jspx</from-view-id>*
    *<navigation-case>*
    *<from-outcome>dialog:dest</from-outcome>*
    *<to-view-id>/Destination.jspx</to-view-id>*
    *</navigation-case>*
    *</navigation-rule>*
    The commandLink action attribute begins with dialog: and useWindow attribute is true.
    Extracted sample from JSP document:
    *<af:commandLink text="Go to Destination" action="'dialog:dest'"*
    useWindow="true" windowHeight="250" windowWidth="300"
    partialSubmit="true" id="originate"/>
    Is there something I'm doing wrong? Any help would be greatly appreciated.
    Thanks.

    It seems like the dialog:popUp does not work if it is not nested within
    &lt;afh:html&gt;
    &lt;afh:body&gt;
    &lt;af:form&gt;
    &lt;af:commandLink action="dialog:popUp"/&gt;
    &lt;/af:form&gt;
    &lt;/afh:body&gt;
    &lt;/afh:html&gt;
    I currently have it this way
    &lt;html&gt;
    &lt;body&gt;
    &lt;h:form&gt;
    &lt;af:commandLink action="dialog:popUp"/&gt;
    &lt;/h:form&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    P.S.
    The former way works but it messes up page layout. It seems not to notice DIVs and image positioning.
    Any clues as to why?
    Edited by: user2709995 on Dec 31, 2008 6:31 AM

  • Conditional Operator for Popup Pages!!

    Hi All,
    In my application there are 2 two different pages say 85 and 45. In page 85 i am calling the Iframe in which it will redirect to page 45. Now in that page i.e 45 i have used template as popup. In that i have an IR and HTML regions and a button in IR region. when i click on button then only should show the HTMl Region for that i ahave used conditional operator. But that is not working!!
    So i would like to know wheather conditional will work popup pages. If not let me know the procedure for that!!!!
    Thanks,
    Anoo..

    .. Apart from that, there is no need for your original long list of "if .. else". For a list of possible inputs, you should consider something like this:
    switch(myYear.selection.text)
    case "10": yearSelect=0; break;
    case "11": yearSelect=1; break;
    case "12": yearSelect=2; break;
    case "13": yearSelect=3; break;
    case "14": yearSelect=4; break;
    default: yearSelect=5;
    or, with your input and output, something as simple as
    yearSelect = Number(myYear.selection.text)-10;
    -- but I don't know what your possible range of inputs is. If it's "anything goes", you have to check for a not-in-range and then set it to your default of 5.

  • What controls breadcrumb region position?

    I took Theme 16 (Dark Blue) and did some small customizations to modify templates and remove those I never use and update some of the CSS classes used. Since doing that, anytime I create a new page using this theme that includes a breadcrumb region, it does not correctly put it in Region 1. If I look at the builder, it actually says Region Postion (with a blank where it should have the value like 1). I have to then open the breadcrumb region and manually change it to Region Position 1.
    Where is the setting to default the region? Its not a huge deal to change it every time to the correct region but was curious how this is set? I can throw up a screenshot if necessary to show what I mean.

    Thanks - I took a look and found a Display Points Box and it has Page Template Region Position 1 as the Breadcrumb display point and this in the body of the template:
    <td width="100%" class="t16BreadCrumbRegion" valign="middle">#REGION_POSITION_01#</td>
    Whats strange is that if I create a new page and choose to create a breadcrumb through the wizard it can't find the correct region position to put it in. If I choose No breadcrumb and then manually create a breadcrumb region, it not only defaults to the correct region but actually appears in the breadcrumb region.
    Kind of quirky!

Maybe you are looking for