Skip to Content
0

Customizing System Forms in SAP Business One

Nov 14, 2016 at 11:09 AM

46

avatar image

Hey Everyone,

I am customizing System Form of Sales Order and at one point it is giving me an error below is the code,

SAPbobsCOM.Recordset oRecordSet = (Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)); string query = "select b.U_SalesQty,b.U_FreeItem,b.U_FreeQty from [@SCHEMEMASTER] a Inner join [@SCHEMEDET] b on a.DocEntry = b.DocEntry where b.U_Status = 'Open' AND a.U_ItemCode = '" + itemCode + "'"; oRecordSet.DoQuery(query); oRecordSet.MoveFirst(); double qty =Convert.ToInt32(oRecordSet.Fields.Item(0).Value); if (qty < Convert.ToDouble(quantity)) { Matrix0.AddRow(); ((SAPbouiCOM.EditText)Matrix0.Columns.Item("1").Cells.Item(pVal.Row+1).Specific).Value = oRecordSet.Fields.Item(1).Value.ToString(); ((SAPbouiCOM.EditText)Matrix0.Columns.Item("11").Cells.Item(pVal.Row + 1).Specific).Value = oRecordSet.Fields.Item(2).Value.ToString(); } }

I AM USING sap bUSINESS oNE studio for VIsual Studio

it is giving me an error after query has been correctly executed,

"Item-Form Item is not editable"

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

DIEGO LOTHER Nov 14, 2016 at 11:34 AM
0

Hi Idrees,

Look this:

https://answers.sap.com/questions/58347/is-it-possible-to-make-certain-columns-visible-on.html

The situation is the same for is the same for editable columns.

Hope it helps.

Kind Regards

Diego Lother

Share
10 |10000 characters needed characters left characters exceeded