Check if a matrix is read only in SBO 2005
I have written a program to update the discount amount on the matrix in the sales order screen. The problem I have is that if they click on my button to update the matrix and the matrix is ready only then the program bombs out.
I have tried to test omatrix.columns(17).editable but that seems to be set to true even if the order is closed.
Can anyone give me any ideas please ?
Marco Blanco replied
I used the following code to do a similar test and didn't´t get an error. May be you could use it to compare it to yours and find the problem:
SAPbouiCOM.Column oCode = oMatrix.Columns.Item(strCode);
SAPbouiCOM.Column oTA = oMatrix.Columns.Item(strTAF);
SAPbouiCOM.EditText oEdit = (SAPbouiCOM.EditText) oCode.Cells.Item(i).Specific;
Hope ir helps,