Update formatted searches on Sales Order through button
Thijs
I have created a button on the Sales Order. Through this button I want to update some UDF's and standard fields which have a formatted search attached. How can I activate the formatted search on those fields, For example a formatted search on the UDF ORDR.U_KGCalc.
Thanks.
Regards Thijs
Paolo Manfrin
Hi Thijs,
formatted searches cannot be triggered via DI. The only possibility is to use the command SendKey to simulate an input from the user.
This should trigger the formatted search.
hth
paolo
Thijs
Hi Paolo,
Do you have an example for me how to do this? Or can I find an example somewhere?
I need to trigger more UDF's on document header and also on the line.
Thanks
Thijs
Paolo Manfrin
Hi Thijs,
you can do a Click() on the related udf and the trigger a SendKey command.
You can search in the forum for Click and SendKey commands. this should give you an idea.
unfortunately I do not have a sample that combines the two.
Something similar to the following:
TextEdit udfTextEdit =TextEdit.GetFromUID(pVal.Form.UDFForm, "UDFName");
udfTextEdit.Click(SwissAddonFramework.UI.Components.Item.ClickType.Regular);
SwissAddonFramework.Messaging.SendKeys.Send("{TAB}");
If you still have problems feel free to open a ticket at helpdesk.coresystems.ch so someone of our developers can help you
hth,
paolo
Please sign in to leave a comment.
Comments
0 comments