on 05-18-2006 7:57 AM
Hello,
I have a DynPro application called "CommitteesApp".
When I load it the component controller intializes parameters from a properties file located on server using this code:
WDDeployableObjectPart App = wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart();
IWDConfiguration Configprop = WDConfiguration.getConfigurationByName(App, "Committees");
wdContext.currentContextElement().setROLE_URL(Configprop.getStringEntry("ROLE_URL"));
So far so good.
Now, I've created another application based on the same component called "ProApp". I would like this application to have the getStringEntry "ROLE_URL" as well. The problem is that this properties file is attached on the WAS to the first application so the new application can't "see" it. What do I need to do in order for it to see it? Do I need to create a seperate properites file just for the new app? If yes, than why? and wouldn't it destroy the former properties file?
Hi,
where have you put your config file? You can use your config file across applications if you put it inside your component folder.
Go to Navigator view in NWDS-><your project>->src->configuration->. Put your file here.
Now use this code:
WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();
try{
IWDConfiguration c = WDConfiguration.getConfigurationByName(d,"<whatever>");
}
catch(WDConfigurationNotFoundException ex){
}
catch(WDInvalidConfigParameterException iex){
}
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty
Message was edited by: Satyajit Chakraborty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.