HightlightRow error
John O'Brien
Hi,
I am trying to automatically highlight the first BP payment method (Accounting Tab) using the HighlightRow feature in an Easy Function.
I already set the pane level correctly, and have set some field values on the same pane level.
Code for matrix row selection is as follows:
Error in log:
Any ideas what I am doing wrong?!
Thanks,
John
Anders Olsson
Hi John,
Can you please give some more details? Which form are you talking about? I checked the accounting tab on the BP Master Data and Sales Order forms and neither have a matrix. Could you export and attach the rule?
Regards,
Anders
John O'Brien
Hi Anders,
Thanks for the reply!
Sorry, I posted too quickly! On the BP master (supplier), I'm trying to auto set the default payment method when the supplier group changes.
This is the payment methods matrix on the Payment Terms tab.
Please see Easy Function attached,
Thanks again,
John
Anders Olsson
Hi John,
Thanks for the clarification! Easy Functions makes the assumption that the row header column id is "0". This is the case in marketing documents and HighlightRow works fine there.
In Payment Methods it is "1" and it fails. That's a bug and it will be fixed in the next release.
To work around this, change the command type to C# and do something like this:
Matrix.GetFromUID(pVal.Form, "217").Columns["1"].Cells[row].Click(MatrixColumn.ClickTypes.Regular, MatrixColumn.Modifier.None);
Set row to the row you want to highlight (0 based, so the first row is 0).
Regards,
Anders
Please sign in to leave a comment.
Comments
0 comments