How to reset a lov value (which is a VO) at the click of a button

Hi Experts ADF,

Version JDEv

I have two of VO and the VO is dragged as a selectOneChoice as below

VO1

Select FIRST_NAME from employee where job_id = "AD_VP."

VO2

Select department_name in the Department where location_id > 1500

< af:selectOneChoice value = "#{bindings." ViewObj1.inputValue}.

label = "#{bindings." ViewObj1.label}.

Binding = "#{backingBeanScope.TestBean.lov1} '"

autoSubmit = 'true' shortDesc = "#{bindings." ViewObj1.hints.tooltip}.

unselectedLabel = "- Select -" id = "soc1" >

< f: selectItems value = "#{bindings." ViewObj1.items}"id ="si1"/ >

< / af:selectOneChoice >

< af:selectOneChoice value = "#{bindings." ViewObj1_1.inputValue}.

label = "#{bindings." ViewObj1_1.label}.

autoSubmit = 'true' shortDesc = "#{bindings." ViewObj1_1.hints.tooltip}.

unselectedLabel = '- Select -' id = 'soc2 '.

Binding = "#{backingBeanScope.TestBean.LoV2}" >

< f: selectItems value = "#{bindings." ViewObj1_1.items}"id ="si2"/ >

< / af:selectOneChoice >

There is a button Add where I want to validate if the user has selected a value any. But, validation fails, because it assumes that the label is not selected as the index 0. It also assumes the first index selected as index 0

I tried to print the values of the first index selected and unselected labels. There is 0 in both cases.

System.out.println (lov1. GetValue());
System.out.println (LoV2.GetValue ());
lov1. SetValue(-1);
LoV2.SetValue (-1);
//lov1.ResetValue ();
//LoV2.resetValue ();
AdfFacesContext.getCurrentInstance () .addPartialTarget (lov1);
AdfFacesContext.getCurrentInstance () .addPartialTarget (lov2);

So, how to reset the two values on the button Add. Do I need to rerun the query of two VO?

Thank you

Roy

Hello

If I make it empty or null, it does not reset. So the solution is to do the necessary = 'true' and showRequired = 'false '.

Because it is 11.1.1.4.0 Jdev version, the "*" is displayed in the user interface.

To avoid that I used custom css as below: -.

.hideStar span {display: none ;}}

And applied this particular component. If my application worked perfectly.

styleClass = "hideStar."

Add the listener to the button inside, I used the code to get the value of the drop down below

String descriptionVal = (String) (resolveExpression ("#{bindings.")) CDDescriptionRVO1.attributeValue}'));

String cdSubSectionVal = (String) (resolveExpression ("#{bindings.")) CDSubSectionRVO1.attributeValue}'));

See you soon,.

Roy

Tags: Java

