Limiting access in windows (forms) (OpenInsight 32-bit Specific)
At 17 DEC 2003 02:45:57PM James Jenka wrote:
Some users or workstations (based on the workstation IP address) need to have reduced rights in particular windows(forms).
For situations where there should be no access, I would like the window not to display at all. I assume that some property can be set to abort the window in the CREATE event. Any ideas?
For situations where there should be read only access, I am planning on disabling all of the controls except the key and navigation buttons? Any ideas on a better way to do this?
THANKS for any input you may have.
At 17 DEC 2003 04:44PM Donald Bakke wrote:
James,
You have already described how to basically accomplish what you want. Just, make your windows invisible and do all your window accessibility logic in the CREATE event. You just have to come up with the logic to track access rights. We have this built into our FrameWorks product. It allows full access, no access, or read-only access to each window.
At 18 DEC 2003 03:55AM [email protected] wrote:
James
As already mentioned you have just about done the coding yourself ..
1) Make sure the windows VISIBLE property is unchecked
2) Create a table/form for entry of IP addresses and rights
(i would use user login id instead as it makes the systemmore flexible)3) In create event for the 'protected' window, simply read the
record created in #2 and either make the window propertyvisible true or close the window .. possibly with amessageFor the best benefit a 'promoted' event would work well here. That way ALL windows will be tested whether they need to be or not. Then simply add a record to your 'rights table' (#2) and the window function changes. Easy Peasy
[email protected] onmouseover=window.status=the new revelation technology .. a refreshing change;return(true)"
David Tod Sigafoos ~ SigSolutions
Phone: 971-570-2005
OS: Win2k sp2 (5.00.2195)
OI: 7.0