PREVFOCUS does it work for EditTable? (OpenInsight Specific)
At 10 AUG 2000 11:02:05AM rayc@symmetryinfo.com wrote:
To all,
Okay, I used 'PREVFOCUS' before to determine the previous control. However, if the previous control is an Edittable, PREVFOCUS does not appear to work.
prevControl=Get_Property("SYSTEM" , "PREVFOCUS")
1) Is this correct?
2) If correct, is there an easy way or built in function to determine the control that had previous focus regardless of control type?
3) If not correct, what error am I making beside using OI (just kidding of course.)
rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 10 AUG 2000 11:42AM dsig@teleport.com wrote:
Ray,
I just created a screen with 2 controls (not data bound).
Ctrl1=Table1
Ctrl2=Editline1
In GOTFOCUS of Editline1 I placed
Call Msg(@Window,PrevFocusId)
When the window is displayed (the table gets focus) I clicked on the editline and the message window came up and said "test.table_1"
The only thing I can think is that you are not getting focus on your table to begin with.
AS RTI would say .. if you want to discuss this call
dsig@teleport.com onmouseover=window.status=imagine … a company that supports their product from pride not extortion;return(true)"
David Tod Sigafoos ~ SigSolutions
dsig@teleport.com Cell:503-341-2983
At 10 AUG 2000 12:33PM Don Bakke wrote:
Ray,
If you noted DSig's code, he used @Window instead of SYSTEM. That is probably where you problem lies.
dbakke@srpcs.com
At 10 AUG 2000 02:26PM rayc@symmetryinfo.com wrote:
Dave,
Ah….
In GOTFOCUS of Editline1 I placed Call Msg(@Window,PrevFocusId)
You're using PrevFocusId from GotFocus. I was using PREVFOCUS at the Click Event. As mentioned, PREVFOCUS will return the previous Control, for example, if EditField. However, if the previous control was an EditTable, then PREVFOCUS will return "nothing".
Your response hit it right on the head. I could capture PrevFocusId at GotFocus and pass that to my Click event via a User-Defined property.
As always, thanks for the input and help.
BTW, where have you been laying since all this commotion started brewing in RevSoft land.
rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"
Ray Chan ~ Symmetry Info
At 17 AUG 2000 10:35AM dsig@teleport.com wrote:
I was on a dive trip when it all came down. The rest of the time just counting the number of times i read ".. hey .. just call and lets talk about it"
dsig@teleport.com onmouseover=window.status=imagine … a company that supports their product from pride not extortion;return(true)"
David Tod Sigafoos ~ SigSolutions
dsig@teleport.com Cell:503-341-2983