Solved

Framesets and Roles

Posted on 2001-06-18
10
273 Views
Last Modified: 2013-12-18
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
0
Comment
Question by:Vanita
10 Comments
 
LVL 4

Expert Comment

by:sloeber
ID: 6202900
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
0
 

Author Comment

by:Vanita
ID: 6203232
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.
0
 
LVL 13

Accepted Solution

by:
CRAK earned 50 total points
ID: 6205319
There is no need to specify the frameset in the launch options if you use the databases PostOpen event.

As an alternative, can't you use just one frameset, and compute in the different frames what page/view etc. should be loaded? E.g.:

Frame properties:
  type: Named Element, Page
  formula (press "@"): @If( @UserRoles="[myRole]"; "page1";
  "page2")
0
 
LVL 8

Assisted Solution

by:Jean Marie Geeraerts
Jean Marie Geeraerts earned 50 total points
ID: 6205393
The alternative with loading different pages, only works if both framesets have the same layout, if there's a differeence in frames this won't solve Vanita's problem.
Before the OpenFrameSet command set the target frame to _parent, this will open the new frameset and close the old frameset.
So you're formula would be :
roles:=@UserRoles;
@SetTargetFrame("_parent");
@If(@IsMember("[Public]";roles);@Command([OpenFrameset];"PublicFrame");@Command([OpenFrameset];"MasterTRFrameset"));

Try this and let us know if it does the trick.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 13

Expert Comment

by:CRAK
ID: 6205415
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.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6205429
Sounds like the easiest solution to me CRAK.
0
 
LVL 13

Expert Comment

by:CRAK
ID: 6205707
Thanks!
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 10476221
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
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 10512131
Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now