From: | Thierry Nivelet (FoxInCloud) |
To: | Garth Groft |
responding to your reply here i just added activepage to addunit's pageframe1.page2.wcPropSave, but still only works in LAN mode, not Web mode.
pageframe1.page2.wFormCallBack code (retruninhg from options form):
thisform.command1.enabled = .T.
thisform.PageFrame1.Page2.Text4.Refresh
thisform.PageFrame1.Page2.Text15.Refresh
thisform.PageFrame1.activePage = 2
* ?Lower('ActivePage') $ lower(thisform.PageFrame1.page2.wcPropSave) - does = .T.
*!* thisform.PageFrame1.page2.setfocus && this command is not needed
? Lower('ActivePage') $ lower(yourPgf.wcPropSave)
this command looks like a winner and does work great in FiC LAN mode, but no luck in Web mode.
did you try this?
thisform.PageFrame1.activePage = 2
in this app, thisform.PageFrame1.Page2.SetFocus is working in FiC LASN mode but not in Web mode. we tried thisform.PageFrame1.Page2.Activate but same result.
we also tried adding setfocus and activate to wcPropSave propety for page 3. this apprach gives FAS errors (not allowed).
so at this time we are still searching for a solution.
garth
setFocus() is supported
clicking the options tab (page 3) on oiur addunit form executes the options tab click event code below. retuning from the options form, we need to set focus back to the design tab (page 2) (thisform.PageFrame1.Page2.SetFocus).
my recollection from trainng under you is that setfocus has no effect in FiC Web mode. however, we must somehiw be able to do this. is theree a workaround to setfocus? KEYBOARD command? set focus to a container on the design tab? other? there must be a way to set focus in a browser. i have used apps which direct the user to a particular location on a form after attempting to proceed with missing data entries. btw, the mesage board works this way if you forget to enter the subject for example.
external form Options
Options = m.thisform.wForm('Options.scx',"wFormCallBack", thisform.mode,TRIM(users.uid))
thisform.PageFrame1.Page2.SetFocus
garth
-- thn (FoxInCloud)