Solved

Framesets and Roles

Posted on 2001-06-18
10
277 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Suggested Solutions

Title # Comments Views Activity
WCAG audit tools 1 90
Problem to ToolkitScriptManager 2 67
Fixed div within Bootstrap carousel item 11 61
.php tree directory? 5 83
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to dynamically set the form action using jQuery.

856 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