General information
Category:
The Mere Mortals Framework
Ok, I'm working with Tony and trying to implement this suggestion. However, I've taken an approach that isn't working properly. Probably due to having the order of operations confused.
I have a new form (projectform) that's a subclass of cbizobjmaintenanceform. On the second page, I dropped an instance of ccontainer onto it and put ctextboxl controls inside it. Works great. I have users in groups and have security turned on. The container is the secured object. Now, here's where I think I'm getting into trouble. My test user belongs to a group whose access to the container is readonly, since this is the default desired behavior. To get around that for the few projects the person should have access to, in the activate of the page I've put the following:
if goapp.osecuritymgr.iusrgroupid=v_projects.imanager_id or ;
goapp.osecuritymgr.iusrgroupid=v_projects.iengineer_id
this.ccontainer1.setaccessfull()
endif
in an attempt to override the security model. The code executes, but it doen't make the textboxes accessible. I'm guessing it's because something else is being triggered that is resetting the default security. I've tried tracing thru the code of the form, but it's very hard to follow in the debug window and the event tracker was somewhat worse.
I really dislike putting code in the activate method, but I'm not sure where else to put it that will guarantee its' execution.
Any advice or suggestions on what/where to look at settings would be deeply appreciated.
tia!
laurisa
>Tony,
>
>I answered your private e-mail, but I'll answer it here publicly for the benefit of others.
>
>
>
>Although the control's security is set at instantiation by default, you can still call a control's SetAccessReadOnly() and SetAccessFull() methods afterwards. I recommend adding your controls to a container and calling the container's SetAccessReadOnly() and SetAccessFull() methods.
>
>Regards,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only