dynamic actions - hide / show items

Hello

I'm looking on the application, say, 3 elements (Item_1, Item_2, Item_3), led by a group of radio buttons (with 2 entries option_A, Option_B)...

If a radio option_A group is selected, I want to show 2 items (Item_1, Item_2) and when option_B is selected, and then I just want to show a single point (Item_3)...

Please advice how to accomplish the above... a tutorial or a reference to the working example would be better...

Thank you

Hello

Suppose that the radio button is P5_RADIO and 3 elements are
P5_1, P5_2, and P5_5

(1) create a dynamic Action. (Advanced)
(2) enter the name of dynamic Action, and then click Next
(3) event - select change
Selection type - selection item (s)
Product (s) - enter P5_RADIO
Condition: no strings attached
Click next
(4) action - select Execute javascript code
Uncheck the "fire on Page load.
(5) in the Code, enter

if ($v('P5_RADIO') == 'A'){
   $x_Show('P5_1');
   $x_Show('P5_2');
   $x_Hide('P5_3');
}else {

   $x_Hide('P5_1');
   $x_Hide('P5_2');
   $x_Show('P5_3');

}

Click next

Example: http://apex.oracle.com/pls/apex/f?p=27576:5

Kind regards
Shijesh

Tags: Database

Similar Questions

  • 2 dynamic action for an item

    I have two dynamic actions for an item from the selection list that is loaded from an element of Cascade LOV.

    Dynamic action 1:

    Name: d1
    Condition: Value = "EXPECTED".
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    Dynamic action 2:

    Name: d2
    Condition: Value = 'OFFERED '.
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    That's happened? If only works with the dynamic action of d1 or when I did some changing works with dynamic action of d2. I unchecked the field "load fire on the page" but it did not work. I think that there is perhaps some collide with them but I analyzed it, but I can't find. Thanks in advance.

    Another thinks I want to ask is how to order values in a select list... with this code above indicate me the values in the following order: closed, lift, open, waiting. But I want the values in the following order: open, pending, climbing, closed. How can I do?
     select distinct STATUS as display_value, STATUS as return_value 
      from HD_STATUS
     order by 1
    Best regards, Bernardo.

    Ah so. It's actually easier then.

    You'll have an installation DA your d1 is configured with the following differences:

    Name: d1
    Event: Change
    Selectio type: Item(s)
    Item: P10_SUBSTATUS
    Condition: Javascript expression
    Value: $v('P10_SUBSTATUS')==='PLANNED' || $v('P10_SUBSTATUS')==='OFFERED' 
    
    true action: Show "Solution" item,
    false action: Hide "Solution" item.
    
    Nothing in the Condition box that currently has the PL/SQL expression. (Make sure to select "None" as the condition type in the condition box)
    

    You need basically the GOLD option that is provided above as Javascript. ' | ' is the operator or if you are not familiar with JS. ' = ' means exactly equal to, and possibly "==", equal to so you could also put it this way.

    Should have thought first of this route.

    Published by: Bob37 on June 28, 2012 16:15

  • Dynamic action - Hide and show interactive report

    Hello

    in the apex community tip http://www.oracle.com/global/de/community/tipps/apex40-dynamicactions/index.html (only in German), there is an example to hide and show a report interactive by dynamic actions.

    The approach described in the article should be case for normal or interactive reports.
    But in my case it works for normal relations. I am not able to update or hide the interacitve dynamic equity report.

    Has anyone had similar experience?

    Greetings
    Michael

    Hello
    You are welcome.

    * It is considered good etiquette to the responses of reward with points (as "useful" - 5 pts - or 'correct' - 10pts). :)
    Thank you
    Logaa

  • Need help with dynamic Action through 4 items

    Hello everyone.

    I'm having some trouble trying to comp with dynamic action that will turn on or display a select list item when a value is set for the four elements of the Radio button group.

    P1_SELCT_LIST

    P1_RADIO_GROUP_1

    P1_RADIO_GROUP_2

    P1_RADIO_GROUP_3

    P1_RADIO_GROUP_4

    So once all four Radio groups are not null, I want the select View list item.

    Any help with this would be great.

    I'm on Apex 4.2.0.00.27

    Hello

    You can create the following action:

    Event: click on

    Selection type: jQuery selector

    jQuery selector: radio

    condition:

    $v ('P1_RADIO_GROUP_1')! == ''

    &&

    $v ('P1_RADIO_GROUP_2')! == ''

    &&

    $v ('P1_RADIO_GROUP_3')! == ''

    &&

    $v ('P1_RADIO_GROUP_4')! == ''

    Then add a real Action as follows:

    ACtion: show

    Fires when the result of the event is: true

    Fire on the page loading: No. (uncheck)

    Assigned to elements, selection type: product (s)

    Product (s): P1_SELECT

    Also add an Action to false as follows:

    ACtion: hide

    Fires when the result of the event is: false

    Fire on the page loading: YES (check)

    Assigned to elements, selection type: product (s)

    Product (s): P1_SELECT

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Tabluar form hide/show items on the loading of the page

    Hi all

    Apex 4.1

    I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
    The code I use is something like this:

    In the page header:

    function test (pThis) {}
    get the index of line curren on changes
    var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
    If (pThis.value < 0) {}
    . style.display $('input[name="f06"]') [currIndex] = 'block ';
    }
    else {}
    . style.display $('input[name="f06"]') [currIndex] = 'none ';
    }
    }

    In the attributes of the item in the column 'source '.
    OnChange = "JavaScript:test (this); »

    This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

    How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

    Concerning
    Bottom

    Down de Klerk wrote:
    Hi all

    Thanks for the comments.
    So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

    I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
    The function is executed and nothing happends, no error does not code so should be ok.
    I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

    This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

    You must change the jquery like this selector

     $(document).ready(function () {
          jQuery.each($('select[name="f06"]'), function () {
               hide_field(this);
          });
     alert("function executed");
     });
    
  • dynamic action - hide values if the element in the array?  syntax error (I think).

    Hello world

    I have an application page that contains a lov (gears).  If a particular device is selected, I want to hide other fields.   The value of the machine could be one of many.  I created a dynamic action using javascript... but I'm really not familiar with javascript and can't seem to make it work.   Note, there is a line below commented that compared to gear to the value of "500".  This line works and mask fields... but I need to make it work for all possible values.  Any help would be really appreciated!

    Thank you, Karen

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If ($v (this) == '500')
    If ($.inArray ($v (this), $no_size)) >-1
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }

    });

    This seems to do the trick.

    var no_size is ["000", "300", "320", "400", '500', '501', '550', "620", "630", "650", '662', '700', '750', '760', "803", "811"];.

    $(". {Gear") .each (Function (index)}

    If (no_size.indexOf ($v (this)) > - 1).
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Hide();
    $(rowTR).find(".) Stretch"). Hide();
    $(rowTR).find(".) Mesh"). Hide();
    }
    on the other
    {
    var rowTR is $x_UpTill (Thi, 'TR');.
    $(rowTR).find(".) G_SIZE"). Show();
    $(rowTR).find(".) Stretch"). Show();
    $(rowTR).find(".) Mesh"). Show();
    }
    });

  • Dynamic action - hide a button based on SQL

    Hello

    I have a button that I want to disable the SQL logic

    something like that

    dynamic action must check

    If P2_CUSTOMER_NAME in (select CUST_NAME FROM TABLE_A)

    If true, then hide from another BUTTON_1 does not hide BUTTON_1

    Please advice how


    Thanks in advance

    Just click the button to launch OBE. At the most, you may need to be a member of the RTO.

    André

  • Dynamic action to show skillbuilders popup doesn't work when the page refreshes

    Hello!.
    I have a relationship with a column of link:

    "" < a href = "f?... class = show_popup '...

    I have a dynamic action defined like this:


    Event: click.
    type: jquery selector
    selector: a.show_popup
    no condition.

    Action: skillbuildersmodalpage 2.0.0
    URL: attribute of the triggering element.

    It works fine, but after that the popup is shown and closed, the link does not work until the page is completely refreshed again.

    After the closure of the pop-up window, I only update the report with $a_report (in another dynamic action on the 'auto skillbuolders close' event), I don't want to send the entire page...
    the partial update works fine too, but not the link, it works again by refreshing or submit that all page

    any idea?

    Published by: Andres Vilallave on 28-may-2013 16:22

    you define the scope of the dynamic event?

  • Hide/show items based on another point when the page is rendered.

    Hello

    I am trying to hide or display the elements on the page when the page is rendered according to the value of a checkbox control.

    That's what I use.

    Body HTML attribute:

    OnLoad = "initialCheck (); »


    Header HTML:
    function initialCheck () {
       if (html_GetElement('P21_BEN_SAVINGS').value != 'YES') {
          html_HideItemRow('P21_COST_SAVING');
          html_HideItemRow('P21_LOCATION_CODE');
          html_HideItemRow('P21_ACCOUNT_NO');
          html_HideItemRow('P21_SVG_DEPT');
          html_HideItemRow('P21_RATIONALE');
       } else {
          html_ShowItemRow('P21_COST_SAVING'); 
          html_ShowItemRow('P21_LOCATION_CODE');
          html_ShowItemRow('P21_ACCOUNT_NO');
          html_ShowItemRow('P21_SVG_DEPT');
          html_ShowItemRow('P21_RATIONALE');
       }
    }
    I want the items listed to show when the page is loaded when the P21_BEN_SAVINGS is checked (equal to 'YES'), but they are hidden in this situation.

    I see not the onload call in Firebug, and I don't know if it is the configuration of firebug or that JavaScript is not fair.

    Thanks for any help!

    Matt

    Hi Matt

    Try this

    function initialCheck () {
       if ($v('P21_BEN_SAVINGS') != 'YES') {
          $x_HideItemRow('P21_COST_SAVING');
          $x_HideItemRow('P21_LOCATION_CODE');
          $x_HideItemRow('P21_ACCOUNT_NO');
          $x_HideItemRow('P21_SVG_DEPT');
          $x_HideItemRow('P21_RATIONALE');
       } else {
          $x_ShowItemRow('P21_COST_SAVING');
          $x_ShowItemRow('P21_LOCATION_CODE');
          $x_ShowItemRow('P21_ACCOUNT_NO');
          $x_ShowItemRow('P21_SVG_DEPT');
          $x_ShowItemRow('P21_RATIONALE');
       }
    }
    

    Max

    Published by: - Max - April 28, 2010 10:42

    Published by: - Max - April 28, 2010 10:43

  • Hide / show items

    I used #{securityContext.userInRole ['group_name']} to show and hide elements successfully
    what I need is to do it when I get the GroupName of database
    cause I want to make that configurable when the user save pairs element-> Group which means element will be displayed just for this group

    Well, this is impossible using securityContext because it only allows to authenticate the user.

    You can create a hash for the user and store the authorization of user in there. Load the data into the bean when the user is connected successfully. Then, you can use the same syntax to find id that the user has the right to see the button

    rendered="#{userBean.canSee['SAVE_BUTTON']}"
    

    Where userBean is the bean holding a hash map and a getter appropriate

    HashMap CanSee = new HashMap();
    // the hash map holds components as key and TRUE as value
    public HashMap getCanSee() {
    return CanSee;
    }
    ...
    

    So, essentially draw you a map of hash of all the components that you want to leave, store it in a bean that is generating for each user and the user as long as you user securityContext.

    Timo

  • Dynamic action - hide the Date icon

    Salvation;
    I have a date field that I turn on and off via the readonly HTML based on the value of another article, now the problem is the Date Picker icon is not performed, how to hide the icon based on a condition?
    I use APEX 4.0.2
    Thank you.

    Check {message identifier: = 9394199}

  • Dynamic action to hide and show a button

    Hello

    How to set the dynamic Action on an item Page (P4_DATA)

    When the value is 0, then show the button (P4_BTN)
    When the value is 1, then hide the button (P4_BTN)

    I have a dynamic action that work very well, but only for the display option, does not work for a button


    Thank you

    You must add a handful to the button so that you can access in the Action(make sure that you have #BUTTON_ATTRIBUTES# substitution string referenced in your button template) dynamics.
    in the attributes of the button, specify

    ID = "MY_BUTTON".

    MY_BUTTON is just an example

    "Now, when you choose assigned to the dynamic Action of the elements, you can choose" * selector DOM * "and specify MY_BUTTON"

  • Hide/show dynamic Action on the region, not hiding title area

    I use APEX 4.0.1 with topic 13.
    I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?

    To identify the area to the DA, I use the following method:
    Region Header
    <div id=XYZ>
    
    Region Footer
    </div>
     
    In the DA dom object is now XYZ

    Thanks in advance
    PaulP

    PaulP says:
    I use APEX 4.0.1 with topic 13.
    I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?

    To identify the area to the DA, I use the following method:

    Region Header
    
    Region Footer

    Lose the header/footer code, it does not act as a container for the whole region. Use a static region ID as selector of DA.

  • Hide/show functionality in Oracle Apex

    Hi all

    There is a demand of our company "options appear when the user places the cursor on the field."

    -J' did some research and follow a few steps, but I was not to score to solve. Could someone help me on this.

    1. Created a Multi selection list providing list LOV values.
    2. Create a dynamic action to show/hide select list on appropriate action IE mouse move.
    3. Under properties, I had supplied values as


    Name-> demo on show/hide

    -> Mouse move event

    Type of selection-> Items (s)

    Articles-> P1_Assigned

    Conditions-> I did not choose anything.

    Action-> hide

    Fires when the result of the event is-> True

    Fire on page Load-> Ticked box


    Implemented above feature in version 4.2 of the Apex.


    Kind regards

    Sruthitamiri

    Hi Nanoo Tamiri,

    I think that I had pointed out where to put the code:

    To achieve this, you must add the small jQuery code in the section "run when Page Loads ' of Page attributes

    The attribute page to run when the Page loads (in the Javascript section) is highest in the HTML header, where you must place the following code:

    $('#P1_ASSIGNED').hover(function(){
        var count = $(this).children().length;
        $(this).attr('size', count);
        },function(){
            $(this).removeAttr('size');
      });
    

    There are other ways as well:

    • If you want to put in the Header HTML page:
    
    
    • Action: create a dynamic action that is triggered when the page loads and executes the javascript code:
    $('#P1_ASSIGNED').hover(function(){
        var count = $(this).children().length;
        $(this).attr('size', count);
        },function(){
            $(this).removeAttr('size');
      });
    

    In short, the jQuery code should be run on the Load event of the Page.

    And the run when the Page loads, $(document) .ready - jQuery page load event, dynamic Action on the load event of the Page - all these ways trigger the above given the jQuery code on the Load event of the Page.

    I hope that helps!

    Kind regards

    Kiran

  • Dynamic action on the region

    Hello

    Request Express 4.1.0.00.32

    I have a report region on a page that is conditionaly displayed depending on the value of an element of page Pn_ITEM = "HIDE".

    I have dynamic stock running on the page that fill a collection and update the report without the need to submit the page. However, I need to show the report somehow when the collection contains at least one of the members present.

    I tried the following:

    1st real action running pl/sql that adds a record / member of a collection, then a 2nd action sets the value to a page Pn_ITEM = true 'SHOW' action item and a 3rd that should show the region based on the value of the real action 2.

    My collection has an added member. The value 'SHOW' is applied to my article on Pn_ITEM page by the dynamic action but the region of report I want now displayed is not displayed. Obviously if the page is submitted, the report will now be shown however I can't send the page at this stage that's why I need to do this dynamicaly or through javascript and on the application process.

    Any ideas how to get my region report to display once the collection has at least one member without submitting the page?

    Thanks in advance.

    Remove the requirement for the view from the region. You don't want this here since it completely stops rendering region if the condition is not fullfilled to the render time. You want that he made, but not displayed.

    Add css to the region (inline, class):

    style="display: none;"
    

    Add real action that will do a refresh on your area (component - refresh, select your report as an affected item region).

    Now, either:
    Add a real action of type run javascript. Since you can not put conditions on the real actions, we will test the condition in javascript.
    Choose one:

    if($v("Pn_ITEM")=='SHOW'){
    //if you want to target the region to be shown by an ID (static id?)
    $("#region_id").show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if the triggering element would be the region to be shown
    $(this.triggeringElement).show();
    };
    
    if($v("Pn_ITEM")=='SHOW'){
    //if you'd want multiple affected elements to be shown at once drop the [0]
    $(this.affectedElements[0]).show();
    };
    

    Create a new dynamic action that has the same conditions of release as your other dynamic action.
    Specify a when condition:

    $v("Pn_ITEM")=='SHOW'
    

    Create a real "Show" type action to show the region.

    Final result should be your dynamic action creating an item in the collection, an update of the report based on the item (but still not represented) and finally a show in the region.

    Remember that stocks will also fire on page load (so don't forget to check the box on the actions of true), otherwise the region does not appear initially.
    I would say that the item is probably not necessary, but depends on any other logic, you might have on your page and possibly interacts with it.

Maybe you are looking for