Link to home
Start Free TrialLog in
Avatar of Vanita
Vanita

asked on

Framesets and Roles

I have a role in the db ACL. If is user is assigned the role, on db open, Frame1 is opened. If useris not assigned role Frame 2 is opened. This is working fine however, when I hit ECS from the Frame1 or Frame2 (to close the db), the second frame opens.
roles:=@UserRoles;

@If(@IsMember("[Public]";roles);@Command([OpenFrameset];"PublicFrame");@Command([OpenFrameset];"MasterTRFrameset"))

How can I can close the DB from the frame itself without opening the other frame?? Please help.

Thanks
Avatar of sloeber
sloeber
Flag of Belgium image

where did you specify your code ?
Because in the database launch options you dont have the possibility to use your formula.
Because, I think that if you click escape, he doesn't return the other frameset but he return the place where you start from (where your formula was written)
What are your notes launch options ?


Greets,
Sloeber
Avatar of Vanita
Vanita

ASKER

The code is in the database postopen, and the db launch options are to open the Frameset1. In this case, after Frameset1 is opened and I hit ECS, it closes the DB. However if Frameset2 is opened, this is when I hit ECS and goes to Frameset1.
However if I change the launch option to open Frameset2, it happens the other way round.
ASKER CERTIFIED SOLUTION
Avatar of CRAK
CRAK
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have to agree with you, but instead of choosing between page1 and -2, you could load frameset1 and 2 IN the original frameset (nesting).
Your base frameset could then contain only one (computed) frame, and frameset1 and -2 could differ.
I'm not sure if I would choose that option, but it IS an alternative way to meet Vanitas wishes.
Sounds like the easiest solution to me CRAK.
Thanks!
Vanita,
No comment has been added lately (984 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: split points between CRAK http:#6205319 and jerrith http:#6205393
Please leave any comments here within 4 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Zvonko
EE Cleanup Volunteer