Notifications
Announcements
No record found.
Hi,
I have been working on one requirement which should do some operation when product barcode is scanned, but user is not required to press any button. If they scan a barcode from label it should automatically perform the operation. This I need to do while Purchase order receiving and I know WhsWorkExecuteDisplayLoadItemReceiving class should be used but even after hard try I couldn't get how to call modify method on textbox?
Your scanner should have a setting that controls whether the scanner sends a line break (enter) after each scan. If it sends a line break, it works exactly like you would type a value with your keyboard and hit enter. This will trigger the modified method.
Hi Nikolaos,
That's fine but where to add this modified method to put my logic?
I have achieved it by adding below code in createTextBox method of class WhsWorkExecuteForm.
if(this.elementName(_textBox) == #ItemId)
{
stringControl.registerOverrideMethod(methodStr(FormStringControl,modified),methodStr(WHSWorkExecuteForm,DynamicButtonControl_modified),this);
}
Which calls my DynamicButtonControl_modified method. Do you have any other better solution?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 467 Super User 2025 Season 2
Martin Dráb 420 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional