Announcements
No record found.
when i modified in field i need to add new line and set focus on the same field in the new line
Thanks
*This post is locked for comments
Hi momenmagdi!
Try to use findRecord() method on DS and setFocus() method on control.
formDataSource.findRecord(Mybuffer);
controlName.setFocus();
Hi momenmagdi,
To set the focus on specific control when form is open:
public void firstField(int _flags=1) { ; super(_flags); desiredControlName.setFocus(); }
And to set focus on a grid field:
formdatasource.findrecord(buffer); controlname.setfocus();
i need to set focus on serial number in invent transfer line form
when i add new line in this form set focus on serial number field
1. Set AutoDeclaration property to YES on InventDimIssue_InventSerialId or InventDimReceipt_InventSerialId field on form design.
2. In create() method on InventJournalTrans data source table after super() write InventDimIssue_InventBatchId.setFocus() or InventDimReceipt_InventSerialId.setFocus()
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Alexey Lekanov 2
Henrik Nordlöf 2 User Group Leader