on 10-26-2010 5:48 AM
Hello All,
I have a requirement, where the SAP application attribute "WDCONFIGURATIONID" need to set dynamically.
Now, how can this attribute be accessed in the controller/window/view methods? If so how?
Kindly assist.
Thank you.
Regards,
Sharath
Hi Sharath,
You can get the current application configuration by using the IF_WD_APPLICATION interface and method GET_CONFIGURATION_ID - but there is no interface (as far as I know) to modify the current application configuration id.
However you can dynamically apply a configuration to a given component.
Use the IF_WD_COMPONENT method - GET_PERSONALIZATION_MANAGER (you even have this in the WD code wizard)
to get access to the personalisation interface
and then you can call method LOAD_CONFIG_BY_KEY to load a new configuration.
Generally though I'd question the need to dynamically assign different configuration ids - what is it you are trying to achieve? Could you consider instead using the FPM framework and using configuration variants? The variant can be decided by one of your FPM components and this variant id used to change which UIBBs (or the configuration ids of them) are called.
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
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.