[FEATURE-12797] Set focus on components

Dear all,
I am currently using the b2019031202.
I need to set the focus active on a component. In the former versions (java) I usually set the “transferFocus” method.
How can I do it in Perspective?

Thank you a lot.

I made a dir(self) on the component, but I did not find any method suitable to set the focus.

We have an active internal ticket to add this functionality - you’re not missing anything, it’s just not possible yet.

This feature was added in the build uploaded today (4/10).

Normally we have the nightly builds accessible via https://inductiveautomation.com/downloads/ignition, but in the meantime you can find it via this post:
8.0.1 Nightlies - Temporary Place to Download the Latest Builds

Let us know if you have any issues.

@ awalker, is your link still the place to get the 8.0.1?

Hi @brian.mills,

You can go to https://inductiveautomation.com/downloads/ignition and select “Early Access” from the drop-down to get the 8.0.1 RC.

1 Like

The .focus() method works for text fields and text areas but is not working for numeric entry fields. There are no errors, it just doesn’t do anything.

This is going to be fixed as part of 8.0.3 and should already be functional on the nightly build.

1 Like

Thank you, this is also important for me. Because i want to use sequencial barcode scanning (one input after another without “click” interaction), and auto focus is not working in case of Numeric Entry Field.

@michal.koblasa I just checked and it does work for Numeric Entry Fields. If it is not working for you, and you’re on 8.0.3 or newer, then we need to investigate the reason it isn’t working. Could you please verify your version?

@cmallonee Hello, i needed to upgrade, i had some issues while upgrading. But not it is working fine. In 8.0.4.
Thank you for assistance and fast problem solving.

1 Like