How to create Dynamic Drop down list ?

Hi experts
I want to create a Dynamic Drop down list that should be an Editable,after editing that i need to save.
thanks,
vikram.c.

Hello,
Please go through this link:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/linking%2bdrop-down%2blists
If useful reward.
Vasanth

Similar Messages

  • How to create conditional drop-down lists

    I would like to create a form that utilizes conditional drop-down selection boxes like at http://blogs.office.com/b/microsoft-excel/archive/2009/11/24/create-conditional-drop-down- lists.aspx
    How can I create a form that contains fields like this?
    Is there a sample I can download?

    I have downloaded the AcroForm version (ListProgramming_Part1_AcroForm.pdf).
    I'm not able to consistently recreate.  I was first playing with the form by selecting values in the drop down.  At one point I went to Document Javascripts and select "Example1".  I chose to edit.  Make no changes and select "OK" I get "SyntaxError: missing } in compound statement 39 at line 40"
    The sec ion of code is:
    function SetPartEntries()
       // Only run this code on when the selection is commited.  
       if(event.willCommit)
          // There are 3 rows in the order form so in order to use other fields in 
          // the same row we first have to acquire the name of the row
          // we are operating on.  This is part of the List field's name, so we 
          // just have to split it off 
          var cRowName = event.target.name.split(".").shift();
          // Now get the new parts list from the Master List
          // Since the selection is being committed, event.value contains the selection text
          var lst = oAssemblyParts[event.value];
          // If an entry is selected that we don't have a parts list for, then
          // the parts list is just cleared. 
          if( (lst != null) && (lst.length > 0) )
             this.getField(cRowName + ".PartSelect").setItems(lst);
          else
             this.getField(cRowName + ".PartSelect").clearItems();
          // We have a new parts lists and the first entry is 
          // is a non-selection.  so clear the price field.
          this.getField(cRowName + ".Price").value = 0;
    I am not able to recreate if I select "Edit all Javascripts" only when I use document javascripts.

  • Creating a drop down list and linking it to Excel files

    How to create a drop down list and when i select any row in the dropdown list, it must open designated MS- Excel file? Can anyone help me in this with an example code?
    Thanks
    Anu

    Try this in 7.0 format.
    Attachments:
    Listbox for excel files.vi ‏15 KB

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

  • Dynamic Drop-down list - selected value can't be cleared ...

    1. check out the following code of a dynamic drop down list using cursor :-
    DECLARE
         -- DROP-DOWN LIST OF ALL DEPARTMENTS
         TEMPNUMBER NUMBER(2) := 2 ;
    -- Because we've to initialize the list
    -- at least with 1 item.
    CURSOR C_DEPT IS
         SELECT DEPT_ID FROM DEPARTMENT;
    BEGIN
         ABORT_QUERY ;
         CLEAR_LIST('DEPTLIST');
         FOR TEMP IN C_DEPT LOOP
         ADD_LIST_ELEMENT( 'DEPTLIST', TEMPNUMBER, TEMP.DEPT_ID, TEMP.DEPT_ID );
         :SRBLOCK.LST := TEMP.DEPTNO;
         -- prev. line set the newly selected value
         TEMPNUMBER := TEMPNUMBER + 1 ;
         END LOOP;     
    END;
    2. problem is as we've to atleast initialize with one list item... that item can't be cleared with CLEAR_LIST.
    3. how can i actually clear that and still use cursor. because i've searched forum for this thing and found all those code not working ... for my project ...
    4. quick help needed ...

    Hi Omar,
    I have solution for you
    To populating or refreshing the lists you can use
    two procedures:
    One of them - generic, which can be used for all types of list
    Another is specific which contain a SQL statement to retrieve the data for
    particular list.
    1. Specific procedure:
    PROCEDURE GET_DEPARTMENT_LIST
    IS
    sql_stat VARCHAR2(32767);
    ret_code NUMBER;
    BEGIN
    -- SQL Statement for Drop-down List
    -- (must have two columns for label and value - both VARCHAR2)
    sql_stat := ' SELECT DEPARTMENT_NAME,TO_CHAR(DEPT_ID)'
    ||' FROM SCHEMA.DEPARTMENT';
    POPULATE_MY_LIST('BLOCK.DEPARTMENT_LIST',sql_stat,ret_code);
    END;
    2. Generic procedure:
    PROCEDURE POPULATE_MY_LIST
    (item_name VARCHAR2,
    sql_stat VARCHAR2,
    out_code OUT NUMBER)
    IS
    rg_id RECORDGROUP;
    rg_name VARCHAR2(100);
    ret_code NUMBER;
    item_id ITEM;
    BEGIN
         item_id := FIND_ITEM(item_name);
         IF ID_NULL(item_id) THEN
              out_code := -1;
              RETURN;
         END IF;
         --Creating Record Group with Unique Name
         rg_name := 'RG_'||SUBSTR(item_name,INSTR(item_name,'.',1)+1,LENGTH(item_name));
         --Checking Record Group Name for existance
         rg_id := FIND_GROUP(rg_name);
         --If Group does exist - delete it
         IF NOT ID_NULL(rg_id) THEN
              DELETE_GROUP(rg_id);
         END IF;
         --Creating Record Group
         rg_id := CREATE_GROUP_FROM_QUERY(rg_name,sql_stat);
    ret_code := POPULATE_GROUP(rg_id);
    IF (ret_code <> 0) THEN
         out_code := ret_code;
         RETURN;
    END IF;
    POPULATE_LIST(item_name,rg_id);
    IF NOT FORM_SUCCESS THEN
         out_code := -2;
         RETURN;
    ELSE
    out_code := 0;     
    END IF;
    DELETE_GROUP(rg_id);
    END;
    Hope it help.
    Dmitry

  • Dynamic drop down list in Adobe forms

    I have created a drop down list using enumerated drop down list from webdynpro native tab and binded in the object palette by giving $record.sap-vhlist.DESCR\.DATA\.FIELD.item[]* in the list items dynamically.DESCR is the field in the internal table into which i fetched data from the database table .I have written this code in a BADI.I dont know whether my form's display type is activex or native? I am not getting any values in the drop down list.can anybody please tell me what might be missing and how should i know whether my form is ActiveX or Native?
    My form is called from portal so i have used BADI to connect portal to form

    Hi sarang,
    I have done a dynamic drop down list in which DESCR field comes from database table and pops into the drop down dynamically. I was working for a PCR scenario so the adobe form was called from portal.I will tell u all the required steps.It might work for u as it is working for me:
    1.In the form:
    I used two elements from library first is a "ENUMERATED DROP DOWN LIST NO SELECT" from web-dynpro native tab and second is "ISR_TEXT DISPLAY INVISIBLE ON EDIT MODE" from ISR controls tab.Place them one on other inthe form.
    For drop down list the setting are:
         In object, field tab click on list items there in ITEMS put :$record.sap-vhlist.DESCR\.DATA\.FIELD.item[*].in ITEMS TEXT write text in ITEMS KEY write key.
         In binding,in default binding put $record.DESCR.DATA[*].FIELD.
    For text element the settings are:
         In binding,default binding put Normal.
         when we select ISR_TEXT DISPLAY INVISIBLE ON EDIT MODE it automatically comes with calculated read only int he value tab.so open script editor and place the below code:
    $record.DESCR.DATA.FIELD (in calculate).
    2.Now the code in BADI is as follows:
    In BADI we have to write the code for drop down list in the METHOD "SCENARIO_SET_ADDITIONAL_VALUES"
    As i didnt change the standard BADI i added an enhancement spot in which i wrote a function module which fills ADDITIONAL_DATA. and the below code fills the ADDITIONAL_DATA .
    DATA: t_t572b TYPE STANDARD TABLE OF t572b WITH HEADER LINE,
            t_t554t TYPE STANDARD TABLE OF t554t WITH HEADER LINE.
      SELECT * FROM t572b INTO TABLE t_t572b WHERE sprsl EQ 'E'.
      CLEAR ls_additional_data-fieldindex.
      LOOP AT t_t572b.
        ADD 1 TO ls_additional_data-fieldindex.
        ls_additional_data-fieldname ='DESCR_KEY'.
        ls_additional_data-fieldvalue = t_t572b-descd.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname ='DESCR_LABEL'.
        ls_additional_data-fieldvalue = t_t572b-descr.
        APPEND ls_additional_data TO additional_data.
        CLEAR t_t572b.
      ENDLOOP.
    For DESCR field the we have to declare  DESCR_KEY and DESCR_LABEL in the place holders for key values and palce holders for default values in characteristics tab(where all the fields for the form are defined) of ur respective scenario.(where ur pcr scenario is defined)
    Hope ur problem got resolved.
    Please let me know if any doubts.
    If ur form is not called from portal and u want a dynamic drop down list the difference is put a data drop down list and in object, field tab click on list items there in ITEMS select the field into which u populated the data from the database table (this code shud be written in code Initialization in the respective interface) and in ITEMS TEXT put $ in ITEMS KEY put $.and in binding as we normally do bind it to the respective field in which the data is populated from database table.
    It should work.

  • Cteate 2 Dynamic drop down list

    Hi all
    i want to create 2 dynamic drop down list using struts and hibernate
    i want the first one to display countries name then if i select a country name the second drop down list will automatic display the country cities .
    i'm using database here and my tables like that :-
    country table
    country_id number(3) pk
    country_name varchar(50)
    city table
    city_id number(5) pk
    country_id(3) fk references country(country_id)
    city_name varchar(50)
    thank you in advance

    Hi Omar,
    I have solution for you
    To populating or refreshing the lists you can use
    two procedures:
    One of them - generic, which can be used for all types of list
    Another is specific which contain a SQL statement to retrieve the data for
    particular list.
    1. Specific procedure:
    PROCEDURE GET_DEPARTMENT_LIST
    IS
    sql_stat VARCHAR2(32767);
    ret_code NUMBER;
    BEGIN
    -- SQL Statement for Drop-down List
    -- (must have two columns for label and value - both VARCHAR2)
    sql_stat := ' SELECT DEPARTMENT_NAME,TO_CHAR(DEPT_ID)'
    ||' FROM SCHEMA.DEPARTMENT';
    POPULATE_MY_LIST('BLOCK.DEPARTMENT_LIST',sql_stat,ret_code);
    END;
    2. Generic procedure:
    PROCEDURE POPULATE_MY_LIST
    (item_name VARCHAR2,
    sql_stat VARCHAR2,
    out_code OUT NUMBER)
    IS
    rg_id RECORDGROUP;
    rg_name VARCHAR2(100);
    ret_code NUMBER;
    item_id ITEM;
    BEGIN
         item_id := FIND_ITEM(item_name);
         IF ID_NULL(item_id) THEN
              out_code := -1;
              RETURN;
         END IF;
         --Creating Record Group with Unique Name
         rg_name := 'RG_'||SUBSTR(item_name,INSTR(item_name,'.',1)+1,LENGTH(item_name));
         --Checking Record Group Name for existance
         rg_id := FIND_GROUP(rg_name);
         --If Group does exist - delete it
         IF NOT ID_NULL(rg_id) THEN
              DELETE_GROUP(rg_id);
         END IF;
         --Creating Record Group
         rg_id := CREATE_GROUP_FROM_QUERY(rg_name,sql_stat);
    ret_code := POPULATE_GROUP(rg_id);
    IF (ret_code <> 0) THEN
         out_code := ret_code;
         RETURN;
    END IF;
    POPULATE_LIST(item_name,rg_id);
    IF NOT FORM_SUCCESS THEN
         out_code := -2;
         RETURN;
    ELSE
    out_code := 0;     
    END IF;
    DELETE_GROUP(rg_id);
    END;
    Hope it help.
    Dmitry

  • Can you run SQL in the portal and create a drop down list??

    Can anyone tell me if its possible to create a drop down list using sql in the portal?
    Can I create a drop down list of items via sql and then have those same values be used for a discoverer portlet? I am trying to replicate the same concept using parameter values and discoverer worksheets, but through sql. I dont want to have to cut and past lists on the parameter fields. I want to be able to run sql when I post a discoverer worksheet with a parameter and have the values from the sql pass into the worksheet.
    Is that possible???

    I created a lov but i cannot post it on my portlet. When i go to post a portlet, under the db_link, portlet reposistory it does not show.? Also, how do make the connection to the discoverer worsheets to this lov?
    thanks,

  • How to change the drop down list "Category" in the Risk page (PWA 2013)

    Hello,
    How to change the drop down list "Category" in the Risk page of a Project Site. I need to change the list of elements.
    Thanks

    Hi Robert,
    You actually cannot edit the current template.
    The process is as follow: 
    create a brand new project site from the existing template,
    edit the site configuration (list, column, webparts, image, logo, theme...),
    save it as a template,
    associate it to an EPT.
    See reference below:
    http://blogs.msdn.com/b/brismith/archive/2010/03/15/customizing-the-project-site-in-project-server-2010.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Create a drop down list in a cell within a table ?

    Is there a way to create a drop down list in a cell within a table ? Like the way it can be done in ms word or excell ? I dont mean an interactive pdf/form. I want to create a table in indesign which has drop down lists other people can use to populate a table quickly.

    Not possible. InDesign isn't designed to be form-filling software. At best, it can create fields which can be passed on to a PDF file, which usually further has to be edited in Acrobat Pro.

  • Dynamic Drop Down List Trouble in Dreamweaver

    I am having trouble with Dreamweaver 8 and php with MySQL.
    Basically, I have a main page, index.php that includes a
    header file that I use to display my header using readfile like
    this:
    <?php readfile("header.php"); ?>
    Inside of header.php, there is code to create a drop down
    list. I am trying to populate this list from my database, but I
    cannot get this to work.
    This is the code snippet:
    <form name="storeShowSelect" method="GET"
    class="sf_select" target='newwin'>
    <input name="selectStore" type="hidden" value="17999">
    <select name="storeSelect"
    onChange="jumpToLink(this);">
    <option disabled selected >--- Select a store
    ---</option>
    <?php
    do {
    ?>
    <option value="<?php echo
    $row_marketplaceStoreNames['storeName']; ?>">
    <?php echo
    $row_marketplaceStoreNames['storeDisplayName']; ?>
    </option>
    <?php
    } while ($row_marketplaceStoreNames =
    mysql_fetch_assoc($marketplaceStoreNames));
    ?>
    </select>
    </form>
    It looks like this is only inserting one blank row in the
    drop down list. When testing my recordset in Dreamweaver, I do get
    the rows of data that I am expecting.
    Can anyone possibly help me figure out what I am doing wrong
    here?
    Thanks in advance,
    Mona

    I am having trouble with Dreamweaver 8 and php with MySQL.
    Basically, I have a main page, index.php that includes a
    header file that I use to display my header using readfile like
    this:
    <?php readfile("header.php"); ?>
    Inside of header.php, there is code to create a drop down
    list. I am trying to populate this list from my database, but I
    cannot get this to work.
    This is the code snippet:
    <form name="storeShowSelect" method="GET"
    class="sf_select" target='newwin'>
    <input name="selectStore" type="hidden" value="17999">
    <select name="storeSelect"
    onChange="jumpToLink(this);">
    <option disabled selected >--- Select a store
    ---</option>
    <?php
    do {
    ?>
    <option value="<?php echo
    $row_marketplaceStoreNames['storeName']; ?>">
    <?php echo
    $row_marketplaceStoreNames['storeDisplayName']; ?>
    </option>
    <?php
    } while ($row_marketplaceStoreNames =
    mysql_fetch_assoc($marketplaceStoreNames));
    ?>
    </select>
    </form>
    It looks like this is only inserting one blank row in the
    drop down list. When testing my recordset in Dreamweaver, I do get
    the rows of data that I am expecting.
    Can anyone possibly help me figure out what I am doing wrong
    here?
    Thanks in advance,
    Mona

  • How to display a drop down list

    how to display a drop down list when the user clicked (right click) on a JPanel or a JFrame

    how to display a drop down list when the user clicked
    (right click) on a JPanel or a JFrameI've not done it my self, I just looked it up:
    JComponent.setComponentPopupMenu(JPopupMenu popup).
    The menu doesn't showed automatically when I added it to a JComponent and tried to right click.
    I guess you could add a listener and call setVisible and setLocation for the menu in the listener, but there has to be an easier way...

  • Create a drop-down list that populates from AD

    Hello,
    Is there a way to create a drop-down list in Excel that will populate from active directory?  I'm finding all sorts of stuff for SharePoint, but nothing for Excel. 
    Thanks!
    -Dusty

     If you are using the following version of Excel:
    1.Microsoft Office 2010 Professional Plus with Software Assurance
    2.Microsoft Office 2013 Professional Plus, Office 365 ProPlus or Excel 2013 Standalone
    You can download and install the Power Query add-in, then you can import the data from Active Directory to Excel.
    Wind Zhang
    TechNet Community Support

  • How do I create a drop down list to e-mail a form for signature.

    The desired workflow is for
    1)      Firefighter 1 to complete the top portion of the Agreement
    section, sign in the Firefighter 1 signature field (which locks the top
    portion of the Agreement Section), then select Firefighter 2 from the
    e-mail drop down list and e-mail the PDF form to Firefighter 2;
    2)      Firefighter 2 opens the e-mail and the PDF attachment,
    completes the second portion of the Agreement Section, sign in the
    Firefighter 2 signature field (which locks the bottom portion of the
    Agreement Section), select Lieutenant 1 from the e-mail drop down list
    and e-mail the PDF form to Lieutenant 1;
    3)      Lieutenant 1 opens the e-mail and the PDF attachment, checks
    the approved box, signs the Lieutenant 1 signature field, select
    Lieutenant 2 from the e-mail drop down list and e-mail the PDF form to
    Lieutenant 2;
    4)      Step three continues through Lieutenant 2, Battalion Chief 1
    and Battalion Chief 2
    5)      Battalion Chief 2 sends the fully completed form back to
    Firefighter 1 who copies the completed form to Firefighter 2
    Note: if any of the officers disapprove the agreement the disapproved
    form is immediately sent back to Firefighter 1

    katiesandell wrote:
    how can i create a drop down menu so that when i click on the arrow in the cell i can select from the menu that appears
    Hi Katie,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Numbers vocabulary for this feature is a "Pop-up Menu". It's available as a Cell Format, and is set and edited in the Cell Format Inspector.
    See "Using a Checkbox, Slider, Stepper, or Pop-Up Menu in Table Cells" starting on page 96 of the Numbers '09 User Guide.
    This guide, and the equally useful iWork Formulas and Functions User Guide are available for download through the Help menu in Numbers.
    Regards,
    Barry

  • How to add a dynamic drop down list in RDLC reports in WPF

    I have to Load an RDLC report in WPF application and need to include a drop down list in report.Based on the selection of drop down list different reports to be generated.I am using C# and WPF.
    Eg: I have to list the details of employees in in RDLC report.There is a country drop down list, Based on the selection of country drop down list we need to display details of employees in the selected country.

    Looking good.
    With rdlc I think you will have to use the windows report viewer control.
    If this was SAP crystal reports there's a wpf report viewer.
    I never actually tried that with rdlc and I suppose there is a small chance they turn out to be compatible.  
    If you have questions on rdlc specifically then you're probably better finding a forum specialises in that. Not sure where that would be but maybe in the sql server forums.  It's a business intelligence thing and people who do the likes of ssis are
    what you want really.
    I do reporting myself but I think you'll find few others who do so here.
    Good luck.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

