How to update values in ValueChangeEvent..

Hi Everyone,
I am using Jdeveloper 11.1.2.0.0.
I have a scenario as follows. I have 2 input fields as Password and Confirmpassword.
I wrote a ValueChangeListener for the field Password to do some validations and I wrote another ValueChangeListener for the Confirmpassword field inorder to compare the values entered in both fields.
But here.., In ValueChangeListener event of Confirmpassword field, iam unable to fetch the value of Password field to compare.
The reason is ..., ValueChangeListener  occurs in ApplyRequestPhase/ProcessValidationsPhase, and values get updated in UpdateModelPhase, hence values are not updating and unable to fetch in ValueChangeListener  event.
In order to update values to the component tree in ValueChangeListener event, i tried using below code
valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
But values are not updating..Kindly suggest me to achieve my scenario. Do the needful. Thanks in advance.
Regards
Alekhya

Hi Nitish...
Thanks for the response...
I tried fetching password field value in Confirmpassword field by 2 ways as follows
1. I binded value of the field as #{backingBeanScope.LoginPage.pwd} and tried to get value using getPwd() method.
2. I fetched Ui component of  password inputfield and tried to get value using password.getValue()
By both ways Iam getting null value in ValueChangeListener event of Confirmpassword.
After clicking a button on the page , as usual the setters, ValueChangeListeners are executing and during this sequence..Iam getting value . But my scenario is this validation should be performed bu tabbing out of the field , not after clicking on a button .
autoSubmit property is set to true.
Kindly suggest me to proceed further. Thanks in advance.
Regards
Alekhya

