on 07-08-2010 3:57 PM
Hi all greaters
I know how manipulate a "properties" file, my problem is how maintain and where locate it!
I haven't KM, so my question is?
If i put the "prop" file into the project, at runtime i can modify and update it!
If yes, how?
If not, some suggestion?
I wanna avoid to create a stupid JAVA DICTIONARY TABLE.
Thank in advance Roberto.
Hi Roberto,
I am not aware of 7.0 but in CE7.1 you can change the values in the property files in Web Dynpro applications at run-time.
You can do that in NWA->Configuration Management->Infrastructure->Application Modules
Search for Your Web Dynpro in the table and select the row. Below the table select the 'Web Dynpro Properties' tab. This will list the properties files in your Web Dynpro application. Select the property file you want to change. Below that table you'll see all the properties in that file and the input field filled with the values. You can change them there.
Regards,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Roberto,
In one of our project on CE7.1 we had a Web Dynpro application which had link to open a document stored on broadvision portal.
We created a property file(under configuration) in our Web Dynpro project and enter this URL as a value for this property.
After some time( actually after a couple of years after go-live) they moved thst document to some other location and hence URL was changed. We could just go to http://<portal url>:port/nwa and accessed Configuration Management->Infrastructure->Application Modules. Searched for Our Web Dynpro module. Clicked Web Dynpro properties and select the property file configuration. It gives the list of properties and values. There we could change the value to the new URL.
Regards,
Ajay
P.S. If you are using NW04s/7.0, check whether this feature is vaialble in NWA. We were using CE7.1
Hi Ajay,
i am also having the same requirement,
i saved some properties in the property file and accessing it from the web dynpro,
now i want to change the contents of the property file so i opened Application Modules and changed the properties
but when i run the application it gives the old values and not the new values.
I restarted the server then also the changes are not reflected...
I am accessing the property file as resource file as per the code below
IWDResourceHandler resourceHandlerForTree = WDResourceHandler.createResourceHandlerForCurrentSession();
resourceHandlerForTree.loadResourceBundle("resources.colors",this.getClass().getClassLoader());
String color1 = resourceHandlerForTree.getString("color1");
Is there is any other way to access the property file or am i missing something?
Regards,
Amol
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.