Conditionally Displaying Regions w/o Submitting Page

I have a radiogroup with 6 choices in it. For each of these 6 choices exists a corresponding region, which I want to conditionally display upon choosing its corresponding choice in the radiogroup. The problem I'm having is that the only way I know how to do this is to make the radiogroup a radiogroup w/ submit, but I don't want to submit the entire page and its contents upon making a selection from the radiogroup, I just want to conditionally display specific regions and not submit the page until the submit button is clicked. It seems as though there should be an easy way to do this, is there?

That's actually the first thing I tried too. The only problem with that is that with just a redirect, the item doesn't seem to store the value of the choice from the radiogroup, so there's no criteria there by which to set the conditional display.

Similar Messages

  • Conditional Display on multiple items?

    Is it possible to use multiple items in the conditional display region of a report? For example I'm trying to use the
    "Value of Item in Expression 1= Expression 2" and when I populate 1 item with the value in expression 2 it works just great but if I try to place 2 items that would both equal expression 2 it does not work.
    I've tried
    Expression 1:
    P14_ITEM1, P14_ITEM2
    Expression 2:
    10
    Is this possible? And if so is there different syntax I should using in Expression 1 to identify my items?
    Thanks,
    Zala

    I have done something similar but I used the exists statements and write a SQL "SELECT 1 FROM dual WHERE :x1 = :x2".
    Cheers Mike
    Edited by: MikesHotRod on Aug 25, 2008 1:31 PM

  • Conditional display in a SQL-Report/Report Region

    Hi,
    here I have an example for "Conditional display in a SQL-Report/Report Region". I figured it out in Firefox 3.6.2 using Firebug as development tool on Apex 3.2.1.00.12.
    First you have to put the following javascript code in the Page HTML-Header:
    <script type="text/javascript">
    <!--
    // SOURCE
    // W:\oracle\PRJ DWLS\javascript.07.js
    // Beispiel Funktion zur bedingten Formatierung einer Tabellenzelle.
    // Help (Substitution Strings):
    // http://htmldb.oracle.com/pls/otn/wwv_flow_help.show_help?p_lang=de&p_session=2412201185523196&p_flow_id=4003&p_step_id=420,4003
    // HTML Expression:
    // <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#DFT_COND1#
    function ex_conditional_td
    ( p_id
    , p_rownum
    , p_cellnum
      var l_td;
      l_td = vd_getColumn(p_id, p_rownum, p_cellnum);
      // hier die Bedingung definieren
      if (true) {
        l_td.style.color = '#808080';
    }  // -- eof ex_conditional_td -- //
    // Beispiel Funktion zum Abstellen der onMouse Funktionalität der Tabellenzeile
    // HTML Expression:
    // <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#DFT_ID#"
    function ex_conditional_tr
    ( p_id
    , p_rownum
      var l_tr;    // TABLE.TR
      var l_td;    // TABLE.TR.TD
      if (true) {
        l_tr = vd_getRow(p_id, p_rownum);
        l_tr.onmouseover = null;
        l_tr.onmouseout  = null;
        for (var i=0; i<l_tr.cells.length; i++) {
          l_td = l_tr.cells;
    l_td.style.backgroundColor = '#DDDDDD';
    } // -- eof ex_conditional_tr() -- //
    var g_DEBUG = false;
    var g_TBODY = null;
    // Liefert das Body-Element der Tabelle mit der ID <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // Return
    // das Body-Element oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getBody
    ( p_id
    if (g_TBODY == null) {
    var l_table = null;
    l_table = document.getElementById( p_id );
    if (l_table == null) {
    l_table = document.getElementByName( p_id );
    if (l_table != null) {
    if (vd_debug()) {
    alert("Tabelle gefunden, " + l_table.nodeName);
    g_TBODY = vd_search( l_table, 'TD', 't10data', 'TBODY');
    return g_TBODY;
    } // -- eof vd_getBody() -- //
    // Liefert die Zeile <p_rownum> der HTML-Tabelle mit der Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // Return
    // die Zeile oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getRow
    ( p_id
    , p_rownum
    var l_body = vd_getBody(p_id);
    if ( l_body != null
    && l_body.nodeName == 'TBODY'
    && l_body.children[p_rownum].nodeName == 'TR') {
    return l_body.children[p_rownum];
    else {
    return null;
    } // -- eof vd_getRow() -- //
    // Liefert die Spalte <p_column> der Zeile <p_rownum> der HTML-Tabelle mit der
    // Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // p_column - der Index der Spalte / Zelle
    // Return
    // die Zelle oder NULL, wenn die Zelle nicht gefunden wurde
    function vd_getColumn
    ( p_id
    , p_rownum
    , p_column
    var l_tr = vd_getRow(p_id, p_rownum);
    if ( l_tr != null
    && l_tr.nodeName == 'TR'
    && l_tr.children.length >= p_column
    && l_tr.children[p_column].nodeName == 'TD') {
    return l_tr.children[p_column];
    else {
    return null;
    } // -- eof vd_getColumn() -- //
    // Rekursives Suchen nach einem Node.
    // Zweck: Das bedingte Formatieren einer Tabellenzelle in einem Apex Standard
    // SQL-Report.
    // Diese Funktion durchsucht rekursiv, ab einem Ausgangsknoten <p_node>, alle
    // darunter befindlichen Elemente, ob in dem Element <p_seachIn> sich die
    // Klasse <p_class> befindet.
    // Bei Standard-Reports ist die Reportzelle (TD) mit der Klasse
    // "t10data" formatiert.
    // Zunächst muss dazu die Tabellenzelle (TD) selbst, die übergeordnete
    // Tabellenzeile (TR), der Tabellenbody (TBODY) oder die Tabelle (TABLE)
    // selbst ermittelt werden.
    // Der Beispielaufruf:
    // var l_body;
    // var l_node = document.getElementById( 'R112233' );
    // l_body = search( l_node, 'TD', 't10data', 'TBODY');
    // durchsucht also das mit der Id "R112233" versehene Element [der Report, für
    // den in Apex eine statischen ID vergeben werden musste] rekursiv, bis er
    // die [erste] Tabellenzelle "TD" findet, die als Klasse "t10data"
    // definiert hat. Für diese ermittelt er dann das übergeordnete TBODY-Element.
    // Parameter
    // p_node - das Ausgangselement
    // p_searchIn - der Knotenname, der durchsucht werden soll
    // [node.nodeName == p_searchIn]
    // p_class - der Name der CSS Klasse
    // [node.classList[<index>] == p_class
    // p_parentName - der Name [node.parentNode.nodeName == p_parentName]
    // des Elements, das zurückgeliefert werden soll. Wird als
    // p_parentName der Suchname p_searchIn angegeben, wird
    // das Element selbst zurückgegeben.
    // Return
    // das per p_parentName gesuchte Element (TD, TR, TBODY, TABLE)
    function vd_search
    ( p_node
    , p_searchIn
    , p_class
    , p_parentName
    var LN = "vd_search";
    var l_element = null;
    // DEBUG
    if (vd_debug()) {
    alert(LN + ":" + "Untersuche " + p_node.nodeName + ", id=" + p_node.id);
    // 1) der aktuelle Knoten ist der, der durchsucht werden soll
    if (p_node.nodeName == p_searchIn) {
    if (p_node.classList.length > 0) {
    for(var c=0; c<p_node.classList.length; c++) {
    if (p_node.classList[c] == p_class) {
    // Parent Node dynmisch suchen
    l_node = p_node;
    if (l_node.nodeName == p_parentName) {
    return l_node;
    while(l_node != null && l_node.parentNode != null) {
    if (l_node.parentNode.nodeName == p_parentName) {
    return l_node.parentNode;
    else {
    l_node = l_node.parentNode;
    // 2) wenn nicht 1) oder nicht in 1) gefunden, dann in den Kindelementen
    // weitersuchen
    if (p_node.children.length > 0) {
    var i = 0;
    while (i<p_node.children.length && l_element==null) {
    l_element = vd_search( p_node.children[i], p_searchIn, p_class, p_parentName);
    i++;
    return l_element;
    } // -- eof vd_search() -- //
    // Gibt an, ob Debug ein- (true) oder ausgeschaltet (false) ist.
    // Return
    // true - debug ist eingeschaltet
    // false - debug ist ausgeschaltet
    function vd_debug()
    return g_DEBUG;
    -->
    </script>
    Maybe you have to modify the "vd_getBody" function. I'm searching the table cell with having the class "t10data". When you use another theme, there's maybe another class used.
    Second is, that you set an static id for your report region. I prefer this structure:
    R<app-id><page-id><seq> (Raaaaappppsss) e.g. R094260001010.
    First example is to turn off the onMouse-Effect. Maybe on the first or last column definition you put this code in the "HTML-Expression" area:
    <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#ID#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum (as oracle always starts with 1 this is the first data row [rownum=0 is the table header row])
    Second example is the conditional formatting of a table cell. Put this in the HML-Expression area:
    <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#ENAME#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum
    c) the cellnum (here we have to subtract 1 to get the "real" cell index)
    The "ex_conditional" functions are just a representation of how to get the row or cell node.
    Hope this help a bit.
    Tom

    I would use a CASE statement in the select....
    each CASE would be an img src tag for a different button if the button is an image.
    does that make sense? I can include an example if you would like...

  • 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

  • How to use more than one region 'Conditional Display'

    Hi,
    I use a region and i want to use 2 Conditional Display for this region:
    . Fisrt when 'Request Is Contained within Expression 1' ==> 'Val1,Val2'
    . Second when 'Inline Validation Errors Displayed'
    Is it possible.
    Thanks

    Hi,
    The first one is relatively straightforward as there is a Condition Type available for that.
    The second one is a bit more complicated but can still be done. Have a look at Re: how to use wwv_flow.g_inline_validation_error_cnt? This will tell you how many validations failed. If there were any failures, you can set a hidden page item to 1, for example, and then use this page item in your condition
    Andy

  • Region - Display only on form layout page

    Hi,
    1) I have defined regions on table-form layout style. How ever I want the regions to be displayed only on the Form layout and not on the table layout page that has the search functionality. Is there a way to hide the regions on the search page?
    2) Also for display type "textinput" (read-only), eventhough I checked the "Column wrap?" checkbox, the text still spans across the page and not wrapping.
    Please help!
    Thanks.

    Regions enclose items. You can set the Display in Form Layout, Display in Table Layout and Include in Advanced Search properties on the items within the regions, but you are probably asking how to also hide the region title and line for items that are not displayed on the table/search page.
    Although there may be a better way to handle this, we've created a custom template for the Regions node under the group. The template is attached to the VERTICAL_REGION_CONTAINER template on that node. The template has code that turns off generation of the region if the region name is a certain string,
    We copied the current verticalRegionContainer.vm and added conditional code to the top of it like this:
    #if (((($subRegion.title=="Title1") || ($subRegion.title=="Title2")) && (${JHS.current.pageComponent.processingAdvancedSearchArea}))
              || (($subRegion.title=="SearchTitle") && !${JHS.current.pageComponent.processingAdvancedSearchArea}))
           ## do nothing
        #else
    ## the usual stuff in this template
    #endIn this example, the Title1 and Title2 regions are not being displayed on the search form (Advanced search)/table page but are displayed on the Form (Insert/update) page. The SearchTitle region is displayed on the Advanced Search/ table page but not on the Form (insert/update) page. Something like that may work in your case.
    If you want some fields to appear on both, but in different regions, copy the items and drop them under the appropriate regions.
    Peter Koletzke

  • How to conditional display Report Region based on number of rows returned

    I have a page with two Report Regions.
    One Region should display if the Query returns 0-1000 rows. The other should display if the same Query returns more than 1000 rows.
    The only way I can figure out how to do this is have ANOTHER query in the conditions field for each Region to Select count(*) from etc.
    I know there is a #TOTAL_ROWS# value but that is only available after the Region is displayed. Is there some other built-in variable that can be used to put in the Conditions field or is doing duplicate SQL queries the only way?
    Any help would be appreciated.

    Rather than running your query 4 times (by embedding it in your condition), you can have a region that is not displayed, with a hidden item, and set the value of the item in a before header computation to the count of your query. Now you can conditionally display based upon the value of that item.
    -- Sharon

  • Data not submitting when I have a conditional display on a date field

    Hello all,
    Could someone please help me with the following issue?
    I have created an updateable report region with four updateable fields. 3 of the fields store a number values and the fourth stores a date value.
    Each updateable report item has a conditional display, and whether they are displayed or not is controlled by the end user using a radio group (with submit). This provides the user with three options.
    If I remove all conditional displays all data will commit to the database without any problems. If I apply the conditional display to the number fields only, again the data will commit as normal. However, as soon as I add a conditional display to the date field it all goes pair shaped. The data will then cease to commit, with no error message at all. Once I remove the conditional display normal service is resumed.
    I'm certainly an APEX novice at the moment, so I wondered if anyone could shed some light on this.
    Thanks in advance for your help
    Steve

    Stew,
    Basically, I have edited each applicable report field column attributes, via the report attributes tab, and selected a conditional display 'Value of item in Expression 1 = Expression 2' for all of them.
    In the same report region I have created a radiogoup with submit called p51_update_type, specifying three static return values; R, F and S
    Condition e.g.
    *"Expression 1"*
    p51_update_type
    *"Expression 2"*
    S
    All columns display as expected, and commits to the database are normal, that is until I apply a conditional display to the date field (which relates to a table column of type DATE in the database).
    Thanks
    Steve

  • How to display the content of a region on a different page

    Hello,
    Does anyone knows how to display the content of a region on an other page. I try to make page that displays content that resides somewhere else in my portal, so I can give a summarization of some hot topics. I really want to display the whole content of some regions (not a display with custom search).
    Thanks a lot,
    Hans

    Set that page as portlet, include it in a region in another page and in the edit defaults decide which regions you want to display.
    Mere.

  • Conditional display of region with PL/SQL function returning SQL query

    Hello,
    ApEx 2.0.
    I use PL/SQL functions that return SQL queries to display the contents of a region.
    How could I conditionally display such region ? If no data is found, the region shouldn't be shown. I tried with "SQL query returns at least one row" but this doesn't seem to work.
    Thanks,
    Matthias

    Hi Matthias,
    Are the regions in question report regions? So your PL/SQL process is returning a SQL query and then populating a report?
    The EXISTS(SQL Query returns at least one row) condition should work, try running the query you are using in the Expression 1 textarea inside SQL*Plus, or SQL developer using the same parameters, and see what gets returned.
    If you are still stuck, can you post the query you are using inside your Expression 1 textarea of the Conditions section and I can take a look at it for you.
    Hope this helps,
    Cj

  • 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
    >

  • How to display region from one page on the other page?

    Hi,
    I'd like to ask if someone know how to display region created on page X on page Y.
    I've tried to create a "URL" region on Y but this doesn't work and I generally think this is blind way.
    Next I've found an internal function "flows_020100.wwv_flow_disp_page_plugs()" that works pretty well (PL/SQL type region with calling the function) except that is displaying only regions on the same page. I know it's dirty hack but ...
    Any ideas or hints how to solve this? Thanks ...

    have a look here ...
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_best_practices.pdf

  • Conditional display based on Page Template

    I'd like to make some conditional display based on Page temlate value (definition). Example:
    return page_template='TABS';With such an feature it will be easy to exclude some elements defined on "Page 0" on some pages. I know that this could be done by enumerating page_id's...but in this way it will be much flexible...
    Is there such a feature? Will it be ever possible?

    A more flexible way (IMHO) to do this sort of thing would be to define onload application-level computations that set a application item to either SHOW or HIDE depending on the conditions you need. Then make the Page 0 components conditional upon this application item's value.

  • Javascript: display region

    Hi,
    is it possible to hide / show a region with javascript? I know there are functions for items, but I have a whole region, that I want to display depending on a select list. I know I could do this with a select list with redirect and then create a conditional display, but I don't want to have the page submitted always, when user is making a select from the list.
    Any ideas?
    Thanks
    chrissy

    Victorp,
    If you're still interested, I have a solution for this using AJAX and the APEX repository. It pulls the region id back from the repository dynamically, so no need to hard code.
    (This solution assumes you have no regions with the same name on the same page.)
    1. Create an application item called, 'TEMPORARY_REGION_NAME'.
    2. Create an application process with the following parameters:
    Name: GET_REGION_ID
    Processing point: 'On demand...'
    Process text:
    declare
       v_region_id number;
    begin
       owa_util.mime_header('text/xml', FALSE );
       htp.p('Cache-Control: no-cache');
       htp.p('Pragma: no-cache');
       owa_util.http_header_close;
       --Retrieve the region id from the repository
       select region_id
       into v_region_id
       from apex_application_page_regions
       where 1=1
       and application_id = :APP_ID
       and page_id = :APP_PAGE_ID
       and region_name = :TEMPORARY_REGION_NAME;
       htp.prn(v_region_id);
       --Clear it ready for next usage
       :TEMPORARY_REGION_NAME := '';
    exception
       when no_data_found then
          htp.prn('No Data Found');
    end;3. Make the following 2 javascript functions available to your application (suggested method would be in a '.js' file stored on the webserver).
    function getRegionId(p_region_name){
       var regionId = null;
       var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=GET_REGION_ID',$x("pFlowStepId").value);
       get.add('TEMPORARY_REGION_NAME',p_region_name);
       return regionId = 'R' + get.get();
       get = null;
    function toggleRegion(p_region_name){
       //get region id from repository to avoid hard coding
       var regionId = getRegionId(p_region_name);
       $x_Toggle(regionId);
    }4. Add the following code to the 'Element > HTML Form Element Attributes' of the page item you wish activate the toggle:
    onchange="toggleRegion('<your region name>');"Hope this helps anyone out there still using 2.2.
    Anthony.
    http://anthonyrayner.blogspot.com
    Message was edited by:
    Anthony Rayner

  • Display region after one process has run

    I am using htmldb2.0 and I want to display regions after one process in another region of the same page has run. There is type named as "when process in comma delimited list of Process IDs has run" in condition type of region edit. I tried it with putting my process name(also followed with comma) in expression 1 text area but it doesn't work. I am wondering if this doesn't work, how can I implement it in my application.
    Thanks in advance,
    Ke Lin

    I do not get but....
    If one process on page start...then page is not rerenderd until it is finished. If process if finished page is submited and then on refresh page process is not running.
    So I do not understand how can two process be started on the same process together?
    If this si so maye this could be the solution....
    could you create autonomous transaction (it commits their data regarding transaction that it participate in!) to make some parameter in table to 1.
    When other process starts it checks this value and if this param is 1 then it should not continue.
    P.S.
    Do not forget to put another autonomous transaction procedure which will set param to "0" after process finish.
    Do this main proc with strong exception handling to ensure that param is allways set to 0.

Maybe you are looking for

  • Everytime I click on a link, instead of loading it on the same page it opens a new tab.

    Suddenly every time I click on a link, it opens it in a new tab i.e.; if I search yahoo from my home page, it opens yahoo in a new tab, then when I click on yahoo mail, it opens yahoo mail in a new tab, and then when I sign in, it opens yet another n

  • Spdif and toslink pr

    I have the x-fi fatalty sound card with shiny new spdif in/out and optical in/out but i cant seem to get any of these to work. I have an old DAT-recorder (yeah yeah, i?m an oldtimer) with both spdif and optical but i cant get any signal to the comput

  • Cost Center Missing in Income Statement Report

    Hello Gurus, At this moment we are facing a critical situation. We are currently running a Custom report which is based upon a Custom Multiprovider. The Multiprovider gets the data from a remote infocube, a virtual infocube and four info objects(All

  • R12 GL Standard Reports

    We were trying to find equivalent reports for the following R11i reports in R12; these reports were available in R11i and are not available in R12. These reports were used in the R11i by the client. Please highlight if there are equivalent reports in

  • I have the error code 90b in my hp envy 14 beats edition (HP ENVY 14t-2000 CTO Notebook PC)

    The problem has been happening for about a week and a half. Every time i open the computer from either sleep or hibernate it will turns on like it is working but then the  screen will imediatly go black and shortly after shut off then i have to turn