Hello, friends
After I open a dialog I need to put cursor in specific field. As I understand the code should be run after init method and could look something like this:
public void init()
{
super();
somefunction(in forms I know positionToRecord, but its works on only form datasources);
}
Best regards,
Roberts
Try setFocus().
Note that positionToRecord() is used to position to a record in a data source, which is a completely different thing.
By the way, I’ve attached a version tag (D365FO) for you. Please do it by yourself next time.
This solution worked:
public void firstField(int _flags=1)
{
;
super(_flags);
desiredControlName.setFocus();
}
``