How to add a message to a field in a dataTable row?

I have a dataTable with a var "selectedUser". Each row has a 2 fields: username & password, both editable and 2 buttons: save and delete. In the "UsersControllerBean.updateUser" method associated with the update button, I want to be able to add an error message to the field on the corresponding row where the button has been clicked. How can I retrieve the client Id of the field from the "selectedUser" var associated with the dataTable (that I get from the RequestMap) to add the message to it?
Is there an easier way of doing this? (no, thanks no link button!)
Thanks
Fred
               <h:form id="users">
               <h:dataTable border="1" width="100%" value="#{UsersControllerBean.usersList}" var="selectedUser">
                    <h:column>
                         <f:facet name="header">
                                   <h:outputText value="Id"/>
                         </f:facet>
                         <h:outputText value="#{selectedUser.userId}"/>
                    </h:column>
                    <h:column>
                         <f:facet name="header">
                                   <h:outputText value="Name"/>
                         </f:facet>
                         <h:inputText id="username" required="true" value="#{selectedUser.username}"/>
                         <h:message for="username" style="color: red"/>
                    </h:column>
                    <h:column>
                         <f:facet name="header">
                                   <h:outputText value="Password"/>
                         </f:facet>
                         <h:inputText id="password" value="#{selectedUser.password}"/>
                         <h:message for="password" style="color: red"/>
                    </h:column>
                    <h:column>
                         <f:facet name="header">
                                   <h:outputText value="Actions"/>
                         </f:facet>
                         <h:commandButton value="Save" action="#{UsersControllerBean.updateUser}"/>
                         <f:verbatim>��</f:verbatim>
                         <h:commandButton value="Delete" action="#{UsersControllerBean.deleteUser}" immediate="true"/>
                    </h:column>
               </h:dataTable>
               </h:form>

Dear Friends,
Finally, I got the answer.
I required to add the messages to error log for invoice. Error log is displayed in Tree format.
The error log getting displayed while processing invoice with help of table VBSK.
We can update the VBSK table information with required message to put in log.
Best regards,
Amol Chaudhari.

