Page 1 of 1

HasFocus property for TextBox on offline form

Posted: Mon Feb 10, 2014 6:10 pm
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

Re: HasFocus property for TextBox on offline form

Posted: Mon Feb 10, 2014 6:22 pm
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.

Re: HasFocus property for TextBox on offline form

Posted: Wed Feb 12, 2014 11:42 am
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