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?