Maybe you are looking for

  • Mid 2011 Macbook Air won't boot after installing Little Snitch 3. Grey Screen.

    Hi all I think the answer is probably that my SSD is toast but here's the symptoms in case anyone else has experienced this. I installed Adobe Lightroom and also got round to upgrading my Little Snitch license and finally putting it on my 11" Air (mi

  • With Mac OS 10.6.8 and Firefox 7.0.1, firefox is not remembering passwords nor is firefox asking to remember passswords?

    Firefox does remember passwords for some sites but not others. Some of the others have been previously remembered but with different user names and passwords. The problem started with changes in the user name and password, or with changes in the logi

  • Single GL account Bank Reconcilation

    Hi FI Gurus, My client has single Bank account rather than 3 GL account consisting of Main, Issue Clg, deposit Clg. Now they want to do bank reconcilation. Can it be possible to do bank reconcilation for Single GL (main) account. If yes then what I n

  • Eps image slipping when saving

    I'm using Illustrator cs4 on 10.5.8. I created a document 96"x36" for a banner. The banner is basically type - outlined. When I save as an .eps file (also happens when exporting as jpeg) the image slips down about 10". I can save as PDF and it's fine

  • Choosing a 17" LCD

    Hi, I am about to purchase a mac mini, and am considering my options for displays. I'm thinking either the Viewsonic VG712s http://www.viewsonic.com.au/products/productspecs.php?id=191 or the Phillips 170B6CS http://www.consumer.philips.com/consumer/