on 09-14-2004 5:53 PM
I have a bsp page (mcv) that I use in 2 modes. i want to specify the mode via a parameter that i set when i call the page:
navigation->next_page('nav_request').
navigation->set_parameter( name = 'mode' value = '1').
Now, I would like to initialize some values in do_init according to the mode, but unfortunately, the parameters are still empty in do_init and are only filled in do_request, right?
i tried to like this:
lv_mode = request->get_form_field('mode').
but lv_mode is still ' '.
Message was edited by: Daniel Humberg
Hi Daniel,
for parameters like a "mode" you are describing, I use an attribute in the application class. Instead of passing the mode variable on from one page to the next, I just set the application attribute and access this value from wherever I need it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.