Solved

Framesets and Roles

Posted on 2001-06-18
10
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

739 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