on 12-16-2007 4:56 AM
Hi,
i used the edittext update method to update the system matrix columns like Qty, Unit Price and few other UDFs. The program take 5 to 6 sec to update all the matrix columns. Is there a better option ? such as dbdatasource ?
''sample script below
Dim form As Form = B1Connections.theAppl.Forms.Item(pval.FormUID)
Dim item As Item = form.Items.Item("38")
Dim matrix As Matrix = CType(item.Specific, Matrix)
form.freeze(true)
Dim oNextEditText As EditText = matrix.Columns.Item(sColID).Cells.Item(pval.Row).Specific
onextedittext.string = "something"
form.Freeze(False)
form.Update()
Yes, it is slow.
No, there is no alternative solution on system forms.
Sorry.
We have experimented, too, but you cannot do much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of assigning the value directly to the column first get the matrix line data
then update the datasource then set the data to matrix line.
oMatrix.GetLineData(i)
// Update DataSource
oMatrix.SetLineData(i)
Hope it helps you
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.