cancel
Showing results for 
Search instead for 
Did you mean: 

Problem setting quantity on a system matrix

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Diego,

Try edit.String = "2.5" - or - edit.String = "2,5"

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved,

I was setting wrong column, quantity is column 11, not column 13.