How to hide/show a dynamic region

I need to hide/show a region according to the value selected by the user from a selection list. Does anyone have anyidea about how to do it?

Thank you!

Create the function to hide show anywhere where you would create javascript. You can put it in a static file, html page, the model of page header that works for you.

You must call the function of certain events on the selection list. I think that onchange would work. You can set this in the attributes of the element of the selection list element (e.g. onchange = "show_hide ()"). Or you can register the handler through javascript.

To make it simple for you simply create the function to hide show inside a script tag in the HTML of the page header. It is located on the page at the top left region the most.

Access to your selection list item, and then look for the "form element HTML attributes. OnChange = "show_hide () of type" in this area. "

Greg

Tags: Database

Similar Questions

  • Hide/show a dynamic field

    Hello

    I'm new to OFA.

    I have a requirement to hide/show a dynamic field based on the operating unit.

    So instead of hard coding UO, I use lookup.

    Now, what I've done, spread the VO and VO query added a new column to validate in relation to research and back 'n' or 'Y '.

    I created a transitional and in VORowImpl attribute. I'm valid against the newly added column VO and assigning the value TRUE or FALSE to the transitional attribute.

    and I'm on SPEL in Customizing the page.

    Now what is happening is when an existing record is asked in the page, the field is hidden/unhinden based on the given condition.

    But when a new record is created, this condition does not work.

    So I guess that the VO don't get initialized when the page is loaded? Is this the reason why the condition is unchecked in VORowImpl?

    My hypothesis is correct?

    How do I get my requirement?

    Pointers would be useful...

    Thank you

    Naren

    Hi AJ,.

    I forgot to update the thread. Reached the requirement.

    Solution,

    Created a transient VO attribute.

    Then in VORowImpl, written the code to set the transient attribute.

    Then using customization, SPELL, set the property to the item.

    It works perfectly.

    Thank you for guiding me to assign to the attribute.

    Kind regards

    Naren

  • Qosmio G30-126 - how to hide/show the top bar?

    How active hide/show the top bar on the upper side desk, but disappeared how can I return it again?

    You want to have some Flash cards on top of the desktop computer?
    This isn't a problem

    In all programs-> Toshiba-> Utilities-> settings for Flash cards, you can activate this option!

    Check it!

  • How to hide/show a field based on the data from more than 1 field?

    Hello.

    I'm trying to hide/show a based on the data of field2 and field3, Field1

    in fact using dynamic measurements I can only hide/show Field1 Field2-based, but I need a combination, for example:

    If field1 = 'A' and field2 = 'B', then see the field3, other hide field3

    y at - it an easy way to do it.

    I use Application Express 4.2.4.00.08

    Thanks in advance

    Dynamic action

    On the changes

    jQuery selector: #P1_ITEM_1, #P1_ITEM_2

    Condition: JavaScript

    $v ('P1_ITEM_1') == 'A' & $v ('P1_ITEM_2') == 'B '.

    Real Action: show item 3

    Action of false: hide item 3

  • How to hide the LOGO Apex region

    We use the apex of interactive reports that we want to integrate with a front-end web exist (window based). I want to hide the 'LOGO' region, as the end before the Wicket already takes care of the LOGO. How delete/hide the LOGO area.

    I suggest you open another thread for the other issue. You can close this thread if your question is answered.

  • Hide / show the visible region by default

    I searched the forum but couldn't find the answer - how can I hide and show region to display by default?

    View the page source and search the hideShow JavaScript function called by the anchor tag that surrounds the image/hide and take note of the 1st parameter passed to the function.
    In my example this bed

    
      function showRegion(){
        hideShow('region1');
      }
      window.onload=showRegion;
    
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • How we hide/show the desktop in Windows 7 background?

    I managed to hide the background image.  I didn't know I would be able to watch your desktop mono color fade, and I didn't know that it is this difficult to correct!  NOWHERE in the databases Windows have people has managed to do this.  I have chosen in my slide show of photos, my memory card is fine as I got it initially, but it's really amazing to me how I can't find answers to a simple problem.

    No, he said no solid colors.  I change the selection, save and that doesn't change anything.  :(

    A final suggestion:

    Start > Control Panel > accessibility > last option at the bottom, "make it easier to focus on the task > under playback position, uncheck 'Remove background Images as appropriate' > OK"

  • How to hide/show component adf automatically

    Hi I want to auto-hide an element of the adf. I have a selectOneChoice that contain a number (from 1 to 12). Example when I select 2, it two of the field automatically without clicking any button show... I used this feature to hide a component of the declared, but just when I click on a button...


    function enableField(actionEvent) { 

      
    var nameInputText = actionEvent.getSource().findComponent("soc1"); 
      nameInputText
    .setProperty("visible", true); 
      actionEvent
    .cancel(); 
     
    } 


    I put the componement "soc1" visible = true only through the javascript function I change...

    SO the problem here is how to read the number of the selectonechoise and how to set the visible component directly without clicking on any button.

    Hello

    You still get method not found?

    your valueChangeListener is running?

    Try to use this valueChangeListener:

    {} public void socVCL (ValueChangeEvent valueChangeEvent)

    NewValue of the object = valueChangeEvent.getNewValue ();

    If (newValue.equals("2")) {}

    RichSelectOneChoice sl = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc3");

    sl.setVisible (true);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (sl);

    }

    }

    Kind regards

    Ruben.

  • How to hide/show layers according to color of layer?

    Hello Photoshop geniuses,

    I used Photoshop for a number of years, but I have ventured little in the script.

    I need to come up with a script that toggles the visibility of the layer color (red/orange/yellow/green/blue/violet/grey)

    I also need another script that cycles between layers and check the names (if the FG or BG) and in function of what names they have, say, if the layer is FG, then assign blue color channel, otherwise, if the layer is BG, then re-branded RED color

    If you are wondering why I need it, I'm an artist that we need to create versions of the same texture and texture change of colors but use the same mask in a folder.

    Thanks for the help, would be greatly appreciated.

    I recommend you create a thread for a question.

    show red layers, hide other layers;

    2016, use it at your own risk.

    #target photoshop

    If (app.documents.length > 0) {}

    the file;

    myDocument var = app.activeDocument;

    get the number of layers;

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("Dcmn"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var applicationDesc = executeActionGet (ref);

    var number = applicationDesc.getInteger (stringIDToTypeID ("numberOfLayers"));

    treat the layers;

    var theLayers = new Array;

    As var = new Array;

    for (var m = 0; m<= thenumber;="" m++)="">

    try {}

    Var ref = new ActionReference();

    ref.putIndex (charIDToTypeID ("Lyr"), m);

    var layerDesc = executeActionGet (ref);

    var layerSet is typeIDToStringID (layerDesc.getEnumerationValue (stringIDToTypeID ("layerSection")));.

    isBackground var = layerDesc.getBoolean (stringIDToTypeID ('background'));

    If the layer group not collect values;

    If (layerSet! = "layerSectionEnd" & layerSet! = "layerSectionStart" & isBackground! = true) {}

    theName var = layerDesc.getString (stringIDToTypeID ('name'));

    theID var = layerDesc.getInteger (stringIDToTypeID ('layerID'));

    visible var = layerDesc.getBoolean (stringIDToTypeID ("visible"));

    var theColor = layerDesc.getEnumerationValue (stringIDToTypeID ("color"));

    If (typeIDToStringID (theColor) == 'red') {theLayers.push ([theName, theID])}

    else {theOthers.push ([theName, theID])}

    };

    }

    catch (e) {};

    };

    view red layers;

    for (var m = 0; m< thelayers.length;="" m++)="">

    Layer (theLayers [m] [1], false);

    };

    hide the other;

    for (var n = 0; n)< theothers.length;="" n++)="">

    Layer (like [n] [1], true);

    };

    };

    See the layer.

    Service Layer (theID, showOrHide) {}

    If (showOrHide == false) {var idHd = charIDToTypeID ("Shw")}

    else {var idHd = charIDToTypeID ('Hd')};

    var desc2 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var list1 = new ActionList();

    var ref1 = new ActionReference();

    Ref1.putIdentifier (charIDToTypeID ("Lyr"), theID);

    List1.putReference (ref1);

    desc2.putList (idnull, list1);

    executeAction (idHd desc2, DialogModes.NO);

    };

  • How to hide/show the individual elements in a document

    I try to hide all items in a document (and store each original visibility state), iterate the elements preselected user and perform an export for each item in the selection (I've got this covered part) and finally restore the visibility of each new item state (where the initial visibility state storage is necessary).

    I found that I can browse all the elements in the document to help

    app.activeDocument.pageItems[i]
    

    where i is the page element identified by the index of the i - th in the pageItems collection.

    What is not clear, however, is how to get the visibility of this element of the page state. Indeed, there is a visbilityVariable of property associated with the elements of the page, but when I try to 'control' the content with an alert message, I get "undefined".

    Is there the best ways through all elements in a document? Ideally, I would like all the elements of access regardless of the weather, they are elements of the path, group items, items of text frame or what have you. I need this collection in the State of visibility of each item read/write. Thank you!

    "visibilityVariable" is for "data-driven graphics", regardless of those who may be. Try the property 'hidden' instead.

    JoarBolstad wrote:

    Is there the best ways through all elements in a document? Ideally, I would like all the elements of access regardless of the weather, they are elements of the path, group items, items of text frame or what have you.

    Don't worry, you got it right first time. 'PageItem' is the global superclass of all the graphic elements. Starting from the ESTK help (rather, my version as well):

    PageItem class
    A page element object.

    Superclass of CompoundPathItem, GraphItem, GroupItem, LegacyTextItem, MeshItem, NonNativeItem, PathItem, PlacedItem, PluginItem, RasterItem, SymbolItem and TextFrameItem

  • How to hide/show any attribute based on LOV?

    I have a pages that have three attribute .This following-
    1 - one is LOV
    2 input text
    3. also enter text


    If I select a value of LOV I want to hide an input text. How to achieve


    Thank you

    Published by: ADFORCLE on July 12, 2011 09:09

    If your version of Jdeveloper is not 11.1.2 checkbox
    http://www.Oracle.com/technetwork/developer-tools/jdev/listbindingvalue-088449.html

    >
    In JDeveloper 11.1.1.x, an expression such as #{bindings. JobId.inputValue} returns the number of index internal list when JobId was a list binding. To get the real value of attribute JobId, you had to use #{bindings. JobId.attributeValue}. in JDeveloper 11.1.2 it is no longer necessary, the #{bindings. Expression JobId.inputValue} returns the value of the attribute corresponding to the index selected in the list of choices.
    >

    Published by: M.Jabr on July 11, 2011 09:05

  • Hide/show the default region to open

    I have a skin to see the area on the page I want sometimes as default (based on the value of the page element) open 0. I added the code below to the header of the region in my area to see the skin. Worked fine, but now on all of my pages that have interactive reports on them, by clicking on the drop down arrow on the wheel lift an error 'gReport.controls is null or not an object ". Any ideas on how to get this to work on all pages?


    < script type = "text/javascript" >
    function showRegion() {}
    Alert ($x('P0_ALERT_REGION_VIEW').value);
    If ($x('P0_ALERT_REGION_VIEW').value is 'o')
    hideShow ('region5');
    }
    Window.OnLoad = showRegion;
    < /script >

    Give the 'static' for the area ID and run the page. See the #REGION_SEQUENCE_ID # that is generated for the static id that you gave. (run the page and the goto View Source and search for hideShow)

    then write as follows similar to logic

    
    

    Here are values #REGION_SEQUENCE_ID # 2

    It may be useful

    See you soon,.
    Hari

  • How to hide/show the column in a table

    Hello world

    I have a table based on the table "Dept".
    Dept_id
    supervisor_name
    Dept_id is the LOV, and it has value (11, 12,...) (20),
    Here, when the Dept_id value is selected as 20, then the field "supervisor_name" must be posted, for the rest of the values, that it must be hidden.
    How this can be done using Jquery?
    Thank you.
    Concerning

    Look at this http://apex.oracle.com/pls/apex/f?p=46417:26

    Test/test connection

    JavaScript Code: Add in the page header > javascript

    function test(pThis) {
     //get the curren row index on change
     var currIndex = $('select[name="'+pThis.name+'"]').index($x(pThis.id));
     if (pThis.value=='20') {
      $('input[name="f01"]')[currIndex].style.display = 'block';
     }
     else {
      $('input[name="f01"]')[currIndex].style.display = 'none';
     }
    }
    

    In the element, add attributes column deptno

    onchange="javascript:test(this);"
    
  • How to hide/show panels to develop

    all my sliders disappeared on the development

    How can I restore them

    as the temp, tint, ect

    stupid, I can't do this solo

    Title of the message was edited by: Brett N

    On your keyboard, press .

    In addition, there is a small gray triangle at midway up on the right of the screen - when you click on it - active / deactivate the visibility of the side panel.

    It is same for the panels on the left and also for the other Modules.

  • How to set ' hide / show ' regions during the loading of the Page mode 'hide '.

    How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?

    I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).

    Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.

    My request for a theme is set to 23 Crimson. Apex 4.1.x

    Thank you.

    VSKumar

    Hello

    What needs to be done is:
    Set up the STATIC ID for all regions with the exception of the first region.

    For example:
    REGIONTWO
    REGIONTHREE
    REGIONFOUR
    REGION 5

    Then go to the properties of the Page to the section head and footer. In the footer section, add the following:

    
    

    You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5

    P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.

    Kind regards
    Aljaz

    Published by: Aljaz on 6.3.2012 0:04

Maybe you are looking for