Similar Messages

  • How to Add/Concatenate to a text field, values selected in a combo box

    I have a combo box form field that allows the user to select a value from a list and click on an Add button. The Add button should add/concatenate the vaue selected to a text field in order to create a list of values selected. I'm not sure how to do this using Javascript in Acrobat? I know I need to add the javascript to the Add button's Mouse Up action. Any help would be greatly appreciated. Thanks!

    Thanks so much - it works!
    >>> "Gilad D (try67)" <[email protected]> 9/25/2013 9:16 AM >>>
    Re: How to Add/Concatenate to a text field, values selected in a combo box created by Gilad D (try67) ( http://forums.adobe.com/people/try67 ) in JavaScript - View the full discussion ( http://forums.adobe.com/message/5712118#5712118 )
    Let's say the text field's name is "Text1", and the combo is called "Combo1". You can then use this code as the MouseUp script of the Add button:
    var f1 = this.getField("Text1");
    var f2 = this.getField("Combo1");
    if (f1.value=="") f1.value = f2.value;
    else f1.value = f1.value + ", " + f2.value;
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5712118#5712118
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5712118#5712118
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5712118#5712118. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in JavaScript by email ( mailto:[email protected].com ) or at Adobe Community ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=3286 )
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to add log messages in the sever/webui objects?

    Hi,
    I am new to the OA Framework.
    Can any one share any information in how to add log messages in the sever/webui objects?
    What are the beans I need to use to show in the diagnostic page?
    Can I get sample code for this log staments?
    Thanks in advance,
    Padma

    Hello. This forum is for reporting problems with the published Oracle documentation. You have a better change of getting a reply if you post your question on the Database - General forum.
    Regards,
    Diana

  • How to add warning message while using 'print' function in Adobe LiveCycle Designer

    I am trying to make pdf document for my company which requires adding a warning message while anyone use 'print' function from the page...
    Does anyone know how to add warning message on LiveCycle Designer
    Also my supervisor mentioned something using 'nag' if that rings any bell

    No you shoudl never go into the XML source unless uinstricted to do so.
    You can open the script editor (under the window menu). It will appear above the drawing area but below the toolbars. You can resize it if there is not enough room. When you click on an object in the form you can choose an event to script against in the Show dropdown. In your case you will want to choose the prePrint event. A line will show up that indicates the object that is associated with the script as well as the event and other information. Add your script below this line. Once that is done you are finished and your form is ready for testing.
    Paul

  • CLM How to add search-help for extension field(New Company Field) in MA.

    Hi all,
         Based on demand,I need to extend a new field(Company) in Master Agreement.
    But I do not know how to add search-help for this field,just like User Accont page.
    Anyone can help me ?thank you very muck.
    Regards,
    JackyCheng

    Hello Jacky,
    To combine all the answers above and have a topic-based reply please go through the below steps:
    #1. Inactivate the current extension field Company (I see it is actually a String value and this is not what you want to have)
    #2. Go to Setup -> System Setup -> Extension Reference Types
    Check if you already have a Company reference type
    If not, create a new Extension Reference Type for Class Company. Fill in all required information.
    #3. Create a new Extension Attribute
    Select Data Type: Object Reference
    Now you can add the Company type as reference
    Regards,
    Bogdan Toma

  • How to add F1 help for a field on ALV grid

    Hi All,
    When we execute a program, the output is displayed using ALV grid.
    on the ALV grid, if we press F1 on a field, it should popup the help document.
    How to add F1 help for a field on ALV grid.
    Thank you all in advance.

    fill field LVC_S_FCAT-ROLLNAME of your fieldcatalog in method SET_TABLE_FOR_FIRST_DISPLAY
    A.

  • How to add search help for standard field LIKP-TRAID

    Hi friends,
    How to add search help for standard field LIKP-TRAID ,
    refer screen
    Program Name       SAPMV50A  
    Screen Number      2108      
    TrnsIDCode ( LIKP-TRAID ) ..
    I need to add a search help, so that i can retrieve data from Ztable.
    Thanks.
    Abhi

    Hi Abhi,
    Try using any one option:
    Create a Search Help in SE11.
    Now Goto SE11 -> Enter Ztable -> Select that field -> Click Search Help and try to assign the created Search help to that field in your Ztable explicitly
    OR
    Create a Zdata element in SE11.
    In Data Element, under Further Characteristics tab, enter Name  Parameters of Search Help.
    Assign this data element to that field in ur Ztable.
    OR
    Create a Zdomain and maintain a Value Table or Fixed Values for it.
    Assign this domain to that field in ur Ztable.

  • How to add two zeros end of field

    how to add two zeros end of field?

    Hi srinu,
    If it's a number field, then just multiply by 100.
    If it's a string, then just use CONCATENATE and add the '00' to your existing string.
    Hope this helps.
    SL

  • HOW to ADD F4 help to a  field on SCREEN (MODULE POOL)

    Hi,
         How to add f4 help to a field in screen ..plz help
    Regards,
    Saleha

    Hi Saleha,
                    In order to add F4 help to a field in modeule pool follow these steps:-
    1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).
    2. Now in your module pool program program go to the layout of your screen.
    3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.
    There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.
    The sample code is like this:-
    First of all declare the module below in the flow logic of your screen then create it in your main program.
    You declare the module in the PROCESS ON VALUE-REQUEST.
    PROCESS ON VALUE-REQUEST.
    FIELD TXT_DOCNO MODULE VALUE_BELNR.
    You also need to create an internal table where you wil store results of the select query fired below in the module.
    here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
    MODULE VALUE_BELNR INPUT.
    progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'TXT_CODCO'.
      APPEND field_value TO dynpro_values.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname     = 'BKPF'
          fieldname   = 'BUKRS'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'TXT_CODCO'.
    CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
      SELECT  BUKRS BELNR
        FROM  BKPF
        INTO  CORRESPONDING FIELDS OF TABLE it_doc1
        WHERE BUKRS = field_value-fieldvalue.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'BELNR'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'TXT_BELNR'
                value_org   = 'S'
           TABLES
                value_tab   = it_doc1.
    ENDMODULE.                 " VALUE_BELNR  INPUT
    Hope you find this information useful, let me know.
    Regards,
    Aditya.

  • How to add search help in Ztable fields and how to make filelad as check bo

    Hello Friends,
    I have one table named ZAUDIT with 5 fields.
    1 . I want to put search help for each field but it shows tht Inactive message.
    Sujjest me steps to create search help.
    2.. In my table I want to display content as check boxes in my last field.
    How to make it?
    Points awarded soon.
    Regards,
    NVM

    Hi,
    steps to create search help:
    Step1 : Go to Se11 and Select Search Help and Enter One Name and Click Create
    Step2 : Enter your Table name in 'Selection Method' Field.
    Step3 : Enter the field Name and tick the Flags Imp and Exp and Type 1 and 2 in Lpos,
    Spos fields.
    Step4 : Save and activate it.
    Goto the table, select the field which u want search help and press button search help, give the search help name which u created.
    To add check box for particular field,
    make use of data element <b>check_box</b>

  • How to add supercripts in a text field

    How to add superscripts symbols like copyright,trademark and registered symbols in a static text field in the Livecycle designer 8.2?

    You can copy-and-paste special characters directly into a text object from a text editor such as MS Word. Alternatively, you can insert the hex character reference into the XML source for the applicable text object instance. For example, to add a copyright symbol, go to the XML Source tab and insert the reference &#x00A9; into the XML node <value><text>Foobar&#x00A9;</text></value>.
    Steve

  • How to add new data element to field list

    Hi,
    I am implementing Succession Planning 3.0 SP1.
    To make new data element was successful.
    I want to use them as sort field, however I don't know how to add them to the list of fields with caption.
    (i.e. to setting Visualize>My Org Units>Sort Fields)
    If you know how to config data elements usw. Please advise.
    Best Regards,
    Hiroshi Takimoto

    Hi Hiroshi,
    There are 2 ways to do this, both involving some customization of the application.
    1) Extend your HR-OCI views (TMC_O_SUCC_T & TMC_O_SUCC_B for My Org Units and TMC_IN_REP_T_DT & TMC_IN_REP_B_DT) to include Short Name. You probalby want to seek help from an OM consultant if this is not your area of expertise.
    2) Create a linked data element that links together the existing data elements and a new data element which includes Short Name. Your new data element must have the name of the existing data elements or you should change the hierarchy configuration that uses these data elements. Beware that this can prove troublesome for the Position Hierarchy because of the "virtual root" that is created - sometimes the join does not work because of this.
    Best regards,
    Luke

  • Designer 2010 - how to add a custom or calculated field ?

    Hello
    I have a list like this:
    [name][course][date][result]
    John Smith, Windows beginners, 01-01-2014, 10
    John Smith, Windows advanced, 02-01-2014, 7
    Jane Doe, Windows beginners, 01-01-2014, 5
    Wanted:
    A list that shows all the people that attended 2 courses and a sum of their results.
    Following the example above:
    John Smith, 17, (2 courses)
    How can you add a custom field in designer? I have been tinkering but can't find it. If I place the cursor in a bottom row of the list, and in the ribbon I choose Options/Formula, I can enter an Xpath expression. But after clicking OK, nothing happens, nothing
    appears.
    Is there a tutorial (for beginners) somewhere on how to add a custom field to a page?
    Thank you!
    D

    I think the easiest way to accomplish this is through using the jQuery SPServices library to call the list items into an array and group by name. Then you can count the number they have done and then also do your calculations.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to add custom message in place of default message  for af:inputDate

    Hi ,
    I am using JDeveloper 11.1.1.6.0  ,
    how to display the custom message <af:inputDate in place of default message "please enter valide date or Time" . i am trying through converter datepicker icon is disable .please help me how to add client side converter.
    Thanks
    ARm

    Hi,
    see the ADF Faces skin selector: http://docs.oracle.com/cd/E23943_01/apirefs.1111/e15862/toc.htm#inputDate
    Its has a resources string that you can use to change the message: af_inputDate.TIP_TITLE_SELECT_DATE
    For more see:
    Customizing the Appearance Using Styles and Skins - 11g Release 1 (11.1.1.6.0)
    Frank

  • How to add F4 functionality to a field in the Custom Infotype

    Dear Friends,
    I have created a custom Infotype 9332 for tracking the career growth of the employee. now i want add F4 functionality to a field in this infotype. How to do it and where to implement the code. Please suggest your valuable options.
    regards.

    Hi,
      You have 2 options.
    1.Table Level
    create a search element and you can attch it in table.
    2.Screen Level.
    In the Flow logic, create a module like " FIELD P9332-fieldname MODULE f4_values" under PROCESS ON VALUE-REQUEST.you can do the coding in the module for populating.
    Reward points if helpful.
    Regards,
    Manoj.

Maybe you are looking for