on 06-27-2008 12:42 PM
Hi,
I created a new configuration to a view belonged to BP_HEAD_SEARCH. So, I put to display new fields and changed some properties. The new configuration is linked to the user role.
When I execute the application via browser, it's ok. The new configuration is showed with all modifications.
However, if I use the Test Application option or button in BSP Workbench, the browser shows me the standard configuration.
How can I put a definition, when the Test Application is launched, the system displays the new configuration? Is it in any option in the URL or repository.xml?
Best regards,
André
Hello Andre,
You can hardcode which configuration you want to use by overwriting the method DO_CONFIG_DETERMINATION on the controller level.
The code which will set it is:
CALL METHOD me->set_config_keys
EXPORTING
iv_object_type = 'YOURCONFIGNAME'
iv_propagate_2_children = abap_true.
Best Regards,
Yevgen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yevgen!
This code worked when I run the whole application. It's a great tip!
However if I want to run just the component via test button with t-code BSP_WD_CMPWB, only the standard is executed. I realized that the Z controller isn't executed when the component is launched thru that test button.
The goal is to avoid to navigate the whole application until the component and to do the tests. The test button load directly the component in the browser.
Do you have any idea?
Thanks a lot.
André
Hello Andre,
I know what you mean but i would do testing only by loading the whole application because when you test via test button, the business role, profile, navigation customizing won't be loaded. So if you want to be close to real life, the load of webclient is necessary.
Best Regards,
Yevgen
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.