collector window (OpenInsight 32-bit Specific)
At 21 MAY 2004 02:26:44AM Elaine Lau Min Min wrote:
Hi,
I'm currently using AREV 2.11, and am interested in OI. But I can't seem to use some of the codes from AREV in OI.For example, I want to use a collector window to collect data. When I write the procedure, I called the unbound form (With no data)but OI seems to be unable to pause for data entry in the form.How do you call the form from a procedure, passing the control to the form and wait for an entry, then pass the control back to the calling procedure, together with the data from the specific form.In AREV, I can still use the @PSEUDO to get the data, but with OI, I'm not able to do so. Please help me out.
Thanks
At 21 MAY 2004 03:20AM [email protected] wrote:
You would use Dialog_Box to make the call. You would load the Create param of the call to dialog_box with the @Pseudo equivalent and on the End_Dialog call you would collect together the information you want and return it the the parameter provided for this purpose.
When you have more OI experience it is possible to automate this further using something called "Promoted Events" but for now this might cloud the issue. For reference materials on this see http://www.revelation.com/__85256DB80017688B.nsf/0/9B075429DBC6275385256E5B00055A6B?Open
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 22 MAY 2004 10:54AM [email protected] wrote:
Elaine,
As sprezz says you can use
rtn=Dialog_Box(dialogID, parentID, initparam)
where
dialogID is your collector window name
parentID is the 'current' window you are currently in
initparam is any data you want to pass to the window (mainly used in create events)
Dialog_Box function creates a MODAL window.
If you want a MODELESS window then you would use the subroutine
Create_Dialog(dialogID, parentID, mode, initparam)
where
mode=1 if you want a modeless dialog
mode=0 if you want a modal dialog
(all other params same as dialog_box)
To get data back you would then use the subroutine
End_Dialog(dialogName, results)
where
dialogName is the name of the window created
results is the data you are returning.
As for promoted events .. they are a great tool but putting in a screw with a hammer .. hmmm not sure it is needed here
[email protected] onmouseover=window.status=the new revelation technology .. a refreshing change;return(true)"
David Tod Sigafoos ~ SigSolutions
At 23 MAY 2004 05:57AM [email protected] wrote:
I don't know Sig - if I find a button called BTN_OK_COLLECTOR look at the create param and put into the relevant controls on CREATE and on Click grab all the data and End_Dialog. So no coding for a collector window, just name the button - works great
![]()
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 24 MAY 2004 10:30AM [email protected] wrote:
Don't get me wrong .. i love promoted events.
just not sure all answers lead to promoted events ..
[email protected] onmouseover=window.status=the new revelation technology .. a refreshing change;return(true)"
David Tod Sigafoos ~ SigSolutions