Drop Downs in Table Control in Web dynproABAP

Hi All,
I am facing Problems here ;-
I have developed a table control in WDA4 application i have 3  dropdowns which are dependent on each other  i.e. when i select the entry in the first one then corresponding to that entry the data should be shown in next drop down and same goes for the third one .I am using dropdown by index here .
Thnks ,
Sahil

hi!
you can bind the texts property  of your Dropdownbyindex
to the required attribute.this will populate your data.
thanks
vishal

Similar Messages

  • How to put drop down in table control ?

    Hi All,
    I m writing one module pool program to edit table.
    I want dropdown to one field so that user can select the appropriate value. And also I want to save that record.
    So how to get the dropdown list and after editing that record how to save that in the database?
    Thanx in advance.
    -Umesh

    Hi Umesh,
    Please check this demo program RSDEMO_TABLE_CONTROL on how to add drop down list in table control. Also check this program DEMO_DYNPRO_TABCONT_LOOP_AT as well.
    To save to database you can code something like this in PAI.
    MODULE USER_COMMAND_0100 INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      CASE SAVE_OK.
        WHEN 'SAVE'.
          MODIFY <database table> FROM TABLE <table control>.
          IF SY-SUBRC = 0.
          ELSE.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this will help.
    Regards,
    Ferry Lianto

  • Drop Down in table control

    Hi All,
    I am facing Problems here ;-
    I have developed a table control in WDA4 application i have 3 dropdowns which are dependent on each other i.e. when i select the entry in the first one then corresponding to that entry the data should be shown in next drop down and same goes for the third one .I am using dropdown by index here .
    Thnks ,
    Sahil

    Hello Sahiil,
          You need to bind the table to a context node and the three drop downs separately to three context nodes. when you click one one of the drop downs, populate the the other nodes.
    I hope this works for you.
    Please feel free to ask if you have any further doubts.
    Regards,
    Ritwik.

  • How to get different values in drop down in  table rows

    Hi
    I have an application, which has a drop down in the table. Each row is to have different values in its drop down based on the "characteristic" parameter. For eg. first row has characteristic as color, and the corresponding drop down will contain the color names. Second row has charateristic as weight, and the drop down will carry corresponding weight values.
    I am getting the data from the backend as a flat table i.e. charaterisitc - value pair.
    I think i will have to use the Drop Down by Index control, but i dont know how exactly to go about it.
    Can any one please help in this regard.
    Thanks & regards,
    Anupreet

    Hi Maksim
    I am sorry, but i am not able to get you.
    This is the piece of code that i wrote for populating the drop down:
    IPrivateMaintainDocAttribView.IDropElement dropEle = null;
    for(int i = 0;i<size;i++)
                 dropEle = wdContext.nodeDrop().createDropElement();
                 dropEle.setDropval(wdContext.nodeCtxNode_DocAttribs().getCtxNode_DocAttribsElementAt(i).getCmpCtx_Value());
                 wdContext.nodeDrop().addElement(dropEle);
    Here, Dropis the sub node to which i am putting the data and thisis linked to the table.
    CtxNode_DocAttribs is the model node from where i am picking the data and setting in the subnode.
    Thanks & regards,
    Anupreet

  • When I type in "www" in the navagation space I get a drop down that shows all the web sites I have visited! How do I turn this off?

    # Question
    When I type in "www" in the navagation space of the home page I get a drop down that shows all the web sites I have visited! How do I turn this off? edit

    That drop-down shows matches from your History and/or Bookmarks. To change what is shown, see "Controlling Behavior" in this article:
    *https://support.mozilla.com/en-US/kb/Location%20bar%20autocomplete
    <br />
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    **New Adobe Reader X (version 10) with Protected Mode just released 2010-11-19
    **See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
    #***Choose your language
    #***Download the file
    #***Windows: choose the .exe file; Mac: choose the .dmg file
    #*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
    #**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    #*Also see "Manual Update" in this article: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Table Control in web-dynpro for java

    Hi SDN,
    I was working on a web-dynpro application where I has to display a table control.
    Here I am listing my Requirement.
    1) A table with 7 columns are to be displayed.
    2) 5 of the columns are Drop down list where  3 of the 5 drop downs have dependency of the pervious drop down selection.
    3)other 2 columns are input box.
    4)The list for the drop downs come from a bapi.
    5)the user is to be allowed as many rows he can
    6)when he clicks save button the values are to be stored using table of another bapi
    Hi all, I have posted this earlier but no solution for this please help me in resolving this.
    Thanks in advance.
    Regards,
    Sai krishna.

    Hi Sai,
    I have better solution, I will explain solution for your design and then I will explain new design.
    <b>Solution to your problem</b>
    How many values each drop down contains? If its not large, execute all drop downs in the beginning of the application and store them in HashMap with dependency key and value as the list of populated values.
    - Create a top Node
    <b>1) A table with 7 columns are to be displayed.</b>
    Create 5 Value Nodes with simple type attributes under your topnode. Set singleton property for each of the node to false. And attach them to the Drop Downs. Populate the parent drop down and non dependent drop downs in the begining itself.
    <b>2) 5 of the columns are Drop down list where 3 of the 5 drop downs have dependency of the pervious drop down selection.</b>
    Attach onSelect events and based on the current selection of the values, check your pre populated HashMap and fill the node with new values.
    <b>3)other 2 columns are input box.</b>
    This is normal, create two nodes with simple types under Top Node.
    <b>4)The list for the drop downs come from a bapi.</b>
    As mentioned previously all these values are pre populated. so you need not to call the BAPI for each request.
    <b>5)the user is to be allowed as many rows he can</b>
    Provide  Add,Delete buttons which dynamically creates rows which means your context elements.
    <b>6)when he clicks save button the values are to be stored using table of another bapi</b>
    Read the values from nodes and send it to other BAPI.
    <b>New Design</b>
    As per your requirement create a form with 5 drop downs and 2 input fields( for dependency you can use the logic mentioned in the previous design). Provide Add,Delete and Update Buttons under the form. And also create a Result table with 7 columns with simple attribute types. Once user enters some values in the form and clicks on Add button then add a new value to the Bottom result table which doesn't have any drop downs. When user needs to update any row on selection of the row populate the values back to the form, then user clicks on update button. Same logic applies to delete also.
    Regards
    Abhilash

  • Not able to do page down in table control of screen

    Hello,
    I have created a table control on a screen of my report. This screen gets called from my selection screen. When I do page down or click on down arrow key to view other table entries nothing is happening. The scroll bar is not moving vertically.
    Someone told me that no coding is required to make the table scrollable vertically.
    Can someone please tell me if there is any attribute that needs to be set for this?
    Best Regards,
    Priyanka Gupta.

    Hi,
    Please go through this code.
    dataL line_count type i.         " Global declaration
    In the PAI of the table control screen.
    CASE OK_CODE.
         when 'P--'.
          clear ok_code.
          perform paging using 'P--'.
         when 'P-'.
          clear ok_code.
          perform paging using 'P-'.
         when 'P+'.
          clear ok_code.
          perform paging using 'P+'.
         when 'P++'.
          clear ok_code.
          perform paging using 'P++'.
    form paging using code.  "   NOTE  :  here "TABCTL" is your table control name
      data: i type i,
            j type i.
      case code.
        when 'P--'.
          tabctl-top_line = 1.
        when 'P-'.
          tabctl-top_line = tabctl-top_line - line_count.
          if tabctl-top_line le 0.
             tabctl-top_line = 1.
         endif.
        when 'P+'.
          i = tabctl-top_line + line_count.
          j = tabctl-lines - line_count + 1.
          if j le 0.
             j = 1.
          endif.
          if i le j.
            tabctl-top_line = i.
          else.
            tabctl-top_line = j.
          endif.
        when 'P++'.
          tabctl-top_line = tabctl-lines - line_count + 1.
          if tabctl-top_line le 0.
             tabctl-top_line = 1.
          endif.
      endcase.
    endform.                   
    Hope this will help you.
    Regards,
    Smart Varghese

  • How to populate the folder names from a particular folder in the drop down of a control?

    I am using an EDIT VI inorder to create MODEL, DRAWING NO  and the other parameters and save it. For each new MODEL a new folder will get created at a specific path. 
    How can I populate all those MODEL names in the dropdown of a control?

    If I undesrstand correctly you have a specific path containing sub folders, and you want to list all subfolders in a drop down manu?
    you should create a manu ring that you'll use as your drop down manu.
    then use the vi "list folder" on your path to get a list of all subfolders, and wire it to a "strings[]" property node of the ring control. The ring manu will then be populated with the list of folders.
    http://digital.ni.com/public.nsf/allkb/FB0409491FAB16FA86256D08004FCE7E
    hope that helps

  • Drag and drop ALV to table control

    Hi all,
    Does anyone know if it is possible to program the drag-and-drop functionality from an ALV list to a table control? I would like to have this feature to let the user enter data on 1 screen. On the left part the user sees an ALV list and on the right the user sees the online transaction. I would like the user to enter data simply by drag and drop instead of having to enter the data.
    Does someone has a sample program for this?
    Regards,
    Kris

    Hi Kris
    I can download the programs and send them to you, but you should give me your e-mail.
    Anyway you can use Drag and Drop if you build your table control by ALV, i.e. ALV GRID.
    But I'm using 4.7 and I don't know how class CL_GUI_ALV_GRID is in your release, I believe the release 4.6B is one of first release whit this class.
    Max

  • Unable to scroll down in table control screen .

    Hi techies ,
    am attaching the table control screen .
    am not able to scroll down in that .
    and also may i know the reason why am not able to tick the checkbox ?
    it seems in disable mode .

    Hi Ajay,
    It was the only reason, ever i have faced...
    And other possibility is regarding tbc-lines, but i saw that you were doing this using describe table.
    Sometimes the table control will not show all the records in internal table(case while changing number of records in internal table each time )..
    At this case you have to set the lines in TBC.. using
    describe table itab lines tbc-lines.
    tbc-lines is very useful, if you want to enable a new blank line in table control, just do this
    tbc-lines = tbc-lines + 1.
    Explore all properties of table control it is very useful.
    I think, i could solved your issue.. thanks for your appreciation.
    Regards
    Sreekanth

  • Drag & Drop, ALV or Table Control to Tree Control

    Hi Experts,
    If i want Drag & Drop feature in ALV or Table Control to Tree Control

    Hi,
      refer to the link below:
    http://help.sap.com/saphelp_46c/helpdata/fr/22/a3f5fbd2fe11d2b467006094192fe3/content.htm
    With luck,
    Pritam.

  • Drop down in Table Maintainence Gen

    Hi all,
    I'm facing a problem in table maintainence generator main view screen...i've got two fields in my db table and i've created search help for both the fields for drop down option for both the fields in main view screen.....but the first field shows up drop down option were in the other does'nt....i've changed the layout of the screen and lenght of the text element as well, even altered or changed the length of the view screen but its not working out....what i'm i suppose to do to get show up the drop down option for the other field too so as to make the the end user find the list of entries in the field..............any suggestion or changes would be really appreciated and correct answers would be surely rewarded....
    Answer need urgenlty..........

    Check whether in the attributes of the field, whether you have put the "Dropdown" value for your field as "Listbox" or "Listbox with key".
    Also check whether you have referenced the field directly to the data element.
    HOpe this helps.
    Thanks
    Balaji

  • Drop down in table

    hi,
    I have a dropdown by key in a table with 50 values.when I select a value in this drop down the following method will be called.This method is used to set new values in a dropby index present in the same table.This is happening perfectly.When I press enter to go to the next row in the table,the dropdown by index is retaining previous values.when I select the value in it change in second row is reflected to the first row also.this should not happen.Old values in the previous row of the dynamic dropdown should be retained.Can u suggest what should be done.
    public void onActionselectSkill(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionselectSkill(ServerEvent)
         //IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
         //IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
         int newsklen=wdContext.nodeNewskill().size();
         int sklength = wdContext.nodeSkills().size();
         boolean cppAdded = false;
    String getsub="";
         for(int i=0;i<sklength;i++)
          getsub=wdContext.nodeSkills().getSkillsElementAt(i).getSubject();
         //String getsub=wdThis.wdGetContext().currentSkillsElement().getSubject();
          // String getsub=nSkills.currentSkillsElement().getSubject();
         // String getsub="50000138";
           if(getsub.equals("50000138"))
              IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
                   IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
              List lis=new ArrayList();
              IPrivateDetails1.INewskillElement el1 = nNewSkill.createNewskillElement();
              el1.setTskill("abap");
              lis.add(el1);
              IPrivateDetails1.INewskillElement el2 = nNewSkill.createNewskillElement();
              el2.setTskill("workflow");
              lis.add(el2);
              //wdContext.nodeNewskill().bind(lis);
              nNewSkill.bind(lis);
              //nNewSkill.setLeadSelection(1);
          else if(getsub.equals("50000130"))
                        IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
                             IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
                                  List lis=new ArrayList();
                                        IPrivateDetails1.INewskillElement el11 = nNewSkill.createNewskillElement();
                                        el11.setTskill(" C Programming");
                                        lis.add(el11);
                                        IPrivateDetails1.INewskillElement el21 = nNewSkill.createNewskillElement();
                                        el21.setTskill("C++ Programming");
                                        lis.add(el21);
                                        IPrivateDetails1.INewskillElement el31 = nNewSkill.createNewskillElement();
                                        el31.setTskill("C# Programming");
                                        lis.add(el31);
                                        IPrivateDetails1.INewskillElement el41 = nNewSkill.createNewskillElement();
                                        el41.setTskill("Java");
                                        lis.add(el41);
                                        IPrivateDetails1.INewskillElement el51 = nNewSkill.createNewskillElement();
                                        el51.setTskill(" Visual Basic");
                                        lis.add(el51);
                                        IPrivateDetails1.INewskillElement el61 = nNewSkill.createNewskillElement();
                                        el61.setTskill("Pascal");
                                        lis.add(el61);
                                        IPrivateDetails1.INewskillElement el71 = nNewSkill.createNewskillElement();
                                        el71.setTskill(".Net");
                                        lis.add(el71);
                                        nNewSkill.bind(lis);
                                        //nNewSkill.setLeadSelection(1);
           else if (!cppAdded)
              IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
                   IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
              cppAdded = true;
              List lis=new ArrayList();
              IPrivateDetails1.INewskillElement elCpp = nNewSkill.currentNewskillElement();   
              if (null ==  elCpp) {
                elCpp = nNewSkill.createNewskillElement();
                elCpp.setTskill("Other");
                nNewSkill.addElement(elCpp);
                nNewSkill.bind(lis);
                //nNewSkill.setLeadSelection( nNewSkill.size() - 1);
              elCpp.setTskill("C++");
              nNewSkill.bind(lis);
        //@@end
    The method that is called when I click enter in the table is
    public void onActionaddSkills(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionaddSkills(ServerEvent)
        int sarea=0,keysk=0,pro=0,fdas=0,tdas=0;
         if(wdContext.nodeSkills().currentSkillsElement().getSubject()==null)
                   sarea=1;
         if(wdContext.nodeNewskill().currentNewskillElement().getTskill()==null)
                        keysk=1;
         if(wdContext.nodeSkills().currentSkillsElement().getProficiency()==null)
                        pro=1;
         if(wdContext.nodeSkills().currentSkillsElement().getFromdateSkills()==null)
                        fdas=1;
         //if(wdContext.nodeSkills().currentSkillsElement().getTodateSkills()==null)
                   //     tdas=1;
         if(sarea==1 || keysk==1 || pro==1 || fdas==1 )
                 IWDControllerInfo ctrlInfo3=wdThis.wdGetAPI().getViewInfo().getViewController();
                     IWDConfirmationDialog dialog3=wdComponentAPI.getWindowManager().createConfirmationWindow("SkillSets Table Field Is Missing.""\n""Check ur entry!!!",ctrlInfo3.findInEventHandlers("ok"),"OK");
                 dialog3.addChoice(ctrlInfo3.findInEventHandlers("cancel"),"cancel");
                 dialog3.open();
                 else
                  skNode=wdContext.nodeSkills();
                      skEl=skNode.createSkillsElement();
                      skNode.addElement(skEl);
                   //IPrivateDetails1.INewskillNode nsknewNode;
                    // IPrivateDetails1.INewskillElement nsknewEl;
                      sknewNode=wdContext.nodeNewskill();
                   sknewEl=sknewNode.createNewskillElement();
                   sknewNode.addElement(sknewEl);
        //@@end

    Hi,
    I did not study your code, but the behaviour you describe is clear.
    You have to create the 50 nodes dynamically for each table row (to be precise: for each nodeElement the row is bound to), and bind the Dropdown element in the particular row to each of these nodes (with 50 elements).
    This must be done dynimcally if you don't know how many rows your table will contain. Otherwise, you can create the context for all table data design time.
    Good luck.
    Roelof

  • Drop Downs in adobe forms using Web dynpro ABAP

    Hi all,
    Im new to this adobe forms using webdynpro abap.
    In my requirement i have two drop downs on the form.
    by selecting value in one drop down i have to fill corresponding values in the other drop down.
    Using only WDA i know how to do this but with adobe i dnt know how and where i have
    to catch the drop down value and write my code. please let me know how i can achieve this.
    one more thing whatever action or events we are performing on the form where we have to place our code for this?
    Thanks,
    santosh

    hope this helps -
    [Thread: Populating one Drop-Down list from the selection of another Drop-down list |Populating one Drop-Down list from the selection of another Drop-down list;

  • Disable Vertical scroll but enable Page down in Table control for BDC

    Hello All
    In my 4.6C sysem , i had enabled Scroll bar in table control by  populating TABC-lines = <No of records>...Then when i try to capture the BDC recording of this , then the scrolling event is not captured in BDC , as we all know.....
    So i put few buttons on the application bar as NEXT PAGE, NEXT LINE , PREV PAGE n PREV LINE...and i did the scrolling by writing the code manually in PAI...and that is getting captured in BDC so my problem is partially solved...
    Now as u see..i have default working Scroll bar on my T.C..also i have my buttons on the application bar....i want to get rid of the vertical scrolling....so now i am NOT populating the TABC-lines field...But as soon as i do this , my  buttons stopped also working...Any idea how to get rid of this ?
    In short when i don't write : TABC-lines = no_of_records .....to remove vertical scroling.......my manual scrolling mechanism also getting disabled..
    Is it possible to remove only vertical scrolling ?
    Thanks in advance .
    Nilesh

    No reply from any one ???

Maybe you are looking for

  • Servermgrd[584]: FIXME: IOUnserialize has detected a string that is not valid UTF-8, "v\035\363d".

    All, I am having a very odd problem. I have recently setup a Mac OS X Mavericks Server for the purposes of NetRestore. Everything setup fine, no issues whatsoever and the server has been running non-stop for the past 78 days. I've already imaged abou

  • Is 10g Grid Control compatible with database 11g R2?

    Hi all, I've searched the certificaction matrix for Grid Control in Metalink and it shows the last compatible version of database to create the repository is 11.1 also I don't know if it could monitor a 11.2 database... If I try installing it the usu

  • Question about /var/lock/subsys/dbora

    Hello, I've been having a problem where ./dbora stop is not completely shutting down the database. I've done some debigging and discovered that this is because there is no /var/lock/subsys/dbora file. I've seen this file created in a lot of sample db

  • Burn a disk failed - internal error

    why do i get a "burn a disk failed - internal error" when attempting to burn a disk?  I have burned 11 consecutive disks w/o a problem.  number 12 wouldn't burn!

  • JavaFx & Java Code

    Hi!! I'm student, and i want to develope an application for my HTC Diamond using Location API 179. My phone dont support this API with many JVM like Jbed... but with JavaFx Mobile Emulator y can develop this type of application!!!! There are various