Similar Messages

  • How to update value in internal table from cdpos taking fname n value_new?

    hello everyone,
              i want to insert  value in internal table from cdpos table taking field name  from fname and value from value_new.but the problem is i am not getting how to map the corresponding field of internal table with fname value  which is the field name.
    for example
    i
    fieldname
    value
    name1
    raj
    name2
    sharma
    i want to update field name1. this name1 is there in fname with updated value in value_new  how to make name1 with fname value
    thanks and regards
    laxmikant soni

    Hi Laxmikant,
    If I have understood your requirement correctly, you need to update an internal table with latest 'value_new' from cdpos table where  'fname' = 'fieldname' .
    Hope the below logic will help you:
    FIELD-SYMBOLS: <wa_intab> LIKE LINE OF lt_intab.  "the internal table you want to change
    LOOP AT lt_intab ASSIGNING <wa_intab> .
       READ TABLE lt_cdpos INTO wa_cdpos           "lt_cdpos contains latest data selected from CDPOS
        WITH KEY fname = <wa_intab>-fieldname.
       IF sy-subrc = 0.
         <wa_intab>-value = wa_cdpos-value_new.    
       ELSE.
         "//logic if the name is not there in CDPOS
       ENDIF.
       CLEAR  wa_cdpos.
    ENDLOOP.
    If you wish to improve performance, I suggest using
    1. "transporting value_new" addition in READ TABLE,
    2.  select only the data which you require from CDPOS,
    3.  create the internal tables with only fields which you require,
    4.  when you are using SELECT,LOOP AT statements, limit records by using WHERE condition
    Regards,
    Kavya

  • How to update values for qty n batch in mska table

    Hi experts,
    i would lke to know is it possible that we can update value of availabity of stock which is existing batch wise in MSKA table field 'kalab' (qty) n charg (batch).
    i mean we have devided material per document number into batch a b c.
    suposse
    we have '20015' material
    for doc1 (vbeln) -- A qty 5
    B qty 5
    C qty 0
    for doc2 (vbeln) A qty 2
    C qty 5
    B qty 0
    But after delivery we want to change the distribution of stock material like .
    for doc1 A qty 2
    B qty 3
    C qty 5
    and for doc2 A qty 5
    B qty 2
    C qty 0
    i create one programe and check the availabity in mska table n give input field to reorder the batch n quantity but how should i send these values in mska table so that sap will show the correct availabity of stock batch wise.
    if somebody did it before. through ur input please .
    Thanks.
    Seema

    Hi sutar,
    Seems it is not WD related Question.
    You are updating two tables here, but not updating in Database. check two tables how they are related.
    and mysuggestion is try to update thease two tables by using code in se38. you will get where the problem is.
    Cheers,
    Kris.

  • How to update values in the table control at  Cat2 transaction,

    Hi,
    i am working on cat2 transaction, here
    i am using the exit_saplcats_006 and updating values at catsdb table, but i want to display this values at the table control in the cat2 transaction.
       can any one provide me solution for this same.
    Regards

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • How to update values in ztable through hyperlink

    Hi Gurus,
    The Problem is I want to send sales order in mail to any id and mail should have two links
    like Accept or decline and when user clicks on this link there sholud be some process to update z table.
    Pls help how to achive this.
    Should i use some services or webdynpro or there is some another mehod by which i can get values inside SAP.
    Thanks
    Pooja

    Hi Uma
    workflow is not configured in my company..
    Please suggest some other option..
    I am able to send data through mail but how to capture the links pressed outside and update tables in sap.
    Please guide
    thanks
    Pooja

  • How to update values to the database?

    hi all!
    iam using a simple form where some 4 or 5 textitems are used.
    with a select query, iam selecting a particular record.
    say, if i update a particular value(column), then how can
    i make the code in such a way that only particular column is
    updated.
    p.s:
    my query shud not update all the column values.
    is anyone can help me?
    thanks.

    Maybe you can use the following to find out where the cursor is, then check if that field has been updated:
    SYSTEM.CURSOR_ITEM
    Description
    SYSTEM.CURSOR_ITEM represents the name of the block and item, block.item, where the input focus (cursor) is located.
    The value is always a character string. hi Bob!
    hope this logic works out.But can u explain with some code sample.
    Thanks a lot.

  • Sub: How to update value of a single filed in the standard table without  u

    Hi experts,
    In the standard webdynpro component , i want to change particular field value based on some condition.  I cannot use bind table to update the single value, because other filed attributes are getting cleared .so is there any way to update only particular  row related field value. Please let me know. This is very urgent. Please post if you have any idea.

    Srinivasu Y wrote:
    >   I cannot use bind table to update the single value, because other filed attributes are getting cleared .so is there any way to update only particular.
    Hi,
    It is clearing because you are just updating  only that particular field direclty.,
    instead First You read the selected Row using  get_static_attributes( ls_tab ) method .
    no in ls_tab modify your required field and then rebind it .
    hope this clears your doubt.,
    Thanks & Regards,
    Kiran

  • Help me on how to update values with some condition ?

    hi..
    I have data as below:-
    select qualifier from nv2_audit_log where qualifier like '%NXPRI%NXUPM%';
    /acec/nv2am/data/input/NXPRI/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXPRI/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXPRI/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXPRI/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXPRI/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXPRI/NXUPM.P691811_691910
    /acec/nv2am/data/input/NXPRI/NXUPM.P691811_691910
    /acec/nv2am/data/input/NXPRI/NXUPM.P691811_691910
    /acec/nv2am/data/input/NXPRI/NXUPM.P691811_691910
    The question is how could i update all the qualifier from
    /acec/nv2am/data/input/NXPRI/NXUPM.P691811_691910 to /acec/nv2am/data/input/NXUPM/NXUPM.P691811_691910 where qualifier like '%NXPRI%NXUPM%' ?.. Could somebody help me ?
    Actually i want to change the NXPRI to be NXUPM only for all record with qualifier like '%NXPRI%NXUPM%'
    The output must be like this:-
    /acec/nv2am/data/input/NXUPM/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXUPM/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXUPM/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXUPM/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXUPM/NXUPM.P691011_691110
    /acec/nv2am/data/input/NXUPM/NXUPM.P691811_691910
    /acec/nv2am/data/input/NXUPM/NXUPM.P691811_691910
    /acec/nv2am/data/input/NXUPM/NXUPM.P691811_691910
    /acec/nv2am/data/input/NXUPM/NXUPM.P691811_691910
    Thank you,
    baharin

    Hi,
    Use this update statement.
    Update
    nv2_audit_log
    Set
    qualifier = replace(qualifier,'NXPRI','NXUPM')
    Where
    qualifier like '%NXPRI%NXUPM%';
    Hope this helps!
    Regards,
    Rajesh.

  • How to update value of LAST_AUDIT_DATE

    Hi,
    Due to some business requirements, we created a custom collection for audit.
    Now I want to update the OOB field LAST_AUDIT_DATE with a value from the custom collection as this is used in an existing report. I am trying to set the value in my script using the syntax below:
    doc.getFieldMetadata("LAST_AUDIT_DATE").set(doc, <someauditDate>);
    But my script throws an Nullpointer exception stating  Attempt to invoke method set on null value.
    What am I missing? Do I need to access this field by some other way?
    Thanks,
    Priyanka

    Hi Priyanka,
    I got your question in a wrong way.
    Try the below piece of code:
    import com.sap.odp.api.common.types.TypeFactory;
    newdate=doc.getExpirationDate().getDate(); // I have taken as example, you can take value from your extension collection and set.
    date= TypeFactory.createSysDate(newdate);
    doc.getFieldMetadata("LAST_AUDIT").set(doc,date);
    Let me know if it helps.
    Regards,
    Kushagra

  • How to update value in RMUSER_TAV table.

    Dear experts,
                             how the field type in rmuser_tav table is updated,can we update directly in the table or will it get it through a roll or from configuration.
    In the staging server i have updated directly in the table shall i proceed with the same or any idea
    Regards,
    krishna maohn

    Hi krishna mohan,
    Even I want to know how the table RMUSER_TAV is getting updated. Please let me know if you have idea on it.

  • How to update value stored in a table when we select a value from a list

    In my jsp page i have given
    <html:select property="function" >
         <html:option value="select">Select Actions</html:option>
    <html:option value="open">Marks as open</html:option>
    <html:option value="closed">Marks as closed</html:option>
    </html:select>
    I am using lookup dispatch action in action class
    public class LoginAction extends LookupDispatchAction{
    protected Map getKeyMethodMap() {
              Map map=new HashMap ();
              map.put("open","open");
              map.put("closed","closed");
              return map;
    public ActionForward open(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
         public ActionForward closed(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
    but when i select a value from the list,the corresponding action is not occuring.What should i put in my code??

    Put your code between the code tags, it makes it so much easier to read.
    To do that, just highlight your code and click on the "code" found between " and the circled ?.
    From what I can read of your code I don't even see a table or a list, so i have no idea what you are trying to do. You probably need to show more code.
    JSG

  • Reg How to Update DeleteFlag Image (Default N)  Value in Table

    Hi Friends,
    I have One Column Delete Button(Style Image) in Advanced Table So Based on That Delete Button Click I need to Update Value in Table(DeleteFlag =Y )
    So How to Update Value in Table(Data Base).
    Select empno,deleteflag from Emp where empno=:1
    I attached this EmpVO to Advance Table So How to update Delete Flag(Y) Value.
    Hint:::::: Iam Using Packages(Pl Sql) And Read Only VO's Only.
    With out Using Package & EOVO Update is Possible In OAF.
    Thanks & Regards
    San

    Okay ,
    Here we go ,
    Step 1 : Select the item in the table ( image) and go to property inspector and select fire action , give some name for Action .
    Step 2 : Capture the above event from your controller class ( ProcessFormRequest () ) and Implement SQL statement
    Use below code :
    Import the followings
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    if ("YourEventID".equals(pageContext.getParameter(EVENT_PARAM))) // replace your event id created above
    Inside if statement Add code to handle sql statement .
    try
    String Query = " "; // write any single SQL statement along with bind parameter inside " " , in your case it should be update statement
    PreparedStatement stmt = conn.prepareStatement(Query);
    stmt.setString(1,Paramtervalue); //set your bind parameter value here ( where clause paramter )
    catch(Exception exception)
    throw new OAException("Error in Staffing Query"+exception, OAException.ERROR);
    Keerthi
    Edited by: keerthioaf on Nov 27, 2012 1:47 AM

  • Update values on an Adobe Interactive Form

    My question refers to the thread posted back in 2004 which remains unanswered...
    Thread: http'How to update values in Adobe form?
    With ECC 6.00 (SP10) , assuming that the Webdynpro and Adobe Interactive Forms has been correctly setup, can values on an Adobe Form be updated after retrieval from the back-end database?
    Updating of UI elements NOT on the Adobe Form has always worked; but, there it is unclear if the problem to update values inside the Adobe Form has been resolved.
    Can anyone address this issue with a detailed explanation or example code?
    Best regards,
    john

    Can you please, open a customer message in the BC-SRV-FP queue and please, provide your landscape component info, i.e., ECC 6.00(SPS10), AS Java SPS?.  Please also, provide a WTS connection and information on how to replicate the problem.  If it is possible also, upload the webdynpro project in question.
    Thanks... George

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to update bind variable and restrict values in a Model Driven LOV?

    Hi Guys,
    Using JDev 11.1.1.2.0
    I've recreated an excellent Frank Nimphius article about restricting values derived from a model driven LOV (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/44-restrict-lov-169186.pdf)
    But my bind variable isn't updating. Deleting the bind variable gets me the entire LOV. Activate the code below and insert a bind variable into the where clause like Frank says and I get nothing back. Bind variable is blank. Any ideas? Code wasn't supplied with the article. It seems simple enough but the bind variable isn't updating in the SQL, even though the updated value shows up here...
      public void onLovLaunch(LaunchPopupEvent launchPopupEvent)
        BindingContext bctx = BindingContext.getCurrent();
        BindingContainer bindings = bctx.getCurrentBindingsEntry();
        FacesCtrlLOVBinding lov = (FacesCtrlLOVBinding)bindings.get("DepartmentId");
        lov.getListIterBinding().getViewObject().setNamedWhereClauseParam("deptId","60");
        System.out.println("lov name: " + lov.getName().toString());
        System.out.println("lov Param Attrs: " + lov.getListIterBinding().getViewObject().getNamedWhereClauseParams().getAttribute("deptId").toString());
        System.out.println("lov View Object: " + lov.getListIterBinding().getViewObject().getName().toString());
        System.out.println("lov IterBinding: " + lov.getListIterBinding().getName().toString());
       }Gets me ...
    lov name: DepartmentId
    lov Param Attrs: 60
    lov View Object: _LOCAL_VIEW_USAGE_lov_model_queries_EmployeesView_DepartmentsView
    lov IterBinding: DepartmentIdList_2

    That's a good idea, but it's still not working. Here is how I implemented it. It might be different from your suggestion as I'm still pretty new to this.
    I have a recursive tree table. You select a node. You then click a button which calls the listener below. "findParents" is a method call to the AppModuleImpl class and it finds all parent nodes of your selection. "restrictPartBomLOV", also of the AppModuleImpl class, then modifies the model driven lists' View Object (partBomLOV) to exclude those parent node values.
    The resulting model driven LOV on the popup should be updated, yeah? But it still isn't udpating. If I manually type in the updated Where clause in PartBomLOV.xml query tab, it works, but it doesn't programmatically.
      public void insertPopupFetchListener(PopupFetchEvent popupFetchEvent)
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("findParents");
        parents = (List)operationBinding.execute();
        operationBinding = bindings.getOperationBinding("restrictPartBomLOV");
        operationBinding.execute();
       public void restrictPartBomLOV(List parents)
          ViewObjectImpl vo = getPartBomLOV();
          String wcl = "";
          Object[]   p = parents.toArray();
          for(int i = 0; i < p.length; i++)
             if (i == 0)
                wcl = wcl + "PNUM <> '" + p.toString() + "'";
    else
    wcl = wcl + "AND PNUM <> '" + p[i].toString() + "'";
    vo.setWhereClause(wcl);
    System.out.println(vo.getWhereClause().toString());
    vo.executeQuery();
    Edited by: LovettWB on Nov 11, 2010 11:23 PM

Maybe you are looking for

  • MacBook Air is just flashing on and off but not working after trying updates

    This morning I got notification that I was supposed to update my MacBook Air with both update for iTunes and update for Firefox.  I hit yes to both. Now I am just getting a constant flashing on and off and blank screen alternating with brief picture

  • Position of Character in a string

    Hi all, Consider the string , "                                          Hello World" where the space before the letter H in Hello are empty character spaces. Can anyone tell me  how I can find the position of the letter H from the beginning of the s

  • Position Background Video

    I think I know the answer to this question from googling, but I'd like to confirm that... I would like to have a background video playing on in a window/viewport on one side of my menus. So far as I can tell, that's not possible in Encore CS5; if you

  • Installing ink cartridges after moving to US fro UK

    Ok, so I see this is not a new problem. How can I get someone at HP to help me regionalise my printer to the US ink from the UK ink. Followed the instructions I've found here so far. 1 have UK ink in printer, 2. Have US ink bought and standing by, 3

  • Origin Group

    hi,, Please tell me what is exact purpose of Origin gorup under costing 1 view  in material master and is there any relation between origin group and overhead group ?? Regrds, Samrat