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.

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 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

  • 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

  • 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

  • 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 ???

  • Use drop-down menu to control plot visibility

    Hello everyone,
    I have simple data reading program that loads and parses a text file containing tab-delimited data. Currently, they are parsed and plotted in 7 separate graphs. I am trying to reduce this to 3 graphs where the user can select from a drop-down menu what they would like to be displayed. 
    Eg. Graph 1 would have choices data A, B and C; Graph 2 would have data D, E, F and etc
    The user would select on the drop-down box data A on graph 1 and data F on graph 2. 
    Is there an easy way to this? I have read some ideas about plot visibility.
    Thanks
    Thomas

    Each plot on a chart has its own Plot Visible property. One easy solution is to graph all the data, then set the visibility property for each line based on the selection from the drop-down menu. To set visibility for an individual plot, first set the Active Plot property to the plot that you want, then set the Visible property. You can do this in a single property node; make sure that the Active Plot property is at the top (property nodes execute in top-to-bottom order, and can be mixed read and write).

  • Issue finding current line when page down occurs - table control

    HI experts,
    How to find the current line index of the table control? The "Current line" property of table control gives the index of the current line when the cursor is in the first page. If it exceeds the first page, then it is not returning the correct value..
    For example, first page has 10 lines and the cursor is in the 5th line of the 2nd page, then the index must be returned as 15.. But current line returns the value as 5..
    Pls tell me how to find this.

    Hi,
    try this Way...
    IN PBO At MODULE STATUS_<Screen-Number>.
    13 is the number of cells in the Tables control
    TBC_200 is the Table control Name....
      if sy-ucomm = 'PGUP'.
         if TBC_200-current_line GE 14.
            TBC_200-top_line = TBC_200-top_line - 13.
         endif.
      ENDIF.
      if sy-ucomm = 'PGDN'.
         if TBC_200-current_line lE TBC_200-lines.
            TBC_200-top_line = TBC_200-top_line + 13.
         endif.
      ENDIF.
    Regards,
    Prabhudas

  • ESS Bsns pkg  Bnfts &Pymnt - Overview Drop down and table not populated

    Hi All,
      We have configured ESS business package. Payslips in form of PDF are available in Benefits and payment.
    Overview dropdown and table are not getting populated.
    I checked context node rem, vcdata and attribute overview_sel in VcRem2Selection comp.
    They are not populated at any place as well. How does this work?
    Please guide
    Regards,
    Ganga

    Hi Gangadharayya,
    There are 2 ways of populating the dropdown.
    Either u can create a simple type and bind the attribute to the SimpleType, or use the class ISimpleTypeModifiable and IModifiableValueSet to populate the values at run-time.
    Hope this helps u
    Regards,
    Poojith M V

Maybe you are looking for