on 05-17-2005 1:37 PM
Hi All!
I am developing af portal application in webdynpro.
i would like to make some properties which can be changed in the iview properties. with normal portal applications this is possible through the portalapp.xml
or the default.properties depending on the version.
Also it is possible to define if the user can change these values under the iview tray.
is this possible in webdynpro to, and how should i define these properties.
Help is much apreciated.
Regards
Ronni Hostrup
Hi Ronni
It is not possible to create properties in webdynpro where you can modify in portal.
Rather you can develop some abstract portal components where you can specify properties which can be changed/modified in portal
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ronni
If you want to have some properties for webdynpro application then you can create a properties file in the src/packages folder.
Remember that you need to name the file with xxx.properties.
when you deploy the application, you can go to visual admin and go to Server/services/configuration adapter/webdynpro
Expand the vendor name you created, There you can see the properties file deployed. Now you can change the properties here.
Kishore
Hi Ronni,
i have the same problem. What do you exactly? What do you mean with "application parameter"?
Best regards,
Patrick
Edit: i know what you mean. It is the URL Parameter in the WebDynpro iView. I cant use this, because i have a PCD path as Parameter. it contains "/" and ":" and must be encoded and decoded.
Message was edited by: Patrick Höfer
Hi Patrick
At the end of the address line , you can add your own variable, eg. staus=33&month=jabuary.
inside the application you can get theese value with by calling this method:
AntalMFrem = Integer.parseInt(WDWebContextAdapter.getWebContextAdapter().getRequestParameter("maaned"));
where maaned is the variable name i used to the parameter.
when you have made an webdynpro iview you can edit the object, an then add these parameters - it is one of the options in the properties of the view.
when you test your application you can add the parameters like this:
http://was640:50200/webdynpro/dispatcher/local/LedigeKurser/LedigeKurserApp?myVar=myvalue
Hope this helps you solve the problem
Best regards
Ronni Hostrup
Hey NagaKishore,
Can you please elaborate your answer regarding the properties file in the src/packages folder:
1. You've mentioned "Expand the vendor name you created...". Where do I create this vendor exactly?
2. Can you please show me an example properties file? Should it have a certain header/statements like xml or can it be a regular properties file like this:
roy.test.p1="hello"
roy.test.p2="world"
....
10X,
Roy
Message was edited by: Roy Cohen
User | Count |
---|---|
74 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.