cancel
Showing results for 
Search instead for 
Did you mean: 

Portal integration iView properties

Former Member
0 Kudos

Hello,

I want to implement an iView for the Enterprise Portal using WebDynpro for Java. I now try to figure out, how to add custom iView properties. I know this from the portal components where you could use the component or service profile to add custom properties to iViews and services using the portalapp.xml file. The only thing I found so far on WebDynpro is the Application parameters property. But this is insufficient. I want to have one field for each parameter (like I did it before without WebDynpro).

In the WebDynpro for Java Developer guide (http://help.sap.com/saphelp_erp2005/helpdata/en/42/df1ace600c6ffde10000000a1553f6/content.htm) It is said "You can define application specific properties, which could be used for role-based customization and/or end-user based personalization. ...". Yes, this seems to be exactly what I want to do. Then there is an example with custom property categories. This is exactly what I want to do. The example is taken from a "NetWeaver Music Box" application, which I could not find anywhere. After that there is a section "Accessing Application Specific Properties" which starts with "Once application specific properties are defined ..." explaining how to read the defined Properties using the classes IViewPersonalization, IViewsPersonalizationFactory and IViewPropertyWrapper. This too is very interesting and important for me, but I am missing the part which explains how to define application specific properties.

Does anyone know how to define application specific properties?

Does anyone know where I can find the NetWeaver Music Box example application?

Does anyone know where I can find the IViewPersonalization etc. classes (JavaDocs, sources, ...)?

Kind regards, Oliver

PS: I am using NetWeaver 2004s SPS 8

Accepted Solutions (1)

Accepted Solutions (1)

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi Oliver,

There is no way, in 2004s, to create an application parameter so that appears in the property editor and is personalizable. There are internal ways, that were available to the ERP developers, and for some reason this was referred to in the documentation for which you supplied a link. (Notice that there was no explanation on how to do this, because the method to do this is not public.)

In the next major release of NetWeaver, there will be a way to add Application-Level properties, as you want. But for now, the Application Parameter property is the only way.

Hope this helps (or clarifies).

Daniel

Former Member
0 Kudos

Hello again,

I found some time to work on this problem again. And I found a solution. The book I mentioned before ("Praxisbuch Web Dynpro for Java") contains a chapter on this. The Music Box Example gives a solution to this problem. I adopted the code and everything works fine. I now can define custom properties for my WebDynpro iViews like I could when using HTMLB and the portalapp.xml.

As it is explained in the book, I will not write down the solution here. You can find it in chapter 8.5.2, but you will need to download the sourcecode, too. It's not explained very good and so it took me some time to figure out, how it realy works. But I'm quite satisfied with this solution.

Kind regards, Oliver

Answers (2)

Answers (2)

Former Member
0 Kudos

Answered with my previous post.

Message was edited by:

Oliver Friedrich

MarkusKlein
Active Contributor
0 Kudos

Hello Oliver,

did you find a solution for your problem?

cheers,

Markus

Former Member
0 Kudos

Hello,

I have not solved this problem so far, but I found the Music Box Example in the book "Maximizing Web Dynpro for Java" (german: "Praxisbuch Web Dynpro for Java"). The source code is available on the books page in the internet. I am not sure yet, if this example realy solves the personalization problem. If I find a solution I will post it here.

Regards, Oliver

Former Member
0 Kudos

I'm facing the same problem. Anyone?