on 04-10-2006 5:04 PM
Hi
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 ?
Regards Andy
Hi,
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);
if(oCode.Editable)
{
SAPbouiCOM.EditText oEdit = (SAPbouiCOM.EditText) oCode.Cells.Item(i).Specific;
oEdit.Value=strKey;
}
Hope ir helps,
-M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
Why don't you check if the order(line) is closed or not.
Regards
Ad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.