Hide/display regions dynamically

Hi,
I am using APEX 4.0.
In my application I created 3 buttons. (Login, change password, forgot password).
I want that user see change passoword region when change password button is pressed.
Similarly with forgot password.
How can this be achieved in APEX.
In oracle forms it was as simple as (set item_property....visible ...false). Is there anything like that in APEX?.
Thanks
Munish

Hello Munish,
Take a look over there, I tried not to change your configurations, only added the options. Steps:
-> Editing Page -> Execute when Page Loads = $('#R11186522721897120484').hide();
This will hide the region.
-> Created a Button ( as Button Region ) -> Action = Redirect to URL -> URL Target = javascript:$('#R11186522721897120484').show();
This will show the region when click in the button.
This amount of numbers *#R11186522721897120484* is the ID of the region, you can check it on the source code.
PS: You can use javascript:$('#R11186522721897120484').toggle(); if you want that the Change button show and close the region.
Regards,
Alan Martini.
Edited by: Alan Martini on 15/04/2011 16:19

Similar Messages

  • Display regions dynamically on the same page

    Hi
    I have 2 regions.Top is an interactive editable report.Bottom region is a read only report of the same(top region)
    But when i click search button(based on paramters 1&2, i am not able to see the same number of rows.
    Top region shows 5..But bottom region shows not the same.
    Is there any custom process i need to add ?
    Please advice
    thank
    kp

    >
    http://localhost
    ----------^^^^^^^^^
    uhhh....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "namtax" <[email protected]> wrote in
    message
    news:ej54sr$m7q$[email protected]..
    > im trying to code my tree menu so that when you click on
    the album name
    > the
    > song names would display dynamically on the same page..
    >
    > Heres my page at the moment
    >
    >
    http://localhost/music_explained/forta_explained/blah_7.cfm
    >
    > I have added a href field to the album section of the
    cftree, so that when
    > you
    > click on that a question mark appears after the URL.
    > I have set up a query that selects song names dependant
    to the record
    > which is
    > clicked on the cftree...but i am having
    difficulties...anyone know of a
    > tutorial or anything on this particular topic.
    >
    > Cheers
    >

  • Portal Tabs - Dynamic Hide/Display

    Hello:
    We have a Portal Page Group with multiple TABS. We like to be able to display/hide (or enable/disable) tabs based on the Portal Roles assigned to the current user.
    Is it possible to Hide/Display tabs dynamically based on certain conditions? What is the best way to enforce this without creating multiple page groups?
    Thanks

    The only way I know to conditionally hide/show tabs is to grant access on each tab to one or more groups. The tab will then only be displayed on the page to logged-in user that is a member of a designated group for that tab. (Portal admins will be able to see all the tabs.) If there's another way to hide/show tabs based on other criteria - I'd like to know too! :-)

  • How to display the dynamic region in full size

    Hi,
    I'm not able to display the dynamic region in full size.
    In my page, i attached a dynamic region which refers a page fragment. This dynamic region contents are showing as small (scroll is there but i want to display fully).
    How to do this?
    Thanks in advance,
    Sundar

    More than likely it has something to do with your parent layout element. I'd suggest putting your region in an af:panelStretchLayout or similar container that stretches its children. Some of the elements can be a little tricky though, such as af:panelTabbed. It has an attribute that must be set to stretch its first child.

  • How to keep display as Show when using Hide Show region with pagination?

    We are trying to use a 'Hide Show' region with pagination. The problem is that if you 'Show' (ie expand) the region and then hit the link for the next page, the next page displays Hidden (ie collapsed). We want to keep the page display as 'show' when you move to the next set of records.
    There is a fix in this forum for this issue in version 2.2 (Application Express) but we are on 2.0.0.00.49 (HTML DB). Does anyone know of a similar fix for HTML DB 2?
    Ver 2.2 fix is at:
    http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY
    Thanks.
    David.

    Thanks for your reply.
    Running the application install script via SQL Plus using FLOWS_020000 produces result:
    NOT COMPATIBLE (Your export may contain calls not supported by your HTMLDB version.)
    The wwv_flow_api package routines that are not available in our version appear to be:
    create_or_remove_file
    create_install
    create_install_script
    Is there any way to handle these calls in other ways?
    Thanks
    David.

  • Conditionally Hide/Display fields in a region

    How can I conditionally hide/display fields in a region. Based on a user selection whether they want to 'Enter' or 'Select', I want to dispaly the appropriate field .i.e. if the user selects 'Enter' then I want to display a Text field and if they opt for 'Select', then I want to display a Select list.
    Thanks in Advance.
    Regards,
    Hilal

    Hi Halil,
    I've been trying to reproduce what the linked site does.
    Here's my solution:
    1 - Add all items to the page whether or not they are going to be displayed
    2 - Ensure that all items that could be shown/hidden are on lines on their own (ie, set New Line to Yes)
    3 - In the region's Region Footer (or in a new HTML region in the Before Footer position), add in this bit of javascript:
    &lt;script type="text/javascript"&gt;
    html_HideItemRow('NameOfFieldToHide');
    -- repeat for each item to be hidden when the page first loads
    &lt;/script&gt;
    4 - On the radio button's definition, add the following in the HTML Form Element Attributes setting:
    onclick="html_ToggleItemRow('NameOfDisplayedItem');html_ToggleItemRow('NameOfHiddenItem');"
    Now when the page is loaded, one field is automatically hidden then clicking any of the radio button options will toggle the hidden/displayed fields and their labels.
    As stated before, if you do a View Source on the linked application's page, you will see either more methods that are used to show/hide items/regions, but the above should be a starting point for you.
    Regards
    Andy

  • Hide / Show region template - how to make it stay visible after NEXT& PREV?

    Hello,
    I am using the Hide / Show region template (by the way great idea to create this template ;)
    By default the region is hidden. If i want to see the region content (it is a report) I click on that icon and it becomes visible. For my report I use the pagination "ROW Ranges X to Y of Z (with pagination)".
    The issue is that if I click NEXT of Previous, the region is closing (hidding).. and in order to see the next / previous page of my report I have to re-open it..
    Is there any known workaround for this?
    Thank you in advance
    Anca

    I would start at Re: Toggle all hide show regions on a page open/closed
    It references the using javascript to manipulate your hide/show regions. It should get you started in the right direction. It is about the most straight-forward example I have seen for what you are trying to do<br><br>
    You could trigger the javascript after your page is rendered by calling it from the page footer and reference the values of page items to determine if you are supposed to hide the region(s).<br>
    Create a page item called P88_HIDESHOW_REGION1 and set it's value to Y or N depending on whether the #REQUEST# has a string in it that is part of report pagination. If you hover over a "next page" button in a report, check out the resulting URL that pops up in your browser.....it looks like ..../f?p=900:210:8352027355600111016:pg_R_241403738845262873:NO&pg_min_row=31&pg_max_rows=30&pg_rows_fetched=30
    <br>
    You could do an instr(:REQUEST,'pg_R_') > 0 then set P88_HIDESHOW_REGION1 = 'Y' else P88_HIDESHOW_REGION1 = 'N'. Your javascript called at the footer of the page could set the display of the region to on or off depending on the result of P88_HIDESHOW_REGION1

  • Validation on items in Hide/Show Region

    I have a validation on an item that is in a hide/show region. I display all my errors in-line with the field. When the validations fires, after the page is submitted, the hid/show region is closed so the user can't see the error. Is there a way in the validation to open the hide/show region so the error can be seen? I had tried this in my validation, but it doesn't work.
    htp.p('<script language=javascript>
    document.getElementById(' || '''' || 'P507_REPORT_SCHEDULER' || '''' || ').style.display=' || '''' || 'block' || '''' ||
    '</script>');

    Hi,
    You can try below steps:
    1) In PR, get handle to Hide Show bean.
    OADefaultHideShowBean hsb = (OADefaultHideShowBean)findIndexedChildRecursive("beanID") ;
    2) Expand the bean by using 'setDefaultDisclosed' property.
    hsb.setDefaultDisclosed(pageContext, Boolean.TRUE) ;
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Horizontally laid-out hide-show regions/ mini-tabbed pages

    I'd like a mini-tabbed page layout, I can almost achieve this by having hide-show regions in which only one hide-show region is visible at a time, however the regions are stacked vertically, not horizontally. I don't want to use regular tabbed regions, because
    a) I'm already using two levels of tabs,
    b) I want these tabs to be all on the same page so I can use page-level processes.
    Cheers, Mark

    Hello Murray
    Thanks for going to the trouble of creating the little test site.
    Other browsers appear to load the pages much quicker. This may be because they are able to more inteligently handle our code, I don't know. Safari on our Macs zooms through it.
    In IE6 if I open a large Lesson and click next I see, at the bottom of the screen in the Status Bar, "(21 items remaining)" and then "(20 items remaining)" etc. which counts down and then disappears. Interestingly if the next screen happens to display the same image this does not happen, just the message "Done". If the next screen has a different image then the count down from "(21 items remaining)" again as all the linked resources (I presume) are downloaded.
    I have opened your site in IE6 (Windows XP Pro) and I don't see the message. However the image is so small that I may not because it is so fast to load.
    It may be related to how IE6 handles Temporary Internet Files, I'm not sure.

  • Button to hide/show regions

    I need to hide/show regions of a page based on when the user clicks a button.
    I have added the buttons to my page. I see there is a display condition section for the region. How can I tie them together to hide/show.

    Quick fix.
    http://htmldb.oracle.com/pls/otn/f?p=9741:1 (test/test)
    placed a couple of buttons in a different region, both as just redirects.
    Show has the following pl/sql expression as condition
    :REQUEST = 'HIDE'
    Hide has the following pl/sql expression as condition
    :REQUEST IS NULL OR :REQUEST = 'SHOW'
    The region has the following pl/sql expression as condition
    :REQUEST IS NULL OR :REQUEST<>'HIDE'
    - Neelesh

  • How do I keep Hide / Show Region open

    Hi,
    I have a page with one region based on a hide/show template. The current behaviour on a page submit is that the region always hides.
    I'd like it so that if the user opens the region that it will remain open after the page refreshes.
    Thanks,
    Brian

    This is a hack so I wouldn't count on it, but it worked for me (in variation, I needed a bit different thing). And, remind you, it only holds one of them open for a page (my logic is, that when they are hidden no more than one should be open at once).
    1) the page should have an item that holds the information - I'll call it OPEN_REGION. I am knowingly ignoring the usual Pn_ naming convention so all pages with Hide / Show regions could have their own OPEN_REGION but the name could still be uniquely referenced in javascript. It should be a hidden variable in the topmost region in the template (which must not be one of those enhanced HIde/Show regions).
    2) make a new javascript function to set the item and submit page. Be careful to make sure you use valid variables or javascript errors display when no OPEN_REGION item is on the page (for example).
    function myHideShow ( region )
    if (document.getElementById('OPEN_REGION'))
    if ( document.getElementById('OPEN_REGION').value != region )
    document.getElementById('OPEN_REGION').value = region;
    }else{
    document.getElementById('OPEN_REGION').value = '';
    doSubmit();
    2) edit the region template. Set it to call your own function.
    Where it sais:
    href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#jtfuhide.gif','#IMAGE_PREFIX#jtfushow.gif');"
    make it (set the page item to the region sequence number):
    href="javascript:myHideShow('#REGION_SEQUENCE_ID#');"
    3) edit your page template, in the footer add the opening of the region. Be careful to make sure you use valid variables or javascript errors display when no OPEN_REGION item is on the page (for example).
    <script>
    if (document.getElementById('OPEN_REGION'))
    if (document.getElementById('OPEN_REGION').value != '')
    theRegion = document.getElementById('OPEN_REGION').value;
    hideShow('region'+theRegion, 'shIMG'+theRegion, '#IMAGE_PREFIX#jtfuhide.gif', '#IMAGE_PREFIX#jtfushow.gif');
    </script>
    That should do it, but be aware, that I am not in Oracle team, just a simple programmer trying to find my own solutions and Javascript has helped me here sometimes.
    For example, try to use #TITLE# substitution string in BODY part of the Page Template...

  • How to display Frame Dynamically

    Hi friends,
    Plz tell me How to Display / Hide or Frame Dynamically in Oracle Forms.
    I am Using Oracle Forms 6i
    Thanks

    thanks Francois......but i need to hide only one small frame dynamically......
    Do you have any other Option...other than using a frame.....or a Frame alike.....
    Thanks

  • Hide Key Figures Dynamically

    Is it possible to hide Key Figures Dynamically in a Bex report ?
    the scenario is like this : based on the user selection of a certain value of a filter, some key figures are not relevant and we would like to hide it.
    Are these any user exits for the same ?
    Or are there other options ?
    thanks in advance..

    HI LH,
    First find out the object in the report with has only unique value as filter and gets the values for that report like for example chat of accounts  if u filter on it it for the value 1000 other than 1000 it wont get the values .
    select that then create customer exit variable and put it on 3 key figures kf1 and kf2 and kf 3and hide it and write a formula kf1kf2kf3.
    write an exit if filter vaue = A  char of accounts =1000  if not char of accounts =9999.like that write a rountine .
    when u execute a report it on filter b it get the values for KF3 not for other 2(other 2  wont get any values when its add up it will display for 3 only).but with filter A it will get the sum up of kf1 and kf2 not seperate reults.

  • Hide/display charactersitics in ISA Webshop applications

    Hi All,
    I am new to CRM development and I am trying to understand the CRM-ISA applications.
    I am stuck up at a place where, I have to display a specific characteristic of a selected product.
    Used the "showmodulename" parameter to get the required jsp file , and I have extracted the standard code and had a look at the characteristic.jsp file.
    I would like to know if this feature(hide/display) is done in backend as part VC configuration or can i manually hardcode the property of a field to  hide/display ?
    Need you inputs on this.
    Thanks,
    Aman

    Hello A S,
    I have to display a specific characteristic of a selected product
    What you (or your VC design time consultant) do in R/3 design time is what you see during the runtime in ISA (via IPC).
    If a characteristic C1 is displayed in a Characteristic Group (tab) CT1 in R/3, you will have the same visual effect in ISA. The JSP you saw displays the characteristic names and values dynamically as it found from the design time (a.k.a KB in CRM). In effect, the IPC UI painstakingly mirrors the R/3 runtime behavior. So, you have to see if this hide and seek is acceptable in R/3 runtime.
    Alternatively, if you want to hardcode the behavior of some characteristics in ISA alone, nothing stops you from coding inside the loop in these pages. But you must hardcode the characteristic name in your code and change the behavior. For different types of data (text, number, list) need different types of treatment.
    Remember, if you have multiple configurable products (KBs) with different design time and runtime behavior and if the characteristic names are different in different KBs, then you have to be careful. Also, whenever the KB changes, you have to check if your JSPs that contain the characteristic names require any new tinkering.
    Easwar Ram
    http://www.parxlns.com

  • Displaying multiple dynamic html pages within a single Portal folder.

    Hi all,
    Question: How can I display multiple dynamic html pages that are linked to each other, within a single portal folder?
    History:
    I have a designer/web server application (PL/SQL packakges) on Oracle
    8.1.7. Early in the development process we built it into WebDB2.2 and
    used folders on the left side as a navigation bar and the contents of my packages on the right side. This was easy, WebDB used Frames.
    Unfortunatley I could never automatically display a PL/SQL item in the folder area.
    Now I need to integrate the application into Portal 3.0 not the early adopters version, the one with 9iAS (NT for now, Unix later). I have a page/content area divided into regions and a navigation portlet on the left side containing links to PL/SQL folders whose contents are displayed on the right side. On the right side I have (for example) a Queryview. When I click on any of the buttons (i.e. Find, New), I land in a new page outside of my portal folder. This page contains a dynamically built list (from one or more DB Tables) and of course the first column contains a list of links that bring you to the individual item. How do I set my links or configure my folder to display
    within the portal folder area?

    Hi,
    One alternate is, increase the size of your screen, for this go to the layout of your screen and increase it as much you want, and also the custom container size, so that no scroll bar will appear at least.
    Other solution would be, as you said ALVs will be dynamical, it will be good to create buttons, or links on the screen based on the no of ALVs dynamically and on click of corresponding button call the corresponding ALV.
    But i dont think this will serve, first check the first option.
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

Maybe you are looking for

  • Web.show_document  spaces in the URL problem

    Hi, I am using Web.Show_document to call the report from the form. Here some of the parameters having a spaces. It is giving a problem and report is not running. Pl guide me in this issue. Thanks & Regards, Gangi Reddy

  • Passing a variable from Javascript to java variable in a JSP.

    Here is simple test Ive been messing around with. How do I assign the value that was selected in the radio button to a java variable in my JSP here. Javascript being client side and JSPs being serverside makes this difficult. <html> <head> <SCRIPT LA

  • FM radio app won't launch

    My FM radio app just suddenly refused to launch: with the earphones plugged in.  It just keeps "...launching; please wait" but it never launches. I haven't a clue how to correct the problem )-:

  • Aperture 3 library full - continued

    I have just been re-reading the info supplied to this previously posted (by me) topic. It seems more-or-less clear that referenced masters on an external HD is the answer. However, I read in a FAQ, "what happens when my internal HD is full?", the ans

  • Effective start and end dates for a compensation workbench plan

    Hi all, We are having a requirement where we want to get the data respective to current plan for reporting purposes. What i have noticed is there is no such thing as effective_start_date and effective_end_date directly in all the cwb tables. The diff