Add items into column in matrix

Hi everyone,
I have an error like 'reference instance is not set yet' when I debug this code.
Private Sub DrawForm()
        Dim oForm As SAPbouiCOM.Form
        Dim oItem As SAPbouiCOM.Item
        Dim oCombo As SAPbouiCOM.ComboBox
        Dim oColumns As SAPbouiCOM.Columns
        Try
             oForm = SBO_Application.Forms.Item("FBLK")
            ' Add Edit Items
            ' BP Code
            oItem = oForm.Items.Item("txtCode")
            cmbBPCode = oItem.Specific
            AddBPCodeCombo(cmbBPCode)
            ' Add a matrix
            oItem = oForm.Items.Item("mat")
            oMatrix = oItem.Specific
            oColumns = oMatrix.Columns
            ' Item Code
            colItemCode = oColumns.Item("ItemCode")
            colItemName = oColumns.Item("ItemName")
            'Add Valid Values
            AddItemsToCombo(colItemCode)
            oMatrix.AddRow()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
            Exit Sub
        End Try
    End Sub
    Private Sub AddItemsToCombo(ByVal oColumn As SAPbouiCOM.Column)
        Dim RS As SAPbobsCOM.Recordset
        Dim Bob As SAPbobsCOM.SBObob
        Try
            RS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Bob = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge)
            RS = Bob.GetItemList
            RS.MoveFirst()
            While RS.EoF = False
                oColumn.ValidValues.Add(RS.Fields.Item("ItemCode").Value, RS.Fields.Item("ItemName").Value) =============> error happen
                RS.MoveNext()
            End While
        Catch ex As Exception
            MessageBox.Show(ex.Message)
            Exit Sub
        End Try
    End Sub
Is there anyone can help me.Thanks

hi,
oColumn.ValidValues.Add(RS.Fields.Item("ItemCode").Value, RS.Fields.Item("ItemName").Value)
if the error is Validvaue - value exceeds the boundries
combo has Value and Description which is to be shown.
you should know that
RS.Fields.Item("ItemCode").Value.length should not be greater than 50
and
RS.Fields.Item("ItemName").Value.length should not be greater than 50
if any one of the above length is greater than 50 it shows the above discussed error.
if you are not facing with this problem.please specify the error.
regards,
varma

