cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing System Forms in SAP Business One

former_member609283
Participant
0 Kudos

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"

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185682
Active Contributor
0 Kudos

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