Place cursor in specific dialog field (DFO365)

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()


somefunction(in forms I know positionToRecord, but its works on only form datasources);


Best regards,


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)