Use of Validation tab in Dropdown list properties

Hi All,
I have created input form  with 2 dropdown fields and submit button. While clicking submit button i need a  message if dropdown lists are not selected. So that I have entered one condtion in validation tab in dropdown list properties. But this validation is not working while clicking submit button.
Can you please guide how to use validation in VC?
Thanks,
Venkatesh R

Hi
'Validation Tab' is use to validate the values for that UI control. In case of 'Dropdown list' it is used to show invalid values in perticular cases. Example -
1. You have dropdown list on 'Country' & it is based on fiscal year input.
then
If fiscal year is 2008 values should be X, Y & Z. If value apart from this its invalid. You can configure this with the formula in 'Validation Tab' & if user selects the value apart from theses, system will through the error message as you have set.
Please also look at the link below -
http://help.sap.com/saphelp_nw04s/helpdata/en/47/7a46502823199ae10000000a42189d/frameset.htm
I hope this is what you were looking for, if you want anything else please let me know.
Regards
Sandeep

Similar Messages

  • How can I use more than 2 dependent dropdown lists

    I would like to create a form using three level of dépendent dropdown lists.
    Some examples exist with States dropdown list depending on a Country dropdown list. I would like to have a third level City depending on the choice made in the second list. Thanks for your help and sorry for my English

    Hi,
    I used the script from http://acrobatusers.com/tutorials/js_list_combo_livecycle1 to create a two dependent drop-downs and then was able to extend this to three dependent drop-down lists. I have put an example up at https://workspaces.acrobat.com/?d=Ph1ZsLxdyeZk9dq9qovNeQ
    Hope this helps,
    Greig

  • Trees and Unmanaged Dropdown Lists

    Does anybody know if it's possible to create heirarchical property value lists? For example, we want to have a keyword system for documents and users with some top-level categories and then some more specific categories under them, and not just one long unorganized list. Is this possible to do using trees and/or unmanaged dropdown lists? I'm not sure how to make these. Do you have to insert a table into SQL server somewhere?

    Yes, you can do this.  I don't have the benefit of access to my database from where I am at the moment, so please pardon me if I get some of this wrong.
    * There's a sample table in your primary portal database called something like "samplepicklist" - that will show you the data structure
    * You create a tree property
    * Bind that property to the table...
    In my case I'm using it to provide a region/country hierarchy list for user info.
    1) Property is named "Country (by Region)"
    2) Set values to...
            - Property is visible in the UI (checked)
            - Searchable (checked)
            - Type is "Tree" (when you select this the screen will change)
    3) got a view together - view is called "vw_PTProfile_RegionCountries".  Set the Database Table Name setting to the name of your view or table.
    4) Provide your hierarchy info.  There are two bits - display/storage value name and ordering key.  In my case my values look like...
        PICK COLUMN                        SORT ORDER
        rgn_descr                              rgn_id
        country_descr                        country_id
    Blammo - done.  I now have a hierarchical region/country list.
    NOTES:
    * I'd suggest using a view so you can link to other data sources, etc. and not worry as much about shaping the data the way the portal needs it
    * The property works on most classes of objects EXCEPT documents.  This isn't an issue with the property as much as the document property editing approach ("documents are special objects")
    That help?
    I love these kinds of things and want to make best use of them myself, so if anyone has any ideas on how to kick the portal into overdrive using properties (or sees that I'm mis-using this approach or steered Dave in the wrong direction) please, please do respond to this thread.
    Thanks,
    Eric

  • How can I select properties from dropdown lists using only the keyboard?

    Hi,
    I am using SAP Netweaver Studio and when modifying UI elements in views, I want to select the value for a property from the corresponding dropdown list in the Properties view using only the keyboard.
    When a property row is selected, "Enter" toggles to Edit mode, Alt+ArrowDown expands the list, but ArrowUp or ArrowDown directly selects the previous/next item list and changes to Selected mode.  Which key is used to navigate between the list items without selecting them immediately?
    Thanks a lot. I deal with lots of views and this would save me quite a few massage hours
    Maria
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM
    Edited by: Maria Marinova on Feb 14, 2008 9:40 AM

    Thanks Andrew. When creating an external table does it requires an access to SQL*Loader?
    CREATE TABLE dept_external (
       deptno     NUMBER(6),
       dname      VARCHAR2(20),
       loc        VARCHAR2(25)
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY admin
    ACCESS PARAMETERS
    RECORDS DELIMITED BY newline
    BADFILE 'ulcase1.bad'
    DISCARDFILE 'ulcase1.dis'
    LOGFILE 'ulcase1.log'
    SKIP 20
    FIELDS TERMINATED BY ","  OPTIONALLY ENCLOSED BY '"'
    deptno     INTEGER EXTERNAL(6),
    dname      CHAR(20),
    loc        CHAR(25)
    LOCATION ('ulcase1.ctl')
    REJECT LIMIT UNLIMITED;

  • Ajax tabs not working when asp dropdown list in the tab

    I am using asp.net 3.5 framework. My page has modelpopup in that ajax tab controls used. one of the tab has asp:dropdownlist, this dropdown list is binding data from dataset. the tab which has dropdown lists is not working. it is working fine in IE9.0.
    Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

    changed to enableEventValidation="false", then it is working fine.

  • Dropdown list in tab strip

    Hi,
      I want a dropdown list for block reason ,in the two tabs that i have created.The dropdown list is not a part of the table contol.
    The dropdown list should have the contents of Delivery and Billing block as observed in the 'SALES' tab of VA03.
    The functionality of the list is to filter the blocks displayed in the table control according to the reason selected in the list.
    Thanks.

    Hi
    Welcome to SDN Community
    LIST BOX                    
    Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
      The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two
    fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).
    In screen painter to create a input/output field into list box we use
    'L" as a value for dropdown attribute for the i/o field.
    In screen painter to determine the type of method that will be used to fill the value
    list we use the attribute value list.
    If it is blank  the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.
    If a function code is attached to the list box the selection of a value triggers a PAI
    otherwise PAI will not trigger.
    LIST BOX in SELECTION SCREEN
      List Box is created in selection screen using PARAMETERS staement
    with AS LISTBOX addition other attributes like VISIBLE LENGTH (width of listbox)
    can be specified with the declaration.
    PARAMETERS name(n) AS LISTBOX VISIBLE LENGTH n.
    Here n is an integer and name is the name of parameter.
    To populate the value list we use the FM VRM_SET_VALUES  and the
    selection screen event AT SELECTION-SCREEN OUTPUT is used to write the code to fill it.
    VRM_SET_VALUES   
    The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So
    we should declare TYPE-POOLS VRM before using this FM.
    Some important types declared in the VRM type group are
    VRM_ID
       It refers to the name of the input/output field associated with list box
    VRM_VALUES
      It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C
    that will be used to create the list values.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
          ID                =  name of screen element ,it is of TYPE VRM_ID
          VALUES      =  internal table containing values,of TYPE VRM_VALUES
    LIST BOX with value list from input help
    In this example the screen element attribute value list is set to blank as such the value list will be filled with the 1st column of the input help,We use PROCESS ON VALUE-REQUEST event to pass the value list  to the listbox.In the MODULE call used to fill the value list we can use FM like F4IF_INT_TABLE_VALUE_REQUEST to create input help as explained in the input help.The value of first column will be shown in the field when selected.
    PROCESS ON VALUE-REQUEST
    FIELD list MODULE fill_list_100
    FIELD list MODULE fill_list_100 INPUT
    SELECT f1 f2 FROM table INTO int
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'input/output screen field'
                value_org       = 'S'
           TABLES
                value_tab       = itab "it contains 2 fields that will be shown in the list box
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
    ENDIF.
    ENDMODULE.
    VALUE LIST CREATED IN PBO
    In this method we set the value list attribute to 'A'.The value list will be filled in the PBO by using FM VRM_SET_VALUES .
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.
    LIST BOX with Selection Screen
    For this the FM VRM_SET_VALUES is used to fill the value table and is passed to the parameter created with TYPE LISTBOX in the selection screen event
    AT SELECTION-SCREEN.
    PROGRAM zlist
    TYPE-POOLS : VRM.
    DATA: param TYPE vrm_id,
           values     TYPE vrm_values,
           value LIKE LINE OF values.
    PARAMETERS: p_name(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
      param = 'P_NAME'.
      value-key = '1'.
      value-text = 'JOHN'.
      APPEND value TO values.
      value-key = '2'.
      value-text = 'PETER'.
      APPEND value TO values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING id     = param
                  values = values.
    Regards
    Pavan

  • TabNavigator: Tabs have a dropdown list

    I want to create a TabNavigator, in which some of the tabs
    contain a dropdown list. When those tabs are clicked, the
    dropdown list is displayed and you can select one of the
    items in the list. The display will change after the selection.
    Is there is simple way to do it within TabNavigator?

    I don't think you want a TabNavigator then. The tabs in a
    TabNavigator are used to, on click, switch through a view stack for
    instance.
    Seems like you could do what you wanted without a
    TabNavigator at all. Place some labels at the top (styled like tabs
    if you so desire), on click use an Effect to show a canvas sized as
    your desired subnav (wipe down from the label you clicked, move it
    via animation, bounce, etc).

  • Using an Array to Populate a DropDown List

    Using LCD 8
    Want to populate one dropdown list - with up to 24 items - based on a radio button selection.
    If RBG== 1, then display dropdown list with values pertaining to value "1".
    I have the dropdown list working.
    (rinse and repeat)
    However, I have coded each 'addItem' with a value.
    So, if I have 3 radio buttons - I code for 72 different 'addItems'.
    There is also a very good chance that some selections will only result in 3 values - where as other selections may yield 12 or 24.
    I want to use global variables as an array (I think) and then be able to loop through these variables and populate the dropdown list with each pass of the loop.
    This reduces the code from '72 lines' to 'very few lines').
    The variable values for each RBG value are set in a script object.
    How do I use/declare an array for my variables??

    Sorry about that. I had the link ready to paste but neglected to do so: http://acrobatusers.com/tutorials/getting-external-data-into-acrobat-x-javascript
    The idea is that you can read in data from an external or attached file, but it will need to be a different format such as XML, tab-delimited text, or CSV, which can all be exported from a spreadsheet.

  • How to use the validation work in Both TAB and Mouse keys in Forms6i

    Hi,
    I have a validation script once it's validated it should execute the query.But using When-Validate-Item i can't use execute_query.I am able to use the validation in Key-Next-Item trigger but if the user moves the cursor using mouse then it's not working.
    How to use the validation script working in Both Scenarios(Tab and Mouse keys).
    Can anyone please give inputs to rectify the above issue?.

    So you have multiple fields, but on at least one of them if it's valid you immediately want to execute the query?
    You could create a hidden field in a control block Query_Now default 'N'. In a WHEN-VALIDATE-ITEM on your item, if it's determined to be valid, then set Query_Now to 'Y'.
    In a WHEN-NEW-ITEM-INSTANCE at block level, check if Query_Now is 'Y'. If it is then execute the query (and set it back to 'N').

  • Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Here is one solution:
    // mouse up action for submit button;
    function GetField(cName) {
    // get field object for cName field with error checking;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
    return oField;
    } // end GetField function;
    var oPhone = GetField("phone");
    oPhone.required = oPhone.value == oPhone.defaultValue;
    var oEmail = GetField("email");
    oEmail.required = oEmail.value == oEmail.defaultValue;
    if(oPhone.required && oEmail.required) {
    app.alert("Missing required fields.", 1, 0);
    } else {
    app.alert("Submitting form", 3, 0);
    // additional code for submission;

  • Select distinct using LINQ and bound to a dropdown list with id and display name

    Hi,
    On one of my sharepoint page, I want to populate dropdown list with countries, namely
    <asp:DropDownList ID="ddlCountry" runat ="server"></asp:DropDownList>
    In the code, I use LINQ:
     var country = (from p in dc.ProvCountries
                                   select p.country_code ).Distinct();
                ddlCountry.DataSource = country;
                    ddlCountry.DataBind();
    I want the country_code to be  the ID, while the country_name will be the display name in the dropdown, how can that be done?
    Thanks in advance.

    Hi,
    The following code for your check.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    namespace WebApplicationLib
    public partial class _Default : Page
    protected void Page_Load(object sender, EventArgs e)
    List<ProvCountries> list = new List<ProvCountries>();
    list.Add(new ProvCountries { country_code = "201", country_name = "A"});
    list.Add(new ProvCountries { country_code = "201", country_name = "B" });
    list.Add(new ProvCountries { country_code = "202", country_name = "C" });
    list.Add(new ProvCountries { country_code = "202", country_name = "D" });
    var country = (from p in list select new { p.country_code, p.country_name }).DistinctBy(p => p.country_code).ToList();
    ddlCountry.DataSource = country;
    ddlCountry.DataValueField = "country_code";
    ddlCountry.DataTextField = "country_name";
    ddlCountry.DataBind();
    ddlCountry.Items.Insert(0, new ListItem("Please select", ""));
    class ProvCountries
    public string country_code { get; set; }
    public string country_name { get; set; }
    static class DataDistinct
    public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
    HashSet<TKey> seenKeys = new HashSet<TKey>();
    foreach (TSource element in source)
    if (seenKeys.Add(keySelector(element)))
    yield return element;
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Error/fault when using reader and digitial signatures combined with dropdown list

    I'm working on a time card form for my company and they want me to have the form calculate the dates for the two week pay period when the ending day of the pay period is selected, that part I have down through code.  The problem I am running into though is that when the user is using Adobe reader to digitally sign and send the file to their supervisor the file is changing the selection date field back to the first selection in the drop down list after the first digital signature is applied and the file saved.  This error does not occur when the user is utilizing Adobe Pro though.  Does anyone have any ideas?  I'm wondering if it is something to do with the dropdown list settings or some kind of locking feature not working properly with the reader version.  I am editing/creating the form through LiveCycle Designer ES4. 

    Hi,
    The drop down list box, by default will have a blank value. If you can declare that as obligatory then the report will force the user to enter the value in it.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Unable to add items to dropdown list using javascript

    Hi,
    I'm trying to add additional items to a dropdown list at runtime using javascript.
    I'm doing this by invoking the addItem method on the dropdown list field during its initialize event.
    However when I run the generated pdf in Acrobat Pro, I get the following error in the console -
    GeneralError: Operation failed.
    XFAObject.addItem:3:XFA:form1[0]:#subform[0]:field0[0]:initialize
    Method: 'addItem' cannot be called because doing so would violate this document's permissions settings.
    The pdf form has no signatures or any other stuff in it.
    What additional permissions do I need to add and how ?
    You can view the pdf here -
    https://dl.dropboxusercontent.com/u/8022836/xfa3_test.pdf
    Thanks,
    Joel

    Is there a reason to use the code you did? It looks like the problem is with the variable's permissions when going through the template.
    This code works just fine in that same event:
    this.addItem("new item");
    As does:
    var f = xfa.resolveNode("form1.#subform1[0].field0");
    f.additem("new item");

  • Only one value shown in dropdown list of ISR form using pure ABAP

    Hi all,
      We are trying to create a Adobe form using ISR library controls. We want to populate a dropdown list with all the values from  the table T001 dynamically. We have implemented the BAdi QISR1 & populated the ADDITIONAL_DATA. The BAdi is executing & populating the value correctly.
      In the we have created a control using the ISR Dropdown & mapped to the Context BUKRS from the interface created. When we execute the form, only the first value is getting filled.
      Can anyone help us in this ??? Its very urgent....
    Thanx,
    Sivagami.R

    Hi,
    I am just giving the solution what I have done in my project. Hope this will help:
         DATA: BEGIN OF it_ccode OCCURS 0,
                   bukrs TYPE t001-bukrs,
                   butxt TYPE t001-butxt,
                     END OF it_ccode.
    DATA: wa_ccode like line of it_ccode.
    Select Company Code (bukrs) and Text (butxt) from table T001.
    SELECT bukrs butxt
    from t001
    into table it_ccode.
    LOOP AT it_t001.
        ADD 1 TO lv_index.
        ls_additional_data-fieldindex = lv_index.
        ls_additional_data-fieldname  = 'FIELDNAME_KEY'.
        ls_additional_data-fieldvalue = it_t001-bukrs.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname  = 'FIELDNAME_LABEL'.
        CONCATENATE it_t001-bukrs '-' it_t001-butxt
        INTO ls_additional_data-fieldvalue.
        APPEND ls_additional_data TO additional_data.
      ENDLOOP.
    And the form my fields binding is:
    $record.FIELDNAME.DATA[*].FIELD
    Try this out. Hope this will help.
    Regards,
    Amit

  • Dropdown List in Adobe Interactive Form Using Webdynpro ABAP

    Hi Pals,
    In my scenarion I need to list the Rating Code in the Dropdown list box of the Interactive Form.
    Form Created by using SFP transaction
    Not XML Schema interface
    Passing the values to the Form by using the default function module that which created automatically while creating the Form
    Am binding the Field and also binding for the list Item. Even though the values are not listing.
    $record.sap-vhlist.<Field name>\.DATA\.FIELD.item[*]
    I have followed the above format , but no use ...
    Field Name : rating_code
    $record.sap-vhlist.RATING_CODE\.DATA\.FIELD.item[*]
    Field Name : value
    $record.sap-vhlist.VALUE\.DATA\.FIELD.item[*]
    but it is not working for me, will appreciate if some one really help me to fix this.!!!!
    Thanks & Regards
    Andy.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

Maybe you are looking for