How to show asterisk for required fields in a table row?

Hi Folks,
For showing the asterisk (*) for required fields in a form, I used to give required="true" for the component and surround the component with a af:panelLabelAndMessage for which I set showRequired="true". How to do this for a component in a table row. For a component in a table, there is no label per se. The required=true flag in the component shows proper error message saying that it is required but there is no (*) for that component.
Thanks
Vishal

Table does not have any required attribute.But column has showRequired property .You can used this.If column has input text then also you put required true on this component.And set your required messages there .
It will resolve your problem
Thanks
Prateek

Similar Messages

  • Check for required fields before locking subforms and submitting

    Hello,
    I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:
    //Lock portions of form
    Page1.access = "readOnly"
    Page2.access = "readOnly"
    Page3.access = "readOnly"
    //Save document, allow user to change name
    app.execMenuItem("SaveAs");
    //Submit via e-mail
    Submit_REAL.event__click.submit.target = "mailto:[email protected]" +
    "?subject=Subject text" +
    "&body=Message";
    Submit_REAL.execEvent("click");
    The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.

    There are a few problems that I can see from the start. First, your code is going to pick up EVERY node that exists on these pages. Some of those nodes will not have a rawValue, and some will not have an actual name. As an example, you can take your code and create a text field to dump all of the names of the nodes that you get when you pull in all of the nodes this way. Here's an example:
    The result:
    Now, the question is, do you have a consistent naming convention for your fields that might be empty? That could be text fields, radio button lists, etc. For instance, I always prefix the names of objects in order to more easily keep track of what they are in scripts. Since I'm doing that, I can check the name of the field for tf, nf, rbl, cb, or whatever I have included to make sure that I'm checking an actual field before I check for things like rawValue.
    var nodeName = oNodes.item(nNodeCount).name;
    if (nodeName.indexOf("tf")>-1 || nodeName.indexOf("rbl") > -1 || /*check other field types*/) {
      //insert your code to check for empty answers here
    As for your line 7 issue. The syntax problem is that you've put extra parentheses in your if statement. Take out the parentheses that are just before and after the or "||".
    *This is my fourth attempt to reply. Something was going on with Adobe/Jive earlier, I suppose.

  • HELP! How do I enforce a required field

    All
    I do hope someone can help me with this!!!
    I have a pdf where I require the person before submitting to check a check box to confirm they understand a key statement. the checkbox is called Confirm.
    I have seen some javascript here http://forums.adobe.com/thread/784322 which uses on blur - but the assumption is that the user has tabbed into the field concerned... what if they skip over it?
    So... I decided to put some Javascript into the submit button...
    the submit button currently has 3 Actions on mouse up
    first it runs the following javascript
    if (Confirmed.value.length == 0)
        {app.alert("The confirmation box must be checked. Please confirm.")
    then it performs  file>save as>pdf
    then it performs submit a form and emails the pdf
    My question is - Why if you have denoted a field as required does adobe allow you to save and email a form where these fields have not been completed??? surely this is a huge bug??
    ok... but the logic I put in with the first javascript does not get triggered, can anyone explain why not? .... more importantly... can anyone help me with some code which achieves this desired effect -
    when the form is submitted, I need to check if the checkbox has been checked and if not display the above alert AND exit out of the rest of the submit actions.
    thanks
    george

A: HELP! How do I enforce a required field

It is not at all a huge bug. Some thoughts:
1. Your script isn't working because it's not correct. If you want to check the state of a check box and do something based its state, the code could be something like:
// Get the value of the check box with the field name "Confirmed"
var v = getField("Confirmed").value;
// The field value with either be the string "Off" (if not selected) or the export value (if selected)
if (v !== "Off") {
    // Proceed with the submit here
    submitForm({cURL: "[email protected]", cSubmitAs: "PDF"});
} else {
    // Check box not selected. so alert the user
    app.alert("You must select the \'Confirmed\' check box before you can submit this form.", 3);
2. Even if a check box is set as required, it won't prevent the submit form action or JavaScript from submitting. This is because the field always has a value. This is different for a radio button group. If none in a radio button group that is makred as required is selected, then the submit won't be allowed to take place until one is. This is just how it works, so you have to use a script instead as shown above.
3. Can you explain why you want to save the form before it is submitted? It is automatically done when the entire PDF is submitted, so there normally wouldn't be a need to do this.
4. Use just a single JavaScript action. If you use multimple actions, the are independent from one another, so one can't prevent a subsequent one from being triggered.

It is not at all a huge bug. Some thoughts:
1. Your script isn't working because it's not correct. If you want to check the state of a check box and do something based its state, the code could be something like:
// Get the value of the check box with the field name "Confirmed"
var v = getField("Confirmed").value;
// The field value with either be the string "Off" (if not selected) or the export value (if selected)
if (v !== "Off") {
    // Proceed with the submit here
    submitForm({cURL: "[email protected]", cSubmitAs: "PDF"});
} else {
    // Check box not selected. so alert the user
    app.alert("You must select the \'Confirmed\' check box before you can submit this form.", 3);
2. Even if a check box is set as required, it won't prevent the submit form action or JavaScript from submitting. This is because the field always has a value. This is different for a radio button group. If none in a radio button group that is makred as required is selected, then the submit won't be allowed to take place until one is. This is just how it works, so you have to use a script instead as shown above.
3. Can you explain why you want to save the form before it is submitted? It is automatically done when the entire PDF is submitted, so there normally wouldn't be a need to do this.
4. Use just a single JavaScript action. If you use multimple actions, the are independent from one another, so one can't prevent a subsequent one from being triggered.

  • Insert asterisk(*) for amount field (Very Urgent)

    Hi all,
    I want to insert asterisk() for amount field REGUD-SWNET(15C) in SAP script. ie suppose amount is 1000.00 rest of the length should be filled by asterisk() infrount of amount. ie ********1000.00 it has display like this.
    Your help ll be rewarded.
    Regards
    Yathish

    hi,
         We can replace leading spaces in a value with a FILL CHARACTER.
    SYNTAX:    <b> &symbol(Ff)&</b>    here f is fill character.
    example:    &REGUD-SWNET&  value is 700.00
                     &REGUD-SWNET(F*)& value printed as ******700.00.
    regards,
    sudheer.

  • How to show employee names in descending order but 3rd row is fixed and always top on the table ?

    how to show employee names in descending order but 3rd row is fixed and always top on the table ?
    for example employee names is A,B,C, D, E
    and output is     C,E,D,B,A

    Since you are posting in the design forum, the short answer is - you don't.  Rows in a table have no inherent order that you can rely on and the "position" of rows is a visual characteristic that should be implemented by the application that displays
    this information or by the query that is used to generate the resultset.  
    So the next question is how one accomplishes this particular order within a select statement.  That is a tsql question which, for future reference, is best posted to the tsql forum.  In addition, many of the questions or issues that you will face
    have been discussed in the forums - often many, many times.  The first thing you should do when faced with an issue is to simply search the forums and leverage the the knowledge that has already been discussed.  In doing so you are quite likely to
    see suggestions or related issues that you should consider in your search for a solution.  
    Now, to answer the question - you need to formulate a order by clause that forces the rows to be sorted in the manner you desire.  Effectively you have 2 levels of sorting.  The first level divides your rows into 2 groups.  Group 1 consists
    of rows where name = E and Group 2 is everything else.  Following that you then need to sort the rows in each group by name in descending order.  Something like:  
    order by case name when E then 1 else 2 end, name desc

  • "Additional Text" set for messageTextInput fields in Classic Table

    i have set "Additional Text" for messageTextInput fields in Classic Table and am expecting that to display when the mouse is hovering on that field. however, that is not happening...
    what am i doing wrong ? and what can i do to achieve that (NOTE - i cannot do either short or Long Tip because that looks wierd when data is displayed in a table (multiple rows))
    thank you.
    UPDATE - could anyone tell me where/when/how does the "Additional Text" data get displayed when the page is rendered ? there is hardly any info on this in the devguide and forum. If "Addtional Text" is not the right way to provide additional information on a field what else can be used (note these fields are in a classic table so i cannot use short/long tip)......
    Edited by: user11972136 on Feb 4, 2013 10:33 AM

    Hi,
    I tried this case and its working for me.
    Could you tell us what version of Jdev and OAF you are using? There might be some issue with that version.
    Regards,
    Sandeep M.

  • Drop down for a field in a table

    hi friends,
       need a help from u, how to maintain the drop down for a field in a table..
    advance thanks..

    Hi,
    You can use the function module F4IF_INT_TABLE_VALUE_REQUEST
    TABLES: T005T.
    DATA: BEGIN OF t_t005 OCCURS 0,
            land1 TYPE t005-land1,
          END OF t_t005.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.
    PARAMETERS: p_land1  TYPE t005-land1.
    SELECTION-SCREEN COMMENT 13(35) v_text1.
    SELECTION-SCREEN END OF LINE.
    INITIALIZATION.
      v_text = 'Country'.
      v_text1 = ' '.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.
      REFRESH: t_t005.
      SELECT land1
             INTO TABLE t_t005
             FROM t005.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
    *            DDIC_STRUCTURE   = 'T005'
                PVALKEY          = ' '
                retfield         = 'LAND1'
                dynpprog         = sy-repid
                DYNPNR           = sy-dynnr
                dynprofield      = 'P_LAND1'
                callback_program = sy-repid
                value_org        = 'S'
           TABLES
                value_tab        = t_t005
           EXCEPTIONS
                parameter_error  = 1
                no_values_found  = 2
                OTHERS           = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks
    Naren

  • Drop down in the selection for the field from the table

    Hi.
    i want to put the drop down for the field from the table fo which i dont know the number of entries for the field zregion1 of the table zbwcntry.
    please tell me how to use the function module and what could be the line of codes.
    the drop down is for the select option on the slection screen of the classical report.
    please help .

    HI,
    Check below code..it may help you.
    REPORT Zbunu .
    TYPES :BEGIN OF STR ,
           MATNR TYPE MATNR ,
           END OF STR .
    DATA : ITAB TYPE TABLE OF STR WITH HEADER LINE,
           VAR TYPE MARA-MATNR .
    PARAMETERS : S_MATNR TYPE MATNR ,
                  P_MATNR TYPE MATNR.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MATNR .
    SELECT MATNR FROM MARA INTO
    CORRESPONDING FIELDS OF TABLE ITAB UP TO 1000 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        retfield               = 'MATNR'
      PVALKEY                = ' '
       DYNPPROG               = SY-CPROG
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'S_MATNR'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = 'X'
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      tables
        value_tab              = ITAB
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 2
       OTHERS                 = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards
    Ansumesh

  • How to Create an Hyperlink for a field in the table

    Hi
    I am having a requirement that, in a table their is a sales order number field, their will be a lot of sales order numbers, this sales order number to be made as an hyperlink, when i click on the the sales order number it should open another page.
    Now how should i create this hyperlink for that sales order number field. Can any one help me out in this issue.
    Thanks in advance.

    Hi Mani,
    I have a similar requirement but i need to transfer the values to the same page... what then. I have seen the developers giude and the example shows how to tansfer values to another page but no clues what so ever if i have to transfer them to the same page different region. Do u have any suggestions ....
    Regards,
    Amit.

  • Form Features: Checking for required fields on scrolling or moving to the next page.

    Hi! I am developing a form which will be distributed to people using Adobe Reader without the JavaScript functionality. I have a form with about 20+ pages and each page has 4 required fields. I would like to make it easy for the users to show the errors then and there when they miss a require field, instead of having a generic "required field not filled" message at the end of the document. How do I do this without JavaScript? It would be better if the document jumps to the page where there is an empty "required" field.

    This isn't possible without using JavaScript.

  • How to show BLANKS in CURRENCY fields, if they r 0000000000??

    Hi Experts,
    Pls. clarify one of my simple doubt that,
    Am getting 0000000000 in my_alv_currency_fields.......for some reason, I wanna keep/show them as blanks.......So, How to get it done?
    I guess, I need to write from currency_filed to CHAR_currenny field and then using this CHAR_currency in my_alv report!! But, Is there any other way, coz, I dont prefer this idea according to this report.
    thanq

    Hi,
    did u try like this for that field........
    it_fieldcatalog-no_zeros = 'X'.
    Cheers,
    jose.

  • How to make text box required field if checkbox is checked??

    I have a web form that I need to look something like this:
    (Checkbox) Check here if it is for an individual  ID: (textbox) Required field if checkbox is checked and a numeric value
    (Checkbox) Check here if it is for an organization ID: (textbox) Required field if checkbox is checked and a numeric value
    (Checkbox) Check here if is neither (textbox is hidden and not required if "neither" is checked)
    Currently the form looks like this: http://ncsu.edu/advancement-services/resources/researchrequest.html.  The above information is going to go where it says prospect name and id number on the form.  I would like to have the three checkboxes in a menu instead if that is possible.
    How do I make the form do this?  I created the form in the above link but I don't can't figure this one out.
    Thanks so much in advance!!
    Erika Roe

    Sharmila,
    My form is based on Master/Detail Table....I have chosen defalt layout ...Not a Custom form.
    In this case,could you suggest me what I should do ?..The customer is very much insisting on that..
    Thanks in Anticipation
    Babu

  • How to give References for the field in the Abap Query

    Dear Freinds,
               I am not able to get Text for Cost Centre which iam using in My custom infotype , when iam calling the Custom infotype in abap querry i dont find the T symbol for my field Cost Centre , since i have created in my custom infotype for Cost Centre similar to the infotype 0001. When i look at the
    infotype 0001 fields in my abap query i can see that there is T field for P0001-KOSTL and again if i double click on it i can see that in the REFERENCES Tab i can see " Function Module:HR_TXID_KOSTL" . Could any one let me how i can assign to my custom field "Function Module:HR_TXID_KOSTL " in the References Tab.
    Regards
    divya

    solved the problem

  • How  to implement PCCD001 exit for new field in AENR table

    Dear experts,
    I am implementing PCCD0001 exit for a new field in AENR table secnario below.
    Tcode CC31/CC32/CC33 required additional field which stores value in AENR table. in AENR in implemented include(CI_AENR) and added new field. After i implemnted PCCD0001 screen exit for CC31/CC32/CC33.
    in that two function exit are there, one for passing data to  screen EXIT_SAPMC29C_001
    another for getting data from screen EXIT_SAPMC29C_002.
    which table or structure i use to place field in screen exit to pass data to EXIT_SAPMC29C_002, in this function i don't have import parameter.
    Adv. thanks,
    Venkey

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • * is missing for required field in error message

    Hi all,
    I am using JDeveloper 11.1.1.2 with ADF BC. I have a simple form in a jspx with some fields for user to input.
    The page contains 3 mandatory fields (simply set required=true): Surname, Name and Title. Where Surename and Name are inputText, and Title is a Select One Choice with List Of Value defined in VO.
    If user submit data without anything in the required fields, an error message will popup. But the content of the error message is not quite correct!
    All the required inputText has a prefix: *, but Select One Choice do not have a leading *.
    Error
    Messages for this page are listed below.
      * Surname  You must enter a value!
      * Name     You must enter a value!
      Title      You must enter a value! is there anyway to add a * to the error message for Select One Choice? or remove all the *? It looks very confusing.
    Thanks in advanced,
    Samson Fu

    not sure,
    but try to set the ShowRequired for this LOV in property inspector to true

  • Maybe you are looking for