Similar Questions

  • How can I open osk.exe in my c# windows on the click event of button application

    I tried the following code, but its still does not
    using System.Diagnostics;
    private void button17_Click (object sender, EventArgs e)
    {
    System.Diagnostics.Process.Start ("osk");
    Process.Start(@"C:\windows\system32\osk.exe");
    }
    but it's not always works

    Hello

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums for assistance:

    MSDN Visual Studio forums

  • How to reset many Solitaire games played and won Matches of the counters?

    How to reset many Solitaire games played and won Matches of the counters?

    Hi Keith,

    Found an answer for Vista, that should work for you in Windows 7.

    To reset the game statistics, you must delete some files. These files will be re-created automatically the next time you play the game. The files are located in the following location: 'C:\Users\[UserName]\AppData\Local\Microsoft Games\ [game]", where [username] is the name of your account and [game] is the name of the game (in your case, Solitaire). Just delete the contents of the folder, but DO NOT delete the folder itself.

    http://www.Vistax64.com/gaming/139902-Solitaire-statistics-reset.html

  • How to resize a photo for which fills right up to the whole composition window?

    How to resize a photo for which fills right up to the whole composition window?

    Twirl in the transformation of the layer properties and resize it to the top. You can consider using the scale detail Preserving effect if the difference in size is important. Otherwise, its largest size in Photoshop.

    If you don't know how to scale a layer, you should really start here: starting After Effects

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • How do you get a button to trigger the click of another button?

    Hello

    I have a hide/show region that is controlled by a button (Button). This button and the area is pretty far down on the page.

    If the client has requested that I created a second button (ButtonB) and place it at the top of the page and wants for this (ButtonB) button when you click on ' click on ' hide/show below (Button).

    Can you please tell how to proceed, ex:

    < INPUT type = "button" value = "show all regions" name = "ButtonB" onClick = "what should I put here to trigger the 'click' of A button" >. ""

    Any advice would be appreciated as I have to demo this function when the customer tomorrow morning.

    Thank you very much
    Laura

    Published by: user8936524 on April 19, 2010 04:35

    Sorry ill read the original question.
    The easiest way is probably to look at the source of the rendered page to find the link.
    The desired bit will be a function "javascript:hideShow()", probably in the tag with a class "t2HideandShowRegionLink" (or similar depending on the theme)

    If you feel adventurous, you can write a bit of jquery (other javascript libraries are available) to locate and execute the button directly instead of duplicating the code

  • How can I add a contact to my new folder, when the add new contact button is missing?

    original title: adding new Contacts

    How can I add a contact to my new folder, when the add new contact button is missing?

    Hello

    see if that helps

    http://www.vista4beginners.com/missing-buttons-from-Windows-contacts-toolbar

    http://www.Vistax64.com/tutorials/186477-new-contact-new-contact-group-button-missing.html

  • How to move to a new page on the click of a button?

    I use actionscript to develop a simple application and I'm new to application development. I don't know how to move to a new page on the click of a button. I need to go back to the old page as well. Kindly help me. The date deadline is almost.

    Welcome to the Forums Supprt.

    If you create your view that the enlargement of the Sprite class, you need to use addchild(), to remove the screen use removechild().

    // to add
    var sp : Sprite = new Sprite() ;
    addChild(sp) ;
    
    //to remove
    removeChild(sp) ; 
    
  • How to call a file on the performance of the 2014 CC via the click of a button

    Hi all !

    I do project HTML5 version Photoshop CC2014. To hide user content in the script file, this has been transformed in Jsxbin . How call a script on the click of a button? I would like to to include to insert the content all files with saptami master.

    Nothing appears immediately in my eyes...

    • You are of course, you need the extensionRoot.substr, sample does not have it?
    • File is in the right place? I don't use the plugin and slices for that, but he needs to copy all the files needed to the right place.
    • When you change things, you must close the Panel in Photoshop, so it will reload the files.
    • The jsx work at all (you can add alerts in there too)?
  • Help: How do reset you default values for the session and the time-out at the admin level

    Hello

    The DBA was trying to save the settings of time-out value by following the instructions and it kept him setting a default off 28800 timeout of Session Timeout and Idle of 3600.

    He saved the value 1, and now we cannot get to change.

    How do reset you the default preferences?

    Bill,

    Sorry, I missed your point. To undo this damage, try this:

    Connect as SYS

    ALTER session set current_schema = apex_030200
    /
    wwv_flow_platform.set_preference (p_preference_name-online 'MAX_SESSION_IDLE_SEC', p_preference_value-online 3600)
    /
    wwv_flow_platform.set_preference (p_preference_name-online 'MAX_SESSION_LENGTH_SEC', p_preference_value-online 28800)
    /
    Commit
    /

    Adjust 3600 and 28800 as you like.

    Scott

  • How to update a field value masked and send it to the DB in the ADF?

    Hello

    I use JDev 11.1.1.2.0 and ADF 11 g.

    I provide an update screen where one field is a field of State. This is directly related to DB tbl as well.
    When col1 is null status = 'A '. Where col1 has the status of invalid value = 'R '. In both scenarios, I do need to update the status of 'B '.
    The problem is that I don't have to display this status column to the user value. So on click of the button on the screen 'save', I must capture the value in col1 is entered by the user and update the status field.

    How can this be achieved?

    Thanks in advance.

    You can do model level...

    1 generate a ViewRowImpl class with accessors for your VO
    2. call setStatus method in your method of setCol1.

    You can check the conditions he what is the value entered in a method

    I guess I have the status column in the Emp table and I want to change the value when someone changes the salary > 5000 then status will be Y

      public void setSal(Number value) {
        setAttributeInternal(SAL, value);
    
       if (getSal().compareTo(5000) == 1) {
          setStatus("Y");
        } else {
          setStatus("N");
        }
     }
    

    hope this helps

  • lov automatic setting of null at the click of a button.

    Hi Experts ADF,

    JDeveloper 12.1.3.0.0

    I have a read-only VO as below which is dragged as a selectone choice. Do autosubmit = 'true '. I also have a valueChangeListener. In the valueChangeListner value, I'll put in an instance variable.

    And I have an Add button that partial shipment is set to true. But when the click on the Add button, inside actionListener, I get the value null for the instance variable.

    When I select a value, select a choice, I am able to see the value of valueChangeListener. The valueChangeListener inside I'll highlight selectedValue = valueChangeEvent.getNewValue;

    After I click on the Add button, in the actionListener I get selectedValue as null.

    Note: -.

    selectedValue is a variable instance with the getter and setter.

    The taskflow scope is backingbeanscope.

    Read only Vo:-select DepartmentId, DepartmentName from departments dragged like a selectonechoice.

    Thank you

    Roy

    Instead of the instance variable, save the value of the variable def page, as described here:

    http://andrejusb.blogspot.com/2011/10/page-definition-variables-to-store.html

    on this path, the value will survive another request

  • How to reset my home page which WILL NOT be RESET!

    I have used Firefox for several years, it's a wonderful product and I love it. Now, all of a sudden after I installed a few things I get now a homepage by default to an engine search for server proxy, (/proxy.allsearchapp.com/app/start/) I tried to re do the normal option / and adjust the home page option so many times. I also chose NO PROXY server option. I went to the about.config, and exchange the keyword.url nothing helps. I've even entered my cookies and delete the proxy allsearch and still nothing. I worked on this problem for days. I even uninstalled my firefox, restarted my computer many times and restarted and re installed from a new copy and wala... it is still terrorizing me. I don't get this with my internet explorer but I don't want to use it! I much prefer my Firefox. I googled this problem and does almost everything, he said, but now I don't know what else to try. Someone answer please?

    The Solution worked for me last week - thanks! -but now the maddening proxy.allsearchapp.com/app/start/ is back! I do not understand how this thing can keep going into Firefox and make my homepage so easily without my permission. I have the feeling that it'll be back, and when it is I'm afraid I'll have to give up Firefox, despite many years as a satisfied user. (And why Allsearch would think that someone would want to use a product that is on your computer?)

  • How to reset an iphone 4S which was given to me and they do not know their apple account

    They gave me an iPhone 4s to a friend, the iPhone is disabled and I need his email/password to connect to the device and he forgot, is it a way I can completely reset even though everything on gets them lost?

    No, better give you to your "friend" and says "thank you".

    There is no way that locking Activation can be bypassed.

  • How to correct for IQ rates which are not supported by the NOR-2920?

    Hi all;

    I use Labview 11 and the NOR-2920 (Ettus Radio) to build a FSK receiver, I the Modulation toolkit.

    My carrier is 169 MHz, my flow is 256Kbits/sec, my tour of frequency is around 89. 5 kHz, I choose a 16, my symbols FSK samples/symbol is 2 (0-1).

    My receiver is close to work, however, I am getting an extra of 5 bits in my 408 bits frame data.

    My sync bits are all the tail and the front end of my frame data which has also a meter 16-bit images on the front of the frame, which runs from 0 to 65535 without losing data.

    I think that the extra bits are the result of rate IQ I try to set to 4096K based on 256 K * 16 = 4096 K

    The radio seems to default to 4,166667 M for the rate of IQ.

    The ratio of 408bits /415bits = 4096/4166 coincidence or not?

    Is there a way around this problem in the configuration of the NOR-2920 or how I manage the sampling and recovery of data.

    Any guidance would be greatly appreciated.

    Don3of4

    All interested for:

    The answer is Labview a an I / Q resample module.

    Connection between the extraction of radio and the demodulation modules, set the sampling frequency entry real want = rate * of the data samples / symbol.

    Work so far, don't know what is happening when other tolerances overclocking begin to influence the data, but for now his work.  Also don't know why this is not incorporated into the receiver or the fetch modules for sampling rate that you actually need from the beginning but I'm still learning.

    Don3of4

Maybe you are looking for