on 10-27-2007 11:53 AM
Hello All,
I have created a User defined column in the Goods Issue Form
When I choose a particular order, I get values in the matrix defined by system
Based on this selection, I fire a query which returns a value and this value has to be
displayed in the user defined column.
I am trying to add a value to this column but I get the following error message
Form Item is not Editable
Here is the code written in form activate event
code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;
string strcode = code.Value.ToString();
string str;
str = "select itemCode from owor where Docnum='" + strcode + "'";
RecSet.DoQuery(str);
e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;
strcode = RecSet.Fields.Item(0).Value.ToString();
try
{
matrix.Columns.Item(15).Editable = true;
e.String = strcode;
matrix.Columns.Item(15).Editable = false;
}
catch (System.Runtime.InteropServices.COMException com_err)
{ }
Regards
Nirmala B
On system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.
The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.
The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
you have to update the value of datasource of the column
and use matrix.setlinedata(RowNum) then only you can update the value ...
Regards,
Atul...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.