View Selection & Variables

Hi Ppl

Im updating a e-learning notes client course that my company created last year.

The way the course is structured is that on the splash page there are 4 regions to choose from. Then once the required region is selected they go to the role selection page.

Here they selected their desired role from about 9 roles. After selecting their role, they are taken to the frameset with the content specified for that role.

At the moment we have only 2 different regions with the 9 roles, which equals 18 views, 18 framesets and etc. What im trying to do is reduce the amount of views and frameset needed, by passing variables from each selection and using those variables in the view selection.

Each page has 2 fields specifying Region and Role Selection by clicking the appropriate checkboxes.

Here are snippets of the code i am using in each instance:

Region Selection

@SetEnvironment(“cs”;“csAmericas”);

@Command([OpenFrameset];“Role Selection”);

@Command([ViewShowSearchBar];“0”);

@Command([OpenFrameset];“splash”);

@Command([FileCloseWindow])

Role Selection

@SetEnvironment(“rs”;“rsEE”);

@Command([OpenFrameset];“Frameset Content”);

@Command([ViewShowSearchBar];“0”);

@Command([OpenFrameset];“Role Selection”);

@PostedCommand([FileCloseWindow])

View Selection Formula

varcs:=@Environment(“cs”);

varrs:=@Environment(“rs”);

SELECT Country=varcs & Jobrole=varrs

I cant get this to work properly, as view selection doesnt like the use of @environment. Any ideas or directions no how i would go about this?

Subject: View Selection & Variables

You could set up the views as single category, embedded in a form, and have the first column, categorised, as the environment variable you wantSecondly, you could have a single frameset and used formulae to compute what goes in each frame

Between the two of thise, you should be able to customise each frame’s content to be exactly wehat you weant with one frameset, one view and one form

Subject: View Selection & Variables

The environment variable method will not work because the server computes the selection formula - and will be looking at its own environment variables.

For this type of problem you would be better to use a solution whereby you have a view containing all documents and categorised by all possible (18) types of selection.

Then use this view url command to generate the frame contents:

?RestrictToCategory=

where is the name of your view and is generated from the user’s selections in such a way as to match the categories in your all-documents view.