Creating Choice Column in JSGrid Control

Hello, I have created a JSGrid control by using this helpful tutorial:
http://msdn.microsoft.com/en-us/library/ee539027(v=office.14).aspx
However, I was asked to add one "Choice" Column and I haven't figured out a way to do so. Basically what I need is to create a column based on a fixed list of options and be able to select from them by using a dropdown.
Any help will be much appreciated.
Thanks,
Jose M. Cadenas, Msc. Sr. Developer

Found the way to do it...
Hopefully this helps somebody else trying to do the same.
In the formatGridField function... assuming that you have it of course; set the property type for the field you want to make a dropdown.
gf.PropertyTypeId =
"myLookupPropType";
Now, when you create the serializer... assuming that you have something like this:
DataTable data =
new GridData().Data();
// Create a grid serializer to connect to the data.
GridSerializer gds =
new GridSerializer(SerializeMode.Full, data,
"Task ID",
 new
FieldOrderCollection(new
String[] { "Order" }),
 GridUtilities.GetGridFields(data),
GridUtilities.GetGridColumns(data));
Right after creating the GridSerializer, create a list of items as follows.
List<LookupTypeItem> _items =
new List<LookupTypeItem>();
_items.Add(new
LookupTypeItem(1,”Option 1”));
_items.Add(new
LookupTypeItem(2,”Option 2”));
_items.Add(new
LookupTypeItem(3,”Option 3”));
Then create the actual lookup prop type.
LookupTypeInfo lkfield =
new LookupTypeInfo("myLookupPropType", _items);
Now, you just need to register the prop type.
gds.RegisterPropLookupType(lkfield);
and there you go!!!
Jose M. Cadenas, Msc. Sr. Developer

