Very low performance when filling Matrix
Noor Bulak
hi all,I'm programing Add-one to fill Matrix of system form
this is my way
//item code
newMatrix.SetValue("1", i, oldMatrix.GetValue("1", i));
//quantity
newMatrix.SetValue("11", i, oldMatrix.GetValue("11", i));
but this way it is very slow
any body know somthing better
thanks,
Anders Olsson
Hi Noor,Please make sure that the matrix does not contain any formatted searches that are activated when the add-on writes to a cell. This will have a big impact on performance. Since 2007 SP1 PL10 there is a new function in the SDK: Matrix.SetValueWithoutValidation. This method should be a lot faster to write into the matrix.
Regards,
Anders Olsson
Noor Bulak
[quote]"anders"]Hi Noor,
Please make sure that the matrix does not contain any formatted searches that are activated when the add-on writes to a cell. This will have a big impact on performance. Since 2007 SP1 PL10 there is a new function in the SDK: Matrix.SetValueWithoutValidation. This method should be a lot faster to write into the matrix.
Regards,
Anders Olsson
[/quote]
Hi andres,
then the probelm in formatted searches (my Matrix contain one)
but about "Matrix.SetValueWithoutValidation" it's possible to use it in 8.8 PL12
Regards,
Noor Bulak
Anders Olsson
Hi Noor,First a correction: The method is called SetCellWithoutValidation, nothing else.
In 8.8, it first appears in PL13. You can download the SAP dlls here:
http://www.coresystems.ch/downloads-module.html
Unfortunately, the method has not yet made it into the coresuite framework, so you will have to use the UI API Matrix directly (SAPbouiCOM.Matrix).
Regards,
Anders
0
Please sign in to leave a comment.
Comments
0 comments