HasFocus property for TextBox on offline form

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

HasFocus property for TextBox on offline form

Post by MegumiSawada »

Hi,

I'm trying to set Focus on the textbox on the offline form.
It seems setting HasFocus(True) works fine for online form,but not for offline form.

For offline form in Javascript I wrote as follows:
this.q_setProperty("Form.Fields.TEXTBOXA.HasFocus",True);

For online form I wrote like this:
#COM_OWNER.Set Property(TEXTBOXA.HasFocus) To(True)

Isn't it possible to set Focus on the textbox on the offline form?
Does anyone tried to set Focus on offline form?

I appreciate your kind advice.

Best Regards,
Megumi Sawada
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: HasFocus property for TextBox on offline form

Post by MarcusLancaster »

Hi Megumi

I think the TRUE needs to be in double quotes.

this.q_setProperty("Form.Fields.TEXTBOXA.HasFocus","True");

Try that.

Marcus.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: HasFocus property for TextBox on offline form

Post by MegumiSawada »

Hi Marcus,

Oh!! It works!

I thought I have tried it and it didn't work then...it might be other problem there...

Thank you!

Megumi
Post Reply