Similar Messages

  • Sorting and Grouping by multi-value Choice columns - any options?

    I found out the hard way that SharePoint doesn't support sorting or grouping lists by Choice columns that are set to "Allow Multiple Values." I'm stunned by this missing capability, and my project has come to a complete halt without it. It's like Microsoft only implemented hafl the feature -- you can put data in, but then you can't do anything with it. You can't even use the column in a formula in another column, so you can't parse it.
    I'm not posting just to gripe though. Does anyone have any suggestions for alternatives? What do you do when you need to let people make multiple selections, and then you want to sort or group by those values? Are there any add-on products that allow this? At this point my only option seems to be to not allow multiple choices, but that's taking away a rather significant feature.
    Thanks for any ideas,
    Steve

    Hi Paul,
    Thank you for the reply and the additional questions. For my situation I want to use the multi-value choice to indicate a "belongs to" relationship, as in "this item belongs to projectA, projectB, and project C. Because there are more than 10 projects, I didn't want to create a separate Yes/No checkbox for each one.
    For viewing the information, I'm looking primarily for a "group by" function.  So if an item belongs to projectA, projectB, and projectC, it would appear three times, once under the grouping for each project. What I don't want is for a row that only belongs to projectA to be grouped separately from a row that belongs to both projectA and projectB. I want to see all the rows that belong to projectA grouped together, regardless of whether they also belong to other projects.
    I'll look into using a grid control, but if you have any other suggestions I'll certainly listen.
    Steve

  • How to implement tool-tip for the list items for the Choice column in SharePoint 2013

    I had created a simple list with a "Choice" column, i have three entries in my drop-down, 
    First Entry
    Second Entry
    Third Entry.
    If i select any entries in drop-down and hour-over (Second Entry), a
    tool-tip need need to show. 
    Is it possible? If yes how to implement any help will be appreciated.

    Hi,
    We can use JavaScript to achieve it.
    The following code for your reference:
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/wz_tooltip.js"></script>
    <script type="text/javascript" src="/sites/DennisSite/Shared%20Documents/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("select[title='Choice']").change(function(){
    Tip($(this).val());
    $("select[title='Choice']").mouseout(function(){
    UnTip();
    </script>
    Download wz_tooltip.js:
    http://www.walterzorn.de/en/tooltip/tooltip_e.htm#download
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to get sum of quantity column in table control

    Hi, expert ,
    Someone can guide me how to get som of qty column in table control ?
    I created a screen with a table control  and has a  qty quantity field .
    I want to show total of qty  in a  field .
    my code like this ...
    PROCESS AFTER INPUT.
      LOOP AT I_tab.
        CHAIN.
           FIELD I_tab-COUNTQTY MODULE  caculate_total_qty .
        endchain.
        MODULE UPDATE_TOTAL_QTY  .
      ENDLOOP.
    but, when I Back to the previous screen
    It's caculate again so I always get wrong Total quantity .
    anyone can help me ...

    Hi , Dhina
    I have another question .
    I use internal table data in table control to update  database table .
    The data in the db will be change ,
    but each record I want to delete in table control , it's still exist in database .
    my code is
    WHEN 'SAVE'
         MODIFY YDSGBT53 FROM TABLE I_YDSGBT53 .
         COMMIT WORK .
      END CASE
    How  to fix my code and let it can change and delete data in database  ?
    or
    when I delete record  in table control I must to delete data in the database too .
    Edited by: TitusFang on Jun 16, 2011 3:21 AM

  • "Created By" Column is showing empty in SharePoint List

    Hello All,
    I have created a custom list and enabled the "Created By" and "Created" Column to be shown in the list.
    All the users are able to see the "Created" Column populated, but the "Created By" column is blank, no value is populated to it.
    But the Farm Administrator is able to see the values for "Created By" column in the List. I tried providing full control to the Users, provided all permissions, but still the users are unable to see this column populated. I have no clues what to
    be done.
    So I tried a workaround specified in the forum ie., by using a column with calculated value =[Me]. But this gives the login name and not the Proper name, which is not helpful for me. I just want a column which displays who created the item.
    Please help me regarding this issue.
    Thanks,
    Shanky

    Hi Alex,
    Yes, I have checked them too.
    1. This is happening with all lists, as I have modified the permission for the users to the lists only to :
    Add Items
    View Items
    Open Items
    View application Pages
    View Pages
    Open
    This is to make sure that the users wont modify the list or delete it or its items.
    2. This is happening with all the items in the list, not only for other people's items but also for current user's item as well.

  • Updating a managed metadata column from choice column value

    I am trying loop through
    all lists in a web, and for each list, 
    1. create a managed metadata column->Working
    2.
    Pull value from choice column->Working
    3. Move
    choice column value to managed metadata column->Not Working
    Point number 3 is not working. Please advise
    Here is the code:
    static void Main(string[] args)
    //Pulling the rootweb of the Site
    const string SPLocationListColumn = "CHECK6";
    SPSite site = new SPSite("http://sp2010:8080");
    SPWeb rootweb = site.RootWeb;
    //Setting up the taxonomy terstore, termset and term
    Microsoft.SharePoint.Taxonomy.TaxonomySession taxonomySession = new Microsoft.SharePoint.Taxonomy.TaxonomySession(site);
    TermStore termStore = taxonomySession.TermStores["Managed Metadata Service"];
    Console.WriteLine(termStore.Name);
    Group group = termStore.Groups["KM Metatags"];
    Console.WriteLine(group.Name);
    TermSet termSet = group.TermSets["Document Classification"];
    Guid termsetid = termSet.Id;
    Console.WriteLine(termSet.Name);
    Term term = termSet.Terms["Document subclassification"];
    TermCollection terms = termSet.Terms;
    Console.WriteLine(term.Name);//Looping through all webs of the input website
    SPWebCollection collWebsite = site.AllWebs;
    for (int i = 0; i < collWebsite.Count; i++)
    using (SPWeb oWebsite = collWebsite[i])
    //Looping through all lists in web
    SPListCollection collList = oWebsite.GetListsOfType(SPBaseType.DocumentLibrary); ;
    for (int j = 0; j < collList.Count; j++)
    SPList list = collList[j];//if the list name is Documents, create a new field of MMS type
    if (list.Title == "Documents")
    Console.WriteLine(list.Title);
    TaxonomyField field = list.Fields.CreateNewField("TaxonomyFieldType", SPLocationListColumn) as TaxonomyField;
    field.SspId = termSet.TermStore.Id;
    Console.WriteLine(termSet.TermStore.Id);
    field.TermSetId = termSet.Id;
    Console.WriteLine(termSet.Id);
    field.AnchorId = Guid.Empty;
    try
    {//Add the newly added MMS field to default view
    Console.WriteLine("Entering");
    Console.WriteLine("Entering");
    list.Fields.Add(field);
    Console.WriteLine("Entering");
    Console.WriteLine("Entering1");
    SPView view = list.DefaultView;
    Console.WriteLine("Entering2");
    list.Update();
    SPViewFieldCollection collViewFields = view.ViewFields;
    collViewFields.Add("CHECK6");
    Console.WriteLine("Entering3");
    view.Update();
    Console.WriteLine("Entering4");
    catch (Exception e1)
    Console.WriteLine(e1.Message);
    }//Capture a choice field by name subclass and move it to the newly added MMS field
    for (int f = 1; f < list.ItemCount; f++)
    if (list.Title == "Documents")
    Console.WriteLine(list.Title);
    SPListItem item = list.Items[f];
    if (item.Fields.ContainsField("subclass"))
    SPField field9 = item.Fields["subclass"];
    String subclassvalue = field9.GetFieldValueAsText(item["subclass"]);
    Console.WriteLine(subclassvalue);
    TaxonomyField taxonomyField = item.Fields["CHECK6"] as TaxonomyField;
    TaxonomyFieldValue taxonomyFieldValue = new TaxonomyFieldValue(taxonomyField);
    taxonomyFieldValue.TermGuid = term.Id.ToString();
    taxonomyFieldValue.Label = subclassvalue;
    taxonomyField.Update();
    item.Update();
    list.Update();

    From here:
    http://www.c-sharpcorner.com/uploadfile/anavijai/programmatically-set-value-to-the-taxonomy-field-in-sharepoint-2010/
    taxonomyFieldValue.TermGuid = term.Id.ToString();
    taxonomyFieldValue.Label = term.Name;
    SPListItem item = list.Items.Add();
    # item["Title"] ="Sample";
    item["TaxonomyField"] = taxonomyFieldValue;
    item.Update();
    list.Update();
    it appears you're missing the point where you assign that taxonomyFieldValue to the item's taxonomy field in question.

  • Display multiple choice column selections on a separate line in the body of email

    This question could have been answered elsewhere and I just don't realize it. I have a SharePoint Foundation 2010 form (11 columns) that has one choice column allowing the user to select multiple options (checkboxes). The selections have been typed into "type each choice on a separate line". Moving to Designer we have created a workflow that sends an email when the user submits to form.
    If Current Item: Select shift equals DAY request    Email ................
    The body of the email has this field:
    Information Being Requested: [%Current Item: The following information is being requested%].
    When the user gets the email the output for this field is string on a single line separated by a comma. What I need is each of the selections to be on a separate line so the users can easily read what is being requested and not miss any of the selection. I'm stuck. I'm not worried about text wrapping. I've been searching for hours but either it's not what a need, it's over my head, or I just don't know where to make the changes. I don't use VS but I do know html and I'm fairly comfortable in Designer. I would appreciate any help.

    Firstly, can you edit your post and take the question out of the code / quote box. It'll make it easier to read.
    Secondly the options depend on the version of SharePoint.  Are we to assume you're using SharePoint 2003 or 2007 as you've posted into the legacy forums?
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Disable some columns in table control?

    Hi
    How to disable some columns in table control.
    For Ex: Table contains 8 columns.
    In first row i want to disable first 4 columns.
    in second row i want to disable last 4 columns.
    In third row i want to disable first 2 and last 2 columns.  How can we achieve this?
    Cheers,
    Venkys.

    HI
    Create three attribute in the node which is bound to the table as data source.
    say pro1, pro2, and pro3 of type wdy_boolean.
    now bind the enabled property of first four column editors to pro1, last 4 to pro2, and pro3 to first 2 and last 2.
    then go to the eventhandler of the dropdown 's on select event and write the code to update the values of these attribute
    according to the selected value.
    here is the sample code.
    DATA lo_nd TYPE REF TO if_wd_context_node.
        DATA lo_el TYPE REF TO if_wd_context_element.
            DATA lv_VAL LIKE ls_dealer1-name.
        lo_nd = wd_context->get_child_node( name = 'DEALER1').
      lo_el = lo_nd->get_element(  ).
        lo_el->get_attribute(
          EXPORTING
            name =  `NAME`
          IMPORTING
            value = lv_VAL ).
         DATA PR1 TYPE WDY_BOOLEAN.
         DATA PR2 TYPE WDY_BOOLEAN.
         DATA PR3 TYPE WDY_BOOLEAN.
      PR1 = ABAP_TRUE.
    PR2 = ABAP_TRUE.
    PR3 = ABAP_TRUE.
    IF LV_VAL EQ 'A'.
    PR1 = ABAP_FALSE.
    PR2 = ABAP_TRUE.
    PR3 = ABAP_TRUE.
       ELSEIF LV_VAL EQ 'B'.
    PR1 = ABAP_TRUE.
    PR2 = ABAP_FALSE.
    PR3 = ABAP_TRUE.
    ELSEIF LV_VAL EQ 'C'.
      PR1 = ABAP_TRUE.
    PR2 = ABAP_TRUE.
    PR3 = ABAP_FALSE.
      ENDIF.
       LO_EL->SET_ATTRIBUTE(
       NAME = 'PRO1'
       VALUE = PR1
       LO_EL->SET_ATTRIBUTE(
       NAME = 'PRO2'
       VALUE = PR2
       LO_EL->SET_ATTRIBUTE(
       NAME = 'PRO3'
       VALUE = PR3
    thanks
    sarbjeet singh

  • Dymanic Columns in Table Control

    Hallo Experts,
    I need to create dymanic columns in a Table Control.  The column has to by dymanically created based upon a flag entry in one master table.
    We have a master table with some rows with a flag entry as shown below,
    TEXT                 FLAG
    AAAA                  X
    BBB                  X
    CCC       
    DDD                 X
    I have to show the above entries which are set (AAAA, BBB and DDD) as a columns in the table control.
    My Table Control, already have many columns and on the top of that i have to populate this rows as a columns dymamically..
    The sample table control structure should looks like the below,
    PERNR   NAME   LAND1  AAAA   BBB    DDD
    How to acheive this?

    Hi
    U need to change the attribute of the colunms of the table control, your table control is defined like the type TABLEVIEW:
    CONTROLS <table contrl> TYPE TABLEVIEW USING SCREEN <screen number>.
    The type TABLEVIEW is based on the type  CXTAB_CONTROL, here there's the field COLS (like the type CXTAB_COLUMN) where the attribute of the columns are stored: u need to change the attribute of COLS.
    COLS is an internal table, so u need to define a workarea based on CXTAB_COLUMN and set the attribute INVISIBLE in order to hide a certain colunm.
    TYPE-POOLS: CXTAB_COLUMN.
    DATA: WA_COL TYPE CXTAB_COLUMN.
    LOOP AT <table control>-COLS INTO WA_COL.
       IF WA_COL-SCREEN-NAME = ...........
         WA_COL-INVISIBLE = 'X'.
         MODIFY <table control>-COLS FROM WA_COL.
      ENDIF.
    ENDLOOP.
    Now u need to insert the right condition in  order to show or hide a certain column
    Max

  • How to create a column where each subsequent entry is added to the former?

    How does one create a column, inside Numbers, where each subsequent cell is added, in value, to the preceding cell above it? For example, a column could be labeled "credit card subtotals for the month." In the first cell, one might insert a dollar value, eg., $24.00. The next credit card charge might be $100.00 and that would be added to the $24.00 to create a running subtotal.
    Thank you.

    Hi Jay,
    Both formulas are written as they would appear entered into C2.
    The 'special formula' is also written as it would appear in C2. Where I have used 'formula for C2' substitute your choice of the two formulas listed above the 'special formula' in my earlier post.
    If you choose to use the first version, the finished 'special formula' will look like this in C2:
    =IF(LEN(B2)>0,SUM(C1,B2),"")
    Jerry's remarks regarding using conditional formatting to suppress the display of zeroes is well taken, but in this case, will not work as there are no zero values to be hidden.
    In this case, either of the initial formulas will repeat the last 'running balance' in every cell from the last row containing an entry in column B to the bottom row of the table.
    The formula checks, by counting the number of characters displayed, whether an entry has been made in the column B cell on the same row as the formula (B2 in the example in this post. IF an entry has been made, the formula calculates the sum of that entry and the previous running balance. IF no entry has been made (ie. there are no chanracters displayed in B2, the calculation is skipped, and the empty string ( "" ) is placed in C2, giving the appearance of a blank cell.
    Example:  the formula in this post is used in column C. Column D uses the core of that formula (with the C1 reference replaced by D1) without the IF statement. Both formulas are filed down to the bottom cell in their columns. Note the difference in rows 7 and below:
    Regards,
    Barry

  • How to update person or group column with peopleeditor control values

    Hi,
    I have created custom aspx page and added "PeopleEditor" control(can select multiple users)  in that page. Now I am trying to update person or group column with peopleeditor control values.I am not getting any error if I select single user
    in PeopleEditor control but getting error if I select more than one user.
    UpdateItem(listItem, "ListColumnName",
    listItem.ParentList.ParentWeb.EnsureUser(peopleeditorId.CommaSeparatedAccounts));
    Can anybody help me out to resolve the issue?
    Thank you in advance!!!
    AA.

    First get all the users/groups from the PeapleEditor by using PeapleEditor.ResolvedEntities
    foreach (PickerEntity pickerEntity in peopleEditor.ResolvedEntities)
    SPPrincipalType principalType = (SPPrincipalType)Enum.Parse(typeof(SPPrincipalType), pickerEntity.EntityData["PrincipalType"].ToString());
    if (principalType == SPPrincipalType.User || principalType == SPPrincipalType.SecurityGroup)
    string loginName = pickerEntity.Key;
    //your code here
    else if (principalType == SPPrincipalType.SharePointGroup)
    string groupName = pickerEntity.Key;
    //your code here
    Add all the users/groups in an instance of SPFieldUserValueCollection
    and then update your list item.
    SPFieldUserValueCollection users = new SPFieldUserValueCollection();
    users.Add(new SPFieldUserValue(web,user.ID,user.Name));
    item["YourUserColumn"] = users;
    item.Update();

  • Push button column in table control

    Hi,
    I have to add a few push button columns into table control. This columns has to be placed between fields of DDic table. How to do this? Shall I create new DDic structure with all the needed fields  from DDic table and add also fields for push button columns? Which data element shal I use in this case for push button field? Or is the better solution to add DDic table fields one by one and then using drag and drop technique to add push button column behind it?
    Thanks.

    Hi ,
        Your Last option is better first add columns into DDIC table then  Drag and
    Drop it on table control .
      That will better definitely.................................
    if useful rewards the point..............
    Thanks .
    Nilesh Jain

  • SharePoint 2013 - Choice Column with Fill-In enabled Not Editable in Datasheet View

    I have a custom list with a choice column (check boxes) set to allow for fill-ins.  Before it was migrated to 2013, I had a datasheet view and was able to edit the choice field by selecting one of the choices and/or add my own fill-in. 
    Now in 2013 that field is greyed out in datasheet view.  However, all the other choice columns which are NOT set to allow for fill-ins are editable.  I get all the choices with no problems.   The problem seems to be with the choice
    fields that is allowing for fill-ins.  Why won't this work in datasheet view?

    Hi Jenkins,
    It is a by design behavior that the filled-in value doesn’t show up in the list view filter options.
    As a workaround, you can create an extra Single Line of Text column which saves the duplicated value of that Choice column, then filter the text column instead.
    About how to copy value of a Choice column to a text column, you can set up a SharePoint Designer workflow to do the copy job and update the item.
    A demo about how to update list item in SharePoint Designer workflow:
    http://www.documentmanagementworkflowinfo.com/workflow/use-update-list-item-action-sharepoint-designer-workflow.htm
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Cannot create property defaultColumnCount on mx.controls.DataGrid

    The app compiles fine but an error occurs at runtime.
    Code:
    <mx:DataGrid width="100%"
                 height="100%"
                 lockedColumnCount="6"
                 horizontalScrollPolicy="on"
                 defaultColumnCount="1">
    Error:
    Cannot create property defaultColumnCount on mx.controls.DataGrid
    Property description:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/listClasses /ListBase.html#defaultColumnCount

    it appears that datagrid does not inherite that property from listbase class or if it does its encapsulated so that is only used withing the class.
    what are you trying to do. when i look a the source code for flex datagrid i saw this.
    private var _columns:Array; // the array of our DataGridColumns
        [Bindable("columnsChanged")]
        [Inspectable(category="General", arrayType="mx.controls.dataGridClasses.DataGridColumn")]
         *  An array of DataGridColumn objects, one for each column that
         *  can be displayed.  If not explicitly set, the DataGrid control
         *  attempts to examine the first data provider item to determine the
         *  set of properties and display those properties in alphabetic
         *  order.
         *  <p>If you want to change the set of columns, you must get this array,
         *  make modifications to the columns and order of columns in the array,
         *  and then assign the new array to the columns property.  This is because
         *  the DataGrid control returned a new copy of the array of columns and therefore
         *  did not notice the changes.</p>
         *  @langversion 3.0
         *  @playerversion Flash 9
         *  @playerversion AIR 1.1
         *  @productversion Flex 3
        override public function get columns():Array
            return _columns.slice(0);
         *  @private
        override public function set columns(value:Array):void
            var n:int;
            var i:int;
            n = _columns.length;
            for (i = 0; i < n; i++)
                columnRendererChanged(_columns[i]);
            freeItemRenderersTable = new Dictionary(false);
            columnMap = {};
            _columns = value.slice(0);
            columnsInvalid = true;
            generatedColumns = false;
            n = value.length;
            for (i = 0; i < n; i++)
                var column:DataGridColumn = _columns[i];
                column.owner = this;
                column.colNum = i;
                if (column.cachedHeaderRenderer)
                    var item:DisplayObject = column.cachedHeaderRenderer as DisplayObject
                    if (item.parent)
                        item.parent.removeChild(item);
                    column.cachedHeaderRenderer = null;
            updateSortIndexAndDirection();
            fontContextChanged = true;
            invalidateProperties();
            itemsSizeChanged = true;
            invalidateDisplayList();
            dispatchEvent(new Event("columnsChanged"));
    its ovbious to me that flex is calculating how many columns will appear on the datagrid depending on the dataprovider you supply.
    Or if you would like to only show a specific amount of columns  you can futher define them in your grid like so
    <mx:DataGrid  id="grid" columnCount="2">
      <mx:columns>
    <mx:DataGridColumn headerText="column1"/>
    <mx:DataGridColumn headerText="column2"/>  
    </mx:columns>
      </mx:DataGrid >

  • Create grouped column headers dynamically

    Hi all,
    I want to create grouped column headers dynamically.
    DATA lr_table_column TYPE REF TO cl_wd_table_column.
    DATA lr_column_group TYPE REF TO cl_wd_table_column_group.
    DATA lr_caption TYPE REF TO cl_wd_caption.
    lr_table_column = cl_wd_table_column=>new_table_column( ).
    lr_table_column->set_table_cell_editor( lr_input ).
    lr_caption = cl_wd_caption=>new_caption( ).
    lr_caption->set_text( 'Min' ).
    lr_column_group = cl_wd_table_column_group=>NEW_TABLE_COLUMN_GROUP( ).
    lr_column_group->set_header( EXPORTING the_header = lr_caption ).
    CALL METHOD lr_column_group->add_column
            EXPORTING
              index      = 1
              the_column = lr_table_column.
           lr_table->ADD_GROUPED_COLUMN( EXPORTING the_grouped_column = lr_column_group ).
    But I don't understand how I can get the grouping of the columns.
    The following structure should be realized:
    FR  | Headline 1  |  Headline 2  |
    SR  | Min |  Max   |  Min |  Max   |
    FR = first row
    SR = second row
    regards
    Edited by: Wolfgang Bauer on May 19, 2010 7:52 AM

    LOOP AT it_comp_header INTO wa_comp_header.
    Minimum
          counter = counter + 1.
          CONDENSE counter.
          CONCATENATE 'INPUT_' counter INTO id.
         c_count = sy-index.
          c_count = counter.
          CONDENSE c_count.
          CONCATENATE 'IT_BIN_COMP.MIN' c_count INTO binding.
          cl_wd_input_field=>new_input_field(
            EXPORTING
               bind_value             = binding
               id                     = id
            RECEIVING
              control                = lr_input ).
          lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
          lr_table_column = cl_wd_table_column=>new_table_column( ).
          lr_table_column->set_table_cell_editor( lr_input ).
          lr_caption = cl_wd_caption=>new_caption( ).
          lr_caption->set_text( 'Min' ).
          lr_table_column->set_header( lr_caption ).
          lr_column_group->add_column( lr_table_column ).
          lr_table_column = cl_wd_table_column=>new_table_column( ).
          lr_table_column->set_table_cell_editor( lr_input ).
          lr_caption = cl_wd_caption=>new_caption( ).
          lr_caption->set_text( 'Max' ).
          lr_table_column->set_header( lr_caption ).
          lr_column_group->add_column( lr_table_column ).
          lr_table_column = cl_wd_table_column=>new_table_column( ).
          lr_table_column->set_table_cell_editor( lr_input ).
          lr_caption = cl_wd_caption=>new_caption( ).
          lr_caption->set_text( 'Sorting Bin' ).
          lr_table_column->set_header( lr_caption ).
          lr_column_group->add_column( lr_table_column ).
          lr_caption = cl_wd_caption=>new_caption( ).
          text = wa_comp_header-chip.
          lr_caption->set_text( text ).
          lr_column_group->set_header( lr_caption ).
          lr_table->add_grouped_column( lr_column_group ).
        ENDLOOP.
    Sub product
        lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
        lr_table_column = cl_wd_table_column=>new_table_column( ).
        lr_table_column->set_table_cell_editor( lr_input ).
        lr_caption = cl_wd_caption=>new_caption( ).
        lr_caption->set_text( 'Sub Product' ).
        lr_table_column->set_header( lr_caption ).
        lr_column_group->add_column( lr_table_column ).
        lr_table->add_grouped_column( lr_column_group ).
    Remarks
        lr_column_group = cl_wd_table_column_group=>new_table_column_group( ).
        lr_table_column = cl_wd_table_column=>new_table_column( ).
        lr_table_column->set_table_cell_editor( lr_input ).
        lr_caption = cl_wd_caption=>new_caption( ).
        lr_caption->set_text( 'Remarks' ).
        lr_table_column->set_header( lr_caption ).
        lr_column_group->add_column( lr_table_column ).
        lr_table->add_grouped_column( lr_column_group ).

Maybe you are looking for

  • Syncing ipad and ihpone

    I have an iphone and an ipad. How do I sync the calendars on each.  I have mobile me.

  • Drill down to Trans XD03 (display Vendor) not working

    All, I have searched SDN but could not find this question posted. I am doing a drill down in a ALV report. I have a call transaction to XD03 - that looks like this: IF rs_selfield-fieldname EQ 'LIFNR'.     SET PARAMETER ID: 'LIF' FIELD rs_selfield-va

  • NEW ITEM IN INBOUND DELIVERY

    Hi All, We have an issue in inbound delivery. We have created a purchase order with one line item. While giving confirmation the vendors says that he would also send some free items along with the actually ordered items. For Example I create a PO for

  • Opening multiple tables in data view

    i've not been able to figure out how to open more than one table, each having a seperate tab. every time i click on a table it replaces the one already tabbed. is there a way to do this? i.e. have more than 1 table opened in a seperate tab?

  • Engineering Change Management - Effectivity Types

    Hello Forum members, we want to make our BOM Engineering Changes being dependent from material stocks. The process is the following: A BOM material shall be exchanged only after the old material's stock is depleted, e.g. a steel holder shall be repla