Dear All,
Can you please let me know when we need to use exactly registerOverrideMethod ?
What is the purpose of use this method?
What its does exactly?
Please give me more shed on this.
Thanks!
*This post is locked for comments
Dear All,
Can you please let me know when we need to use exactly registerOverrideMethod ?
What is the purpose of use this method?
What its does exactly?
Please give me more shed on this.
Thanks!
*This post is locked for comments
In your example, what is meant by "this" in the following line of code :
control.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(ClassName, customerLookup), this);
Thanks Chaitanya and Sukrut
Hi,
Also typically your code would be like below:
In method dialog:
dialogCustAccount = dialog.addFieldValue(extendedTypeStr(CustAccount), custAccount, "Customer"); control = dialogCustAccount.fieldControl(); control.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(ClassName, customerLookup), this);
Implement new method customerLookup with below signature
public void customerLookup(FormStringControl _entityNameControl) { }
Hi,
In your particular scenario, you have to override lookup method on your customerAccount control using registerOverrideMethod on the dialog in the dialog method and perform lookup using SysTableLookup.
Thanks Sukrut,
what I understand, suppose I have 2 dialog fields
Dialog 1: Customer Group : A, B, C
Dialog 2: Customer account :
Note : I want when I select Customer Group A then in Customer Account it will show only those customer which is belongs to Customer Group A only.
For other groups also the same way.
To do this we need to use registerOverrideMethod for Customer account.
Is't correct?
Please give me more shed on this.
Thanks!
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,321
Most Valuable Professional
nmaenpaa
101,156