ADF: How to hide a table with drop-down list value change listener

Hello

IM using Jdev 11 G.
I have a 2 tables (table1 and table2) and a list of choices. (select a choice with id soc1).
on the evolution of the values pickist, I have to run query for table1 and table2 to hide.
For this, I gave the partial relaxation of the tables to soc1 (id select only one option) but its not working.
How to solve this problem?

Clues?

Thank you.

After you have set the wrong table 2 visible

this.getTable2 () .setVisible (false);

You programatically raise the PPR on the table 2?

Something like:

AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTable2());

Arun-

Tags: Java

Similar Questions

  • Show/hide region when the drop-down list is changed

    Hello

    I need show/hide a region when dropdow (selection list) is changed.

    I used dynamic action:

    Event : change
    Selection Type : Item(s)
    Item(s):P50_my_list
    condition : JS expression
    $v('P50_my_list') == 1
    
    True Action :
    Action : Execute JS Code
    Code : $('#region_name').show();
    
    // OR use Action ==> Show
    
    

    False Action :
    Action : Execute JS Code
    Code : $('#region_name').hide();
    
    // OR use Action ==> hide
    

    But the region has still shown!

    Also, I used a JS function (in the dynamic action of the place) but I met the same result.


    function showHideRegion(pValue)
    {     var show_or_hide = $x(pValue).value;
        if (show_or_hide == 1)
          {$('#ALTERNATIVEN_LIST').hide();}
        else
          {$('#ALTERNATIVEN_LIST').show();}
    }
    
    
    

    Hello

    I solved the problem with the js function:

    function showHideRegion (pThis, pValue)

    {var show_or_hide = $x (pValue) .value;}

    If (show_or_hide == 1)

    {

    var element = $x_UpTill (pThis, 'DIV');

    Element.style.display = 'none ';

    } else {}

    var element = $x_UpTill (pThis, 'DIV');

    Element.style.Display = "block" ;}

    }

  • Dynamic table with drop-down lists

    I have a dynamic array with a header row, row in Section, and footer.

    Section has the cells (columns) next: Cell1 (drop-down with locations), button (to remove the line), CCode (RAL color Code), CName (name of the color).

    I start with 1 row.

    now what I want to do is, when they select in Lignesde for example RAL 1003 (rawValue '1') then in CName must appear the name "yellow signal" (rawValue '1').

    I am using javascript

    My first problem is how do I know what value is chosen, because this does not work:

    If (this.rawValue == 1)

    {

    xfa.host.messageBox ('Today')

    }

    and on the other hand, how to set the CName value

    because it affects only in the first cell CName:

    xfa.form.DataSheet.TechnicalInformation.Markings.THatchPatterns.Section.CName.rawValue

    = '1';

    Please help me, I'm totally lost

    solved the problem, instead on the change event to put the script on the exit event.

    and the trick is the following line:

    xfa.resolveNode ("THatchPatterns.Section [" + this.parent.index + "]"). This.rawValue = CCode.rawValue

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • How do you define a table of drop-down list to a specific value boxes?

    I have a table of drop-down list boxes that I want to put a specific value. When I say my program to put them to affect only the drop-down list box which just recently I changed and none of the others.

    I have attached a small vi presents the problem.

    Thank you

    -Ben

    It would be the value - property

  • Search with drop-down list box

    Hello, I am looking to build a Web site for real estate agent and I need to know how I could do a search box with drop-down list according to the image below?

    is there a widget for it?

    Please, if you know a tutorial for that or something Visual on how to let me know

    Screenshot_4.png

    Here are the options available through widgets in Muse:

    http://musewidgets.com/products/data-table

    http://musewidgets.com/products/addsearch-button

    http://musewidgets.com/products/addsearch-Widget

    For a more exact search with custom field values, you can create web app items in case you are using Business Catalyst for hosting your site.

    Thank you

    Sanjit

  • Binded based on drop-down list values in a table of fluid

    Can anyone help me please with my form of practice?  I'm just started learning make a fillable pdf form. I did my practical form modeled after the purchase order example provided with the installation of livecyle.  I want my table to automatically display the unit price when I select an item in the drop-down list.  I managed to do it using the script below.  The problem comes when I add my guard selection by returning to the first item on the drop-down list or on my first selection on the first row of lines. I would like to add something, the script below.  Help, please.

    menu.JPG

    RefreshmentOrderform.RefreshmentOrder.details.detail [0]. item::change - (JavaScript, client)

    unitprice.rawValue = this.boundItem (xfa.event.newText);

    unitprice.value = xfa.event.newText;

    Hello

    The problem you are having is because the ID of the drop-down list values are duplicated, if I choose cherry slice that get a 3 id (which is supposed to mean $3.00), but it is also the id of the Ambassador (as well as Brownies and coffee).  If similar problem with chocolate tarts going assorted Mini Cookies.

    If you keep the unique id.  At first, I thought that you must assign the id 1,2,3,4... and a search in the table for the price, but I liked your idea to keep it all in the drop-down menu control, so if you changed do so their unique, something like 1: 3. 00, 2:1. 50, 3:3. 00,... you could strip the part before the colon by changing your code change event;

    unitprice.rawValue = this.boundItem (xfa.event.newText).split(":") [1];

    That transforms the id in a table and takes the second element.

    In addition, there are a few errors in your form.  In Acrobat (or reader) you should turn on 'See the console on errors and messages', which is located under preferences... JavaScript.

    The second line in your change event causes a runtime error as the value property of a numeric field is its default value and to reference properly, you need to use.

    unitprice.value.oneOfChild.value

    But you do not have this line at all in this case.

    There is also a problem with the initialization script in numServiceChargerate, that looks like a problem of displacement of FormCalc in some parts of the JavaScript form in others, I would try and stick with one or the other.

    Good luck

    Bruce

  • Registration of dependent drop-down list values

    Hello

    I have a form that has a dependent drop-down list, that is, if a user selects a value, another drop-down list is filled with other choices. This works with success, however if a user saves the form with these selected values, when they open the form again the first drop-down list value disappeared; is it possible to validate this value when the form registers so it does not disappear on reopen?

    Thanks a lot for your help.

    Scott

    Of course, I would be happy to take a look.

  • How to get a selection of drop-down list to complete another field with nothing

    Hello

    I have a drop down menu that fills another field according to what is selected (as shown here where Admin mistakes fills the next field with 6735-10-01).

    Capture-1.JPG

    However, there are 3 items in the drop-down list that I don't want to fill in the other with (basically, it must be empty during one of these 3 elements are selected, in contrast to how it returns zero in the example below). I don't know what to put in for the values to make it white.

    Capture-2.JPG

    Please notify.

    Kind regards

    ZeroZone

    I don't know what your code looks like or where it is but you will need to add a conditional statement, such as:

    If (DropDown.rawValue == "0" | ") DropDown.rawValue == "1" / * | "" etc, etc, * /)

    TextField.rawValue = null;

    on the other

    TextField.rawValue = DropDown.rawValue;

    Kyle

  • Using fields show/hide with drop-down lists

    The following code stores and displays the data in a field of view based on what the user selects and it works fine, but I'm not sure how to incorporate additional content in this context.

    Form1. #subform [0]. indPaymentOptions::change - (JavaScript, client)

    Switch - test for the "selected" text, if so, display "display" text

    switch (this.boundItem (xfa.event.newText)) {}

    case "donation/Contribution:

    var display = "Restricted use, usually the student fundraisers. May be a political entity neither does not endorse a political goal. Raised funds donations require a copy of the filing. < span style =------"color: #FF0000;" make-style: italic; ------"> must be attributed to Unassigned funds and senior officer of the authority." </span > ';

    XmlToShow = XmlStart + screen + XmlEnd;

    xfa.resolveNode ("form1. #subform. Display_Field_Pay_Types'). value.exData.loadXML (XmlToShow, true);

    taxReportable.rawValue = 'Y ';

    AccountCodesDynamic.rawValue = "001285;

    break;

    case "Membership":

    var display = 'membership sponsored University must be directly related to the responsibilities of the proposed Member University. Get institutional investors rather that individual memberships to allow the participation of several or another employed. Membership must use a UCSC address for administrative audit. « ;

    XmlToShow = XmlStart + screen + XmlEnd;

    xfa.resolveNode ("form1. #subform. Display_Field_Pay_Types'). value.exData.loadXML (XmlToShow, true);

    taxReportable.rawValue = 'Y ';

    AccountCodesDynamic.rawValue = "001200, \n001210;

    break;

    by default:

    VendPaymentOptions.rawValue = "Please select an option from the drop-down menu"Select type"above."

    taxReportable.rawValue = "";

    break;

    }

    I'm going to show a hidden field, once one of the items in drop-down list is selected with an if statement then. I tried to put the code below in the code above, but it does not work. I am familiar with livescript event management system, so I'm not too sure where the if then statement must be submitted. Should it be set in the * click the section? Or the initialze section? If someone could shine some light on what to do here it would be great.

    If (xfa.resolveNode("form1.#subform.indPaymentOptions").rawValue == 1) {}

    xfa.resolveNode("form1.#subform.textfield1").presence = "visible";

    }

    else {}

    xfa.resolveNode("form1.#subform.textfield1").presence = 'hidden ';

    }

    My example display only text. When you view the drop down from the window of the object, click the link tab. If specify the item values is checked, then boundItem will return what is in the value column during the passage of what is in the text column. If you have added an additional element in the list without adding an item of value, maybe that's your problem. In my example, if you check the box, it will be 1, 2, 3 in the value column. If you then in the code, you have added the this.boundItem part, case sections will have to be changed from 'TextField1' to '1' and the same for the 2 and 3.

  • How can I disable the menu drop-down list on the back button?

    I use a laptop and my hands are not too clever. Whenever I click on the 'back' button, I get the drop-down list, which means that I must then back up my hand to the pad (gently!) to move the pointer, and then try again. It may take me several attempts to turn back a site now!

    I searched for hours how activate the drop-down list, nothing is done and even looked through all the settings in: config to try to find a way around it. Seriously impact my ability to use my laptop on the web now, so if someone can you please come up with a way to return to the old back button, with no menu when my finger slow old cannot move pretty fast down the key, I would be very grateful.

    There are two other ways to return to a page.

    • Right click on a box empty page you visit and use the dos command
    • From the keyboard, press {Alt + left arrow}
  • How to read data from the drop-down list

    Hi all

    I use this to display a drop-down list.

    inputScreen.add (new NumericChoiceField ("number of objects:", iStartAt, iEndAt, iIncrement, iSetTo));

    How to read the data selected by the user? say if my list contains from Monday to Saturday, how will I know what day selected by the user? and how that store in the variable? Thank you.

    You have your data in a table and this stone he is used to populate the ObjectChoiceField. The FieldChanged listener you can obtain what the iteme selected to help index:

    int index = yourObjectChoiceField.getSelectedIndex ();

    and for the use of the object:

    Bean of MyObject = myObjectArray [index]

  • Problem with drop-down list that prevents the use of the functions, will not go away.

    Hello

    I have Windows 7.  I could not afford MS Office, so I downloaded OpenOffice and, later, LibreOffice.  My problem is, when I open a document to write in a program, a drop-down list (formatting) is displayed.  It starts with "Default" at the top.  The box does not work, if I click on anything that it just flashes.  Or it will disappear.  I tried everything I can think of to get rid of him.  And, as long as it's here, I can't write to a document.  I can close, but only by closing the program.

    Is this problem only with free Office programs.  Sometimes when I am looking for a program in Windows 7, or if I'm looking for the Help menu in 7.

    I'm not very savvy computer.  If you would be interested to help me, thank you very much, but please don't expect me to know some thing on anything whatsoever.  I used to use the mode BACK back in the day, but the subterrain of computers is a subject that I've lost contact with long ago.

    You can also try to test with another Windows user, in case you have a corrupt user profile.

    If things were OK and then maybe a few days ago, System Restore is an option.

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista (or 7)
    http://support.Microsoft.com/kb/936212/#appliesTo

    Don't you see the same problems in Mode safe?

    Startup options (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

  • How can I create a menu drop-down list dynamics that controls two separate drop-down lists?

    Hello

    I could use help decipher how to control 2 separate drop-down lists ('b' and 'c') through the value selected in the main drop-down menu (that is, 'a').

    My script worked perfectly to control another menu drop down, however I can't seem to properly control the third zone.

    In my example below, what I'm trying to do is control 'Method - external' and 'Department - external', through my gout primary to the bottom of the list. The external 'method -' drop-down list works fine, it is the third 'Department - external' that I fight with.

    For example, if 'Theft' is chosen in the first drop-down menu, I want 'Method - external' to display the series points and "Department - external" to display a different set of items. If 'Cyber Crime' is selected in the main menu down, then the external 'method' - set items will change and the external "Department -" will indicate N/A.

    With the following script - no matter what happens if I choose 'Flight' or 'Cyber Crime' in the first menu drop down, 'Cyber Crime' n/d game elements are displayed in the external "Department -" drop-down.

    I apologize if this is hard to follow - it is certainly difficult to explain. I hope that my question came through.

    Here's my current script

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    break;

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    break;

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

    Thank you

    You have a few break statements that should not be there. Try this:

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

  • How to disable the search in drop-down list control

    Hi all

    I'm designing a dashboard with a command prompt. In this message, I use a drop-down list control which I hope to turn off the option "search...". ».
    Does anyone know a way to disable the option 'search' in a drop-down list control, so that users can not find values on the database.

    Any kind of help appreciated.

    Thank you!

    Laurent

    Published by: 988334 on 26 Feb. 2013 10:27

    Hi Laurent,.

    You can try the below workaround to hide the option "search...". "on the drop-down list.

    -Click on the dashboard to change where the dashboard prompt is present.
    -Add a text object to the page and paste the code below into it.

    -Check that you check the option 'Contains HTML markup'.
    -Save the page and run the dashboard. This should hide the option "search...". ».

    I tried this on IE and obiee version 11.1.1.6.6.

    Thank you
    Hyder

Maybe you are looking for