Linking Forms in OI (OpenInsight Specific)
At 09 AUG 1999 03:37:28PM Don Miller - C3 Inc. wrote:
OK .. OI has a rough limit of 115 controls on a single form. Even that gets sticky if you have enough text, etc. Is there a more-or-less cookbok way of linking forms together, assuming that they all use the same table and key? If I can create a generalized way of doing this, I'll post the results for all to use.
Don Miller
C3 Inc.
At 09 AUG 1999 04:28PM Mike Ruane, WinWin Solutions Inc. wrote:
Don-
A generic way would be to :
Name your windows:
win1, win2, win3…etc
Name all your key controls the same on different forms.
Create a button with a script then Gets the Key's text property, sends a write event to the current window, calls the next window, passing the key as a create param. On the Create Event of the called window set the text property of the Key control with the Create Param, if there is one, and Send-Event a READ to the window.
Find out the window you're on by examining CtrlEntID1, '.'
Maybe have a control table with Window Names, key Control Names, etc.
There are a lot of possibilities, but the above is at least an idea…
Hope it helps-
Mike Ruane
WinWin Solutions Inc.
WWW.WinWinSol.COom
At 09 AUG 1999 09:14PM Don Bakke wrote:
Don,
As Mike said, there are many approaches you can take with this. Here are two methods we've used:
1. Use an MDI Frame that launches different MDI Child windows. Each MDI Child has different fields that comprise the whole table. If you want to get real fancy, size the MDI Child windows so that their borders are hidden behind the MDI Client. You can then add tabs onto the MDI Frame that switch you between MDI Child windows. The effect is similar to a tabbed dialog box, albeit a little slower if you only launch your MDI Child windows as they are needed.
2. Make good use of dialog boxes that are launched from a primary window. Each dialog is databound to the same table and you pass in the key of the current record and have the record automatically read. This won't allow you to switch back and forth between the two windows however. This approach is good for those fields that are not updated or viewed very often. Make sure you check the "Ignore Self-Locks" option to make this work.