cancel
Showing results for 
Search instead for 
Did you mean: 

How to maintain properties in Web Dynpro

Former Member
0 Kudos

Hi,

In EP5 we can maintain all the properties .properties file. So we can change this property value after creating iView in portal.

How can we maintain where to maintain these properties in Web Dynpro.

ex: I have SMTP address which I am using in my Controller class. I want to change this adress later time so where I need to maintain in Web Dynpro.

Thanks

Tats

Accepted Solutions (1)

Accepted Solutions (1)

roberto_tagliento
Active Contributor
0 Kudos

Double CLICK on application.

In its perspective, tab "Application properties", add here properties that you wish.

By code:

String PROP = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("PROP_NAME").getValue();

Message was edited by: Roberto Tagliento

Former Member
0 Kudos

Hi Roberto,

Thanks for your reply.

I could able to get values in my Web Dynpro Controller class.

I have created iView in portal for this Web Dynpro application. Where can I find this property which I am maitaining Web Dynpro application.

If I want to modify my value how it is possible.

Thanks

Tats

roberto_tagliento
Active Contributor
0 Kudos

Ooooo 😛 sorry now i understood your wish.

Nice task!

Hmmmmm, hope that SAP thinked something like that.

If yes, must be available in some portal package the right object to use.

Searching.... i am looking around.

roberto_tagliento
Active Contributor
0 Kudos

http://help.sap.com/saphelp_nw2004s/helpdata/en/44/7026f32007053de10000000a1553f6/frameset.htm

In this example work with IAdminBase object:

IAdminBase myAdmin = (IAdminBase)iCtx.lookup(myObject);

but i guess must be the same also other object, like "iView", "pages",....

Former Member
0 Kudos

Hi Roberto,

I think you are not clear at my query.

In EP5 we have an option to edit all the properties values in portal after creating iView.

In Web Dynpro we are creating properties in application. How can we modify these properties value in portal after creating iView for this Web Dynpro.

Thanks

Tats

roberto_tagliento
Active Contributor
0 Kudos

Above i link you the help where teach how access to PCD (Portal Content Directory, all portal object like iView) via Java.

I never done something like that, in your project you must had PORTAL JAR files and use them.

Sorry haven't a ready source that do that, and haven't time to do (for play) now.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Tats,

If I understand you correctly, you want to be able to configure properties created in WD from the portal Property Editor.

In 2004, there is no such integration. You run your Web Dynpro application in a black box.

In 2004s, you can set properties in the Application Parameters property of a WD iView. Your WD application can then retrieve them.

In the next release of NetWeaver, you will see the WD properties in the property editor.

Hope this helps.

Daniel

Answers (1)

Answers (1)

Former Member
0 Kudos

Tatayya,

Take a look at:

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm">Configuration Service</a>

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/39dcb1e5-0601-0010-51b2-c522e518213e">Web Dynpro Application: Configuration, Deployment and Execution</a>

Configurations create this way can be edited after application deployment using VisualAdmin.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net