Similar Messages

  • How to add item in column header

    How can i add an messageStyled item(or any item) in column header? if so how can i do this

    Standard framework feature allows to add only a sortable header bean in a column header which holds some of the UI and runtime properties for that column.
    If you can explain your requirement, we can suggest the way to achieve that.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Add Picture type Column in Matrix...!!!

    Hi ,
                I am setting the Picture Type column in the matrix. but it doesn't work.How can i implement the picture Type Column.
    Basically my Purpose is i want to Implement My CFL same as System CFL I have created the CFL But don't able to Add a picker
    in the Matrix/Grid.
    So how can i achieve this functionality...
    Thanks & regards
    Sandesh Mittal

    Hi,
    Hope this thread could be a little bit useful to you:
    Re: Link Button In Grid
    Thanks,
    Gordon

  • How to add items into giftlist

    hi all please give me the solutions and code

    Hi,
    Several servlet beans are provided to support gift list and wish list functionality. These servlet beans can be used with forms to look up gift lists and gift items, as well as to perform actions, such as removing or purchasing items from a gift list, adding gift lists to a profile, and removing gift lists from a profile.
    You can look at Pioneer Cycling Store as an example  in  /atg/commerce/gifts/GiftlistFormHandler component in the product display page with an option for the customer to pick a list for the selected item.
    <code>
    <dsp:form action="<%=form24%>" method="post">
         <input name="id" type="hidden" value='<dsp:valueof param="id"/>'>
         <input type="hidden" name="itemType" value="product">
         <input name="itemId" type="hidden" value='<dsp:valueof
                      param="Product.repositoryId"/>'>
         <dsp:input bean="GiftlistFormHandler.addItemToGiftlistSuccessURL"
              type="hidden" value="../user/lists.jsp"/>
         <dsp:input bean="GiftlistFormHandler.addItemToGiftlistErrorURL" type="hidden"
              value="../user/lists.jsp"/>
         <dsp:input bean="GiftlistFormHandler.productId"
              paramvalue="Product.repositoryId" type="hidden"/>
         <%/*Display any errors that have been generated during Cart operations: */%>
         <dsp:include page="../../common/DisplayGiftlistFormHandlerErrors.jsp"
              flush="true"></dsp:include>
         Add <dsp:input bean="GiftlistFormHandler.quantity" size="4" type="text"
                  value="1"/>
         <dsp:select bean="GiftlistFormHandler.catalogRefIds">
         <dsp:droplet name="/atg/dynamo/droplet/ForEach">
           <dsp:param name="array" param="Product.childSKUs"/>
           <dsp:param name="elementName" value="sku"/>
           <dsp:param name="indexName" value="skuIndex"/>
           <dsp:oparam name="output">
         <dsp:getvalueof id="option59" param="sku.repositoryId"
              idtype="java.lang.String">
    <dsp:option value="<%=option59%>"/>
    </dsp:getvalueof><dsp:valueof param="sku.displayName"/>
           </dsp:oparam>
         </dsp:droplet>
         </dsp:select>
         <BR>
         to
         <dsp:select bean="GiftlistFormHandler.giftlistId">
           <dsp:getvalueof id="option73" bean="Profile.wishlist.id"
                idtype="java.lang.String">
    <dsp:option value="<%=option73%>"/>
    </dsp:getvalueof>My Wishlist
           <dsp:droplet name="/atg/dynamo/droplet/ForEach">
             <dsp:param bean="Profile.giftlists" name="array"/>
             <dsp:param name="elementName" value="giftlist"/>
             <dsp:oparam name="output">
             <dsp:getvalueof id="option83" param="giftlist.id"
                  idtype="java.lang.String">
    <dsp:option value="<%=option83%>"/>
    </dsp:getvalueof><dsp:valueof param="giftlist.eventName">Undefined</dsp:valueof>
             </dsp:oparam>
            </dsp:droplet>
         </dsp:select>
         <dsp:input bean="GiftlistFormHandler.addItemToGiftlist" type="submit"
              value="I Want It"/>
        </dsp:form></dsp:getvalueof>
    </code>

  • Remove gaps when drawing custom items into column data browser

    I am drawing custom controls in a column-view data browser, and find that there are margins on each side the drawing region. This is especially annoying when I need to draw the highlighted background for selected items because then the selection bar has gaps between columns.
    The browser has "variable width columns" enabled, and the columns in question have min and max widths set to 50 pixels. The drawing region that I am passed in the callback is 26 pixels wide, meaning there are 12 pixel margins on each side. Anyone know how to get rid of these so that I can make my own decision about margin size and properly fill in the background for selection highlighting? Thanks in advance.
    (See sites.google.com/site/polyritmo/gaps-in-column-view for a picture)

    Never did get an answer on this one. Does that mean it's not possible to make this work properly?

  • Add items into Exchange public calendar?

    I'm trying to find out where I can find out if this is possible.
    Our work has loaner hardware that our users can check out.  We use Exchange's public folders/calendar to see if the hardware is checked out on a particular day or not.
    I'd like to see if I can find a way to see if a particular day has any items on it, and if not, allow the user (via Coldfusion) to reserve the item, which means Coldfusion would need to write info back to the public calendar that the item in question is checked out.
    First of all, is this possible?  How difficult would it be?  And where can I find information on how to do this?
    Any help, suggestions or other info would be appreciated.
    Thanks!
    Steve

    Hi all,
    Today I tried to do more tests and now I've some other news to you!!!
    Let me explain:
    i looked that if i use one-way synchronization from Outlook to BB time and date of the appointments are correct.
    Then I also discovered that by using two-way synchronization, with the notification before the changes, details of appointments are wrong and the appointments should be added on the day on which you are synchronizing and should occured for all the day; however, using the "synchronize again" button, with the second pass, the appointments were added with correct date and time!!
    The problem with this second way is that changed or deleted appointments are added back to the device (BB or PC that is) from which they were deleted!
    I hope these further information should give you any idea to help me to understand where the problem is.
    Thanks

  • How to add data into a List box

    CS3 SDk:Windows<br /><br />Hi all,<br />I am trying to add  data into a basic List box in CS3??<br /><br />// .fr<br />GenericPanelWidget<br />     (<br />     // CControlView properties<br />     kInvalidWidgetID, // widget ID<br />     kPMRsrcID_None, // PMRsrc ID<br />     kBindNone, // frame binding<br />     Frame(0,0,250,90) // left, top, right, bottom<br />     kTrue, // visible<br />     kTrue, // enabled<br />     // GroupPanelAttributes properties<br />     "", // header widget ID<br />     { <br />     <br />     WidgetListBoxWidgetN<br />     (<br />     kWFPListBoxWidgetID, kSysListBoxPMRsrcId, // WidgetId,RsrcId<br />     kBindAll, // Frame binding<br />     Frame(0,0,250,90) // Frame<br />     kTrue, kTrue, // Visible, Enabled<br />     1,0, // List dimensions<br />     19, // Cell height<br />     1, // Border width<br />     kFalse,kTrue, // Has scroll bar (h,v)<br />     kTrue, // Multiselection<br />     kTrue, // List items can be reordered<br />     kTrue, // Draggable to new/delete buttons<br />     kFalse, // Drag/Dropable to other windows<br />     kTrue, // An item always has to be selected<br />     kFalse,// Don't notify on reselect<br />     kFalse, <br />     {               <br />     }     <br />                    <br />),<br />},<br />),<br /><br />//-------ID.h--------<br />DECLARE_PMID(kWidgetIDSpace, kWFPListBoxWidgetID, kWFPPrefix + 2)<br /><br />//observer.cpp-----------WFPDialogObserver::Update<br /><br />//get currently selected/active widget <br />WidgetID theSelectedWidget = controlView->GetWidgetID();<br /><br />// ist it the text edit field? <br />if (theSelectedWidget == kWFPInsertButtonWidgetID && theChange == kTrueStateMessage) <br />{ <br /><br />IControlView* listBox = panelControlData->FindWidget(kWFPListBoxWidgetID);<br /><br />InterfacePtr<IListControlData> listControlData(listBox, UseDefaultIID()); <br /><br />//Insert the string into listbox <br />PMString strText = dialogCtrl->GetTextControlData(kWFPTextEditBoxWidgetID); <br /><br />// obviously there can't be a translation for text entered by user <br />strText.SetTranslatable(kFalse);<br />listControlData->Add(strText,kWFPTextEditBoxWidgetID); <br />dialogCtrl->SetTextControlData(kWFPTextEditBoxWidgetID, ""); <br />break;      <br /><br />I am not able to Add items into list box.<br /><br />I tried based on Discussion <br />http://www.adobeforums.com/webx/.3bc43877<br /><br />but not able to locate  SDKListBoxHelper file .it is not available in SDK.<br /><br />Please ,<br />Tell me Where I am going wrong.<br /><br />Thanks,<br />Adil

    resource VSPDialogWidget (kSDKDefDialogResourceID + index_enUS)
         __FILE__,
         __LINE__,
         kVSPDialogWidgetID, // WidgetID
         kPMRsrcID_None, // RsrcID
         kBindNone, // Binding
         Frame(5,0,491,266) // Frame (l,t,r,b)
         kTrue,
         kTrue, // Visible, Enabled
         kVSPDialogTitleKey, // Dialog name
              DefaultButtonWidget
                   kOKButtonWidgetID, // WidgetID
                   kSysButtonPMRsrcId, // RsrcID
                   kBindNone, // Binding
                   Frame(9,234,89,254) // Frame (l,t,r,b)
                   kTrue,
                   kTrue, // Visible, Enabled
                   kSDKDefOKButtonApplicationKey,  // Button text
              CancelButtonWidget
                   kCancelButton_WidgetID, // WidgetID
                   kSysButtonPMRsrcId, // RsrcID
                   kBindNone, // Binding
                   Frame(394,234,474,254) // Frame (l,t,r,b)
                   kTrue,
                   kTrue, // Visible, Enabled
                   kSDKDefCancelButtonApplicationKey, // Button name
                   kTrue,  // Change to Reset on option-click.
              WLBCmpListBox   //Tree view
                   kWLBCmpListBoxWidgetID, kPMRsrcID_None,     // WidgetId, RsrcId
                   kBindAll,                                                       // Frame binding
                   Frame(299,49,475,170)           // Frame
                   kTrue, kTrue,                                             // Visible, Enabled
                   kTrue,                               // EraseBeforeDraw
                   kInterfacePaletteFill,           // InterfaceColor
                   kHideRootNode | kDrawEndLine,     // Options. Display root node
                   kFalse,          // Use H Scroll bar
                   kTrue,          // Use V scroll bar
                   20,               // fVScrollButtonIncrement
                   20,               // fVThumbScrollIncrement
                   0,               // fHScrollButtonIncrement
                   0,               // fHThumbScrollIncrement
                   2,               // Items selectable, 0 = No Selection, 1 = Single Selection, 2 = Multiple Selection
                   kFalse,          // Allow children from multiple parents to be selected
                   kTrue,          // Allow discontiguous selection
                        //The tree view is dynamically created.          
    // added to support the list elements in the list box
    resource LocaleIndex (kWLBCmpListElementRsrcID)
         kViewRsrcType,
              kWildFS, k_Wild, kWLBCmpListElementRsrcID + index_enUS
    resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS)
         __FILE__, __LINE__,
         kWLBCmpListParentWidgetId, kPMRsrcID_None,     // WidgetId, RsrcId
         kBindLeft | kBindRight,               // Frame binding
         Frame(0, 0, 194, 20),               // Frame
         kTrue, kTrue,                         // Visible, Enabled
         "",                                        // Panel name
                   // Just a info-static text widget with about-box text view to get white bg.
              WLBCmpTextWidget
                   kWLBCmpTextWidgetID, kPMRsrcID_None,          // WidgetId, RsrcId
                   kBindLeft | kBindRight,                                        // Frame binding
                   Frame(45,1,194,18)                                             // Frame
                   kTrue, kTrue, kAlignLeft,kEllipsizeEnd                    // Visible, Enabled, Ellipsize style
                   "",                                                                 // Initial text
                   0,                                                                 // Associated widget for focus
                   kPaletteWindowSystemScriptFontId,                         // default font
                   kPaletteWindowSystemScriptHiliteFontId,                    // for highlight state.
    If you still got problems, post you email here - I'll send you the complete project/code then.
    -Marc

  • Tempolary add record into cookies before into database

    Hi,
    I'm developing cart system, the user can add more than 1 items (planning to use tabular form), however, the record straight away go into database. The result i wanted is after the user add item into cart, go to next process where user need to type in their personal details, then click on submit, then the record all go to database.
    So i wondering, if i can save the record in the cookies/xml before the user finish the check out.
    I been thinking, is there any other method to accomplish this?
    e.g.
    all the insert/update/delete can rollback if the user not complete the process.
    Please help. or got other way to do this?
    ~vincent.

    APEX Collections would be the recognised approach.
    There is an Online Store packaged application that you might want to look at.

  • How to add a new column (Project Number) in the action items table under NPD Module?

    There are two projects with same name and created by same person in NPD.
    So when it is displayed in "Action Items" table, It looks similar.
    To avoid this, I need one more column (Project Number) to be added in the "Action Items" table and " Strategic briefs and projects" table.
    So, How to add a new column (Project Number) in the "Action Items" table and " Strategic briefs and projects" table under NPD Module?
    Please do the needful.

    There is no out of the box configuration available to add columns to NPD action items.   As always we welcome enhancement requests. 
    Thanks
    Kelly

  • Add a new column into repository

    hi
    In BI11g, how to add a new column into repository?
    Thanks
    kavi

    Hi kavitha,
    If your adding a new column to the physical layer or BMM layer the process is same as 10g.
    Steps:-
    1) Right click table where you want to add the column.
    2)Select new object >>physical column/BMM column
    3) Enter your choice labelling and data type,if needed formula.
    4) Click ok and you can see the column being added on to the table.
    CHeers,
    KK

  • How to add an item into the Newsstand

    How to add an item into the Newsstand.  Please do NOT reply using  "tech-language." Use standard- normal everyday English. Thanks,
    Don Otlin
    Franklin Square, NY

    Open Newsstand. Tap on the "Store" button in the upper right. Any newspaper or magazine you download from the store will appear in Newsstand.

  • To add a new Column in ME21 item screen

    Hi,
    We need to add a new column at item level of the transaction ME21.
    Does adding the new column refres to adding the new field in the EKPO table as an include structure?
    or
    Is there any screen exits which could be used.
    Thanks in advace.

    Dear,
    Before posting any threads plz search in SDN for ur reference below is one  link
    screen exit for VA01
    Cheers
    fareed

  • Add a new column in Agreement Items table control (ME31K/ME32K/ME33K)

    Hi guys,
    I have a big issue.
    How can I add a new column at Agreement Items table control (ME31K/ME32K/ME33K) level.
    Thanks a lot.

    I think i solved the problem . The single way to to that is to modify the SAP standard Screen.

  • I want add new column in matrix in "Inventory Transfer" Form (System Form)

    hai,
    i want to add new column in Matrix in "Inventory Transfer" Form (System Form)
    Is it possible or not?
    bye
    gopinath

    hai,
    i want coding how to add columns in the matrix ( system form)
    plz....
    bye
    gopi
    Edited by: Rui Pereira on Dec 23, 2008 4:45 PM

  • How can I add new row/column into existing jTable?

    Hi add!
    Can you help me how can I add new row/column into existing jTable?
    Tnx in adv!

    e.g
    Create two buttons inside the Table ( "Add New Row" ) and ("Add new Column")
    their handlers are:
    add new row:
    //i supose u already have
    DefaultTabelModel tablemodel = new DefaultTableModel(rowdata, columnNames);
    //and   
       JTabel jtable = new JTable(tablemodel);
    // Handler (row)
    jbtAddRow.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent e) {
          if(jtable.getSelectedRow() >= 0 )
              tablemodel.insertRow(jtable.getSelectedRow(), new java.util.Vector());  
           else  
                tablemodel.addRow(new java.util.Vector());
        });to add new columns its the same but inside actionPerformed method:
    ask for e.g "Whats the name for the new column"
    then,
       tablemodel.addColumn(nameOfColumn, new java.util.Vector());   Joao
    Message was edited by:
    Java__Estudante

Maybe you are looking for