I hope someone can help me with this problem. I have created a product tree (BOM) using the SDK. I can successfully add this item to the matrix on the sales quotation form in Business One. I also want to allow the user to have the same function on the Order form. I use the exact same code, product tree etc.. but the application simply hangs when I try to add the BOM itemcode to the matrix on the order form. Is there something different that I must do in order to add this on the order form?
Has anyone been able to add a BOM to the order form through the SDK?
Here is a snippet of code I am using:
SAPbouiCOM.Column col= null; SAPbouiCOM.Columns cols; OItem = m_ParentForm.SboForm.Items.Item(matrixId.ToString()); OMatrix = (SAPbouiCOM.Matrix)OItem.Specific; cols = OMatrix.Columns; SAPbouiCOM.EditText temp; m_ParentForm.SboForm.Freeze(true); //set ItemCode of BOM col = cols.Item(v33_QUOT_MATRIXITEMCODE); temp = (SAPbouiCOM.EditText)col.Cells.Item(numRows).Specific; temp.Value = bomCode;
Does anyone have any ideas?