on 01-26-2006 3:06 PM
Hello,
I remember that once I've read at the NWDS help that I can create dynpro properties which can be configured on the WAS's Configuration Adapter serviceand can be retreived when the dynpro application loads. I need to use it now but can't find the explanation and code example. Can someone please show me how to do it?
Roy
Hi Roy,
Are you asking about reading a configuration/properties file from WD?
If so, read further otherwise kindly ignore this post and can you exaplain in more detail?
If you had installed NWDS, in the help docs you can find the following content. It will be in your localhost.
Thanks and regards
RK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Radha,
Thank you for the response.
Let me elaborate this a little bit: I have a certain value that I would like DynPro to read when the component inisializes. This value changes from My development environment and the production one (suppose a certain link inside the portal). Now, if I'll use properties file I'll have to modify the file with the relevant value when I work on development and production. If I will have this value on the WAS, I will only need to configure it once on the development WAS and the production WAS. Assuming the value has the same name no modification what so ever needs to be done when moving the application fron development to production. Now, I remember I saw such an option for DynPro apps but I can't remember where... If you or someonwe else could please guide me through this feature he/she will be more than welcome...
Roy
Hi Roy,
1. create a .properties file with the key value pair.
2. Put it in src/configurations/application/<app name>
3.
WDDeployableObjectPart App = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
IWDConfiguration Configprop = WDConfiguration.getConfigurationByName (App,property file name );
// get the string value of the property.
String value = Configprop.getStringEntry ("<key of the property sheet>");
To chaneg the property value outside the application,
Goto configuration adapter -> WEbdynpro -> the app name. Under that you will find the property file
You can edit the file and restart the server.
Regards
Bharathwaj
Hello again,
I apologize, it's working, my mistake.
The only problem is that a value change does require a restart. Another solution is simply delete the node from the configuration adapter and redeploy the application. In any case thank you for the help.
By the way, this solution is presented at the Quiz tutorial, now I remember...
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.