on 04-23-2009 1:48 PM
Hi to all,
I'm writing an add-on to simplify sales order insertions.
From a custom form user can insert, after some selections, one or more rows into the sales order (Form 139), my problem is in setting quantity, I can't found how to format the string to assign to the matrix cell, an example, if I write
2.5 (2 dot 5)
I obtain "Bad Value" error.
If I write
2,5 (2 comma 5)
No error occurs, but in the system order form i see in cell quantity 2, not 2,5.
For the price I haven't this problem, price is written correctly with decimal.
If I try to write manually in the cell 2,5 it works.
this is my code:
EditText edit = (EditText)matrix.Columns.Item("13").Cells.Item(rownum).Specific;
edit.Value = "2,5";
I suppose it can be due to cultere but I don't know how to solve it.
Thanks
Diego
Hi Diego,
Try edit.String = "2.5" - or - edit.String = "2,5"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved,
I was setting wrong column, quantity is column 11, not column 13.
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.