Start_window passing a file name (OpenInsight 32-bit Specific)
At 11 MAR 2002 07:05:48PM Mark Ford wrote:
In arev I pass a file name to a window using the following catalyst call
Call Catalyst("W","DEFINE_SURVEY", datafile=:RP_SURVEY:"_QUS") where "DEFINE_SURVEY" is the name of the Window and rp_survey is a variable containing the file name to be used by the window.
How can I do this in OI?
Thanks.
At 11 MAR 2002 07:19PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
The short answer is, regretfully, programmatically. What you'd need to do is to use Start_window to get the structure, swap out the file name then create the window using Utility "CREATE". This could all be wrapped into a shell routine called say START_WINDOW_AREV which could be passed the name of the file to use.
World Leaders in all things RevSoft
At 12 MAR 2002 10:40AM Oystein Reigem wrote:
Neat.
At 12 MAR 2002 10:46AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
At 12 MAR 2002 10:52AM Oystein Reigem wrote:
Almost deflected me from my intented path today. So neat I thought I had to find a use for it.
- Oystein -
At 12 MAR 2002 11:07AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Well if you want to write a SENL article don't let us stop you .
World Leaders in all things RevSoft
At 12 MAR 2002 12:24PM Oystein Reigem wrote:
What about a beer column? You send me beers, I review them.
- Oystein -
At 12 MAR 2002 07:53PM Mark Ford wrote:
Sprezzatura,
Thanks for the information. It has saved me a great deal of time trying to replicate an one line AREV statement in OI!!
At 14 MAR 2002 12:17AM Mark Ford wrote:
Thanks for the info. We've got the structure of the window, and reviewed the structure data, but find no reference to the data file attached to the window. How do we swap out the attached data file name with a new data filename?
Thanks.
Mark
At 14 MAR 2002 10:03AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
We apologise. Assuming this is a single table entry form the fix is actually both simpler and more complex at the same time!
We'll outline the steps to the solution.
1) At the create event we need to establish "is a different table needed"
2) If it is we need to modify the window to use that table.
The easiest way to fulfill 1) is to pass a createParam in the original
Start_Window call. At its' simplest this could be simply
Call
Start_Window("MYWINDOW","PARENTWINDOW","NEWTABLE","","")
and in the Create_Event of the window
If Len(CreateParam) Then
WinId=@Window
$Insert Oiwin_Comm_Init
JoinMap@<1, 1]=TableName End
Were we to be providing this as a custom solution it is
more likely that we would provide a promoted event that looked at the createParam
and if it began say "DATAFILE=" we'd do the JoinMap@ logic. Then all
you'd have to do is
Call
Start_Window("MYWINDOW","PARENTWINDOW","DATAFILE=NEWTABLE","","")
and the promoted create event would handle it all for you - thus each new
window wouldn't need to be changed.
World Leaders in all things RevSoft
At 14 MAR 2002 11:03AM Oystein Reigem wrote:
Sprezzatura,
Shouldn't it be
If Len(CreateParam) Then
] WinId=@Window
] $Insert Oiwin_Comm_Init
] TableName=CreateParam
] JoinMap@=TableName
End
Something else: How do you manage to include the entity in your postings? I never found out how to do that. Enclosing them in square brackets didn't work.
Test Test
If this works now Revelation must have fixed it when they upgraded the web site.
- Oystein -
At 14 MAR 2002 12:03PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Ouch - my bad! You are of course right…
As for blank spaces - I just did it in my HTML Editor, added top and tail bracket and pasted!
World Leaders in all things RevSoft
At 14 MAR 2002 01:11PM Oystein Reigem wrote:
Sprezzatura,
So the trick is to go easy on the square brackets? I always each . (As I said I gave up on the entities.) That's tedious work of course. To motivate myself I think of all the neighbouring characters that could be hurt by the sharp points of the angular brackets if I didn't cap them with square ones.
- Oystein, Centre for Humane Information Technology -
At 14 MAR 2002 02:00PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Oystein- Centre for Humane Information Technology
What do those of your colleagues in the Inhumane Information Technology Centre do? Prod people viciously with keyboards?
![]()
World Leaders in all things RevSoft
At 14 MAR 2002 02:11PM Oystein Reigem wrote:
Use humans as keyboards.
At 14 MAR 2002 02:24PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
Sounds fun - had to cut the rest of my response as this is a family forum
World Leaders in all things RevSoft