FoxInCloud
Container - SetFocus
Hi Thierry,
With a container the focus on a textbox
is ineffective.
To be sure, I launched in the same context a focus on a textbox alone (it works) and provoked with jQuery (it works).
Container.Text.SetFocus && KO
Minstruc = 'input[id="ori_scx-pageframe1-page1-valgrid-texte"]'
THISFORM.wcScriptJSadd(textmerge([jQuery('<<Minstruc>>').focus();])) && OK
Thanks in advance
Hi Vincent,
In Web mode, awTxt::setFocus()
calls .gotFocus()
.
awTxt::gotFocus()
adds a similar code (modify class awtxt of aw method gotFocus
); make sure to call dodefault()
in your sub-class or object.
Thank you Thierry but I don't understand your answer.
I only have a problem with a container.
Btn.Click -> Text.SetFocus && OK
Btn.Click -> Container.Text.SetFocus && KO
do you have code in Container.Text.setFocus()
or Container.Text.gotFocus()
(in object of parent class)?
if so, make sure to call dodefault()