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

Tags: Java

Similar Questions

  • 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

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

  • Hide/show several subforms based on drop-down list selection

    Hi - I'm wanting to use a selection from a drop-down list for hide/show 17 subforms which contain only text. I tried if/else instructions that I used in the same way before but I have problems of implementation of that time. Is there a better way to do when several subforms are required to show/hide. Thank you.

    What event trigger you the action on? I have the following to the Exit event and it works.

    If (this.rawValue == "Hide") {}

    subForm1.presence = "hidden".

    }

    on the other

    If (this.rawValue == "Post") {}

    subForm1.presence = "visible".

    }

    If however you have the button 'Specify Item values' clicked on the link tab, you need to change the "Hide" values for their specified either value "1".

    You have changed the code to:

    If (this.rawValue == "2") {}

    subForm1.presence = "hidden".

    }

    on the other

    If (this.rawValue == "1") {}

    subForm1.presence = "visible".

    }

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

  • Hide/show the fields based on textbox

    I wonder if there is a way to hide certain fields based on the question of if a user enters a value in a text box and then reappear if the value in the text box is removed and the field becomes white.

    I have two scenarios where I would this happen

    1. I have a "Non-registered" check box and a text field 'blood pressure '. If the user check mark the box "Not registered", the field of blood pressure is hidden (I managed this already). If the user unclicks the box, the field of blood pressure again (even once, I did already). Otherwise, if the user enters a value in the 'pressure' I would 'Unregistered' area to disappear. I got this as well with this code: (placed in the form of javascript Action, mouse upward, event)

    this.getField("Not_Recorded").display = event.target.value = "Off"? Display.visible: display.hidden;

    I don't know if it's the appropriate script that I use, but he did not hide the field "unregistered". The problem is, I would 'not registered' to hide if a value is entered in the field of blood pressure and reappear if this value is then removed (i.e., the user changes his mind or made a mistake and wants to not click saved instead). I don't know if it's feasible or just way too complicated for me to do.

    2. in the second scenario, I have 2 text fields where the user must enter a value for weight in pounds or kilograms. There is a text box for a value of lbs and a text box for a value in kg. If the user enters a value for books, I'd like to field for kgs be hidden, but still, if they delete this value so that the lbs field becomes empty, I would field for kgs reappear.

    is this feasible or is there another way I might be able to do this?

    For the first, I would not hide the check box for the reason you give. In addition to hide the text field, it must reset it so that any value that the user may have entered is not retained when it is hidden.

    If you really want to show/hide the check box depending on whether there is an entry in the text field, you can use the validation script customized for the text field:

    var f is getField ("unregistered");.

    If (! event.value) {}

    f.Display = display.visible;

    } else {}

    f.Value = "Off";

    f.Display = display.hidden;

    }

    For this script start working, you change the value in the text field.

    For the second problem, what I do, is to have a single text field and two boxes to tick to indicate lbs or kg. If you want to stay with the configuration you have, you can clear the other text field with a custom validation script:

    Script for weight_lbs custom validate field

    If (event.value) getField("weight_kgs").value = "";

    Do the same for the other text field, but change the domain name in the script. This will allow only one field to be filled at the same time and do not bother with the masking.

  • 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 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 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 not to show duplicate lines, based on a field

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

    Hello

    I have a query that looks like some scripts that did not stand on a given date compared to what ran the same day about a week ago. We want to include the start_datetime and the end_datetime but when I add it to the select statement, it evokes all instances of jobs that run several times during the day. Is it possible to exclude the extra lines based on the field of script_name?
    SELECT instances.script_name, 
                             instances.instance_name, 
                             REGEXP_REPLACE(master.description, 
                                            chr(49814),  -- em-dash
                                            '-') description
                                            --instances.start_datetime
                      FROM   xxcar.xxcar_abat_instances Instances,
                             xxcar.xxcar_abatch_master  Master
                      WHERE  1 = 1
                      AND    TRUNC(start_datetime) = TRUNC(TO_DATE(:p_StartDate, 'YYYY/MM/DD HH24:MI:SS')) - (:p_NumOfWeeks * 7)
                      AND    Instances.SCRIPT_NAME = Master.SCRIPT_NAME (+)
                      MINUS
                      SELECT script_name, 
                             instance_name, 
                             NULL
                             --NULL
                      FROM   xxcar.xxcar_abat_instances 
                      WHERE  1 = 1
                      AND    TRUNC(start_datetime) = TRUNC(TO_DATE(:p_StartDate, 'YYYY/MM/DD HH24:MI:SS'))

    LESS performs a set operation - remove lines from the first series that exactly match the second set.
    When you add columns to the first series, you want a smaller filter - try a NOT IN multi-column:
    To remove several courses, to regroup and get min/max

    SELECT instances.script_name,
                             instances.instance_name,
                             REGEXP_REPLACE(master.description,
                                            chr(49814),  -- em-dash
                                            '-') description,
                             min(instances.start_datetime) start_datetime,
                             min(instances.end_datetime) end_datetime
                      FROM   xxcar.xxcar_abat_instances Instances,
                             xxcar.xxcar_abatch_master  Master
                      WHERE  1 = 1
                      AND    TRUNC(start_datetime) = TRUNC(TO_DATE(:p_StartDate, 'YYYY/MM/DD HH24:MI:SS')) - (:p_NumOfWeeks * 7)
                      AND    Instances.SCRIPT_NAME = Master.SCRIPT_NAME (+)
                      AND (script_name, instance_name) NOT IN
                    ( SELECT script_name,
                             instance_name
                      FROM   xxcar.xxcar_abat_instances
                      WHERE  1 = 1
                      AND    TRUNC(start_datetime) = TRUNC(TO_DATE(:p_StartDate, 'YYYY/MM/DD HH24:MI:SS'))
                    )
    group by instances.script_name, instances.instance_name, master.description
    

    You do not give the definitions of table and query schemas in him, therefore I don't test it.

    Kind regards
    David

  • 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 hide a link/article based on the condition

    Hi all

    I have three sections in my dashboard page; section two contains guest user has run before. The third section contains a link to run the report. I need hidden link, run the report that users fill out invites him and press the Go button. How can I achieve this?

    Well, here are a few tips to navigate in this forum...

    (1) If a person offers a suggestion, answer like "Yes, it worked" or "no, it didn't work," then explain how it did not work if possible (you have an error message?, unexpected results, etc.)

    (2) even if a solution maybe not exact, if you helped to give you a new insight or if someone has taken the time to develop a response that helps you understand your problem beter, you can and should provide "useful" points

    (3) if the answer solves your problem or validates what you thought, you can mark it as "correct" and recognize providers of solutions and advice. ("Thank you guys for your help," etc.)

    (4) finally close the message itself.

    This would encourage others to help you in the future when you ask your question. (It is possible to "Watch" a user and never answer their question once again, if the poster is rude or ungrateful.)

    My final advice is Kishore is among the largest AIDS in this forum, my recommendation would be not not to the flame of his comments (even slightly) because it is he who will decide whether he will help you again. Oh, and Kishore hosts this forum. With many others in this forum, there just provides solutions and tips, devoting his time and resources when he can. :)

    I hope this helps.

  • How can I show or hide a picture based on the size of the screen in CS6?

    I have a website created using Dreamweaver CS6. I used the checkerboard to fluid to hold different views for each of the 3 types - phone, Tablet, desktop computer. It works well, resizes properly. I would like to be able to show a picture in the desktop version but not the mobile version. How I do that? I can see in the .css file that the screens of different size can have their own different settings. Y at - it code I could add that could hide/show and image based on the users on the same page window? Let's say I have a div that is named photo. How could I add a parameter to the div photo in the stylesheet that would hide the image if it were mobile?

    Thank you

    Marilyn

    Thanks, I was able to change my code using your example and it works exactly as I wanted!

Maybe you are looking for

  • Portege R100: The screen goes black after installing SP2

    HelloCurrently, I tried to install SP2 for my laptop (Windows XP pro) R100. The end of the installation procedure I restarted the system, as requested. The windows logo appeared, then the screen went black and the only thing I could see was the mouse

  • Can I drag the event target source drag?

    I have adds drag and drop features of a tree control on a VI at several targets of slipping on different VI.  For example, they can drag the tree for a XY Chart on another VI, a table to an another VI, a digital indicator on an another VI, etc...  In

  • HP 15-P085TX: drivers

    My laptop model is HP15-P085TX... I want to download software driver for my laptop... is there a specific order to download drivers?

  • cannot change the windows theme

    When I go to customize and click themes looks like his tent to go to the next window, but nothing happens and I can't change my theme or screen saver. But it will allow me to change the back ground color

  • Updates to the BIOS/driver for Windows 7?

    I bought my desktop HP Pavilion Elite m9152p on computer a year ago and I had a few problems at the start.  I bought a retail upgrade to Windows 7 Ultimate x 64 and I did a clean install, but it was the same thing before on Vista Ultimate x 64.  Some