Skip to Content
author's profile photo Former Member
Former Member

custom personalization of iview

Hello.

I am new to Enterprise Portal.

I am using EP 6 SP6 and Netweaver Developer Studio 2.0.7.

I am working on an iView that will display some data.

There should be the option to personalize the iView,

which means, in edit mode there have to be some fields

where you can change the values, e.g. a data source.

If the users clicks on the available save button, the

value is stored and from now used for the user to

display values.

I read a lot on this, but I need a hint to push me to the right direction.

There is the possibility to use IPortalComponentProfile to get and store data. But as I understand it, these

values are defined in portalapp.xml (correct?) and

can only be change globally for all users (correct?).

So I created a bean to store and retrieve data, which is

bound to the IPortalComponentRequest and IPortalComponentContext object and set by putValue. I fear that these values are only available

during the session and are gone after closing the

session (correct?).

In this scenario I used a doEdit method to retrieve data.

I put the values in the IPortalComponentContext because

some other iViews need the data, too.

I found this link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/custom personalization dialogs.htm

which says there is a standard personalization dialog, in

contrast to the custom dialog.

Does standard mean using the Profile and custom mean

using the doEdit? Or do I need a doEdit in any case?

Do I have to add a component to the deployment descriptor

if I use doEdit?

Can anyone make this a it more clear? thanks a lot

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 07, 2004 at 04:40 PM

    Hi Hans,

    if you reward some points to Dominik and if you promise to behave brave in the future, for sure somebody will help you (maybe even I will)... 😊 Just go here Where to find deployed application? and press the yellow star button.

    Best regards

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Hans,

      you're welcome. No problem at all.

      About your questions:

      > There is the possibility to use

      > IPortalComponentProfile to get and store data. But

      > But as I understand it, these values are defined

      > in portalapp.xml (correct?)

      There they are <i>defined</i>, yes. So you define a property of the profile in portalapp.xml, that primarily means it's existence.

      > can only be change globally for all users (correct?).

      This depends. For each property of the profile you can define if this is a "per component" or a "per component and user" property. This is done by the sub-property "personalization", see Portal Runtime doc https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/portal runtime - release 6.0 page 30-32.

      > I fear that these values are only available

      > during the session and are gone after closing the

      > session (correct?).

      Instead of using beans and trying them to persist you can use "primitive" profile properties (in fact Strings, freely editable or per select, see Portal Runtime Doc), they are persisted. Per component or per component and per user, depending on the sub-property personalization, see above.

      > put the values in the IPortalComponentContext

      > because some other iViews need the data, too.

      From the IPortalComponentContext you can access the profile, so that seems to be superfluous.

      > Does standard mean using the Profile and custom mean

      > using the doEdit? Or do I need a doEdit in any case?

      It means that if you set personalization to dialog, this personalization dialog is provided by standard. The personalizable properties are rendered for you, you don't have to implement this dialog. But alternatively you <i>can</i> create a custom personalization dialog.

      > Do I have to add a component to the deployment

      > descriptor if I use doEdit?

      For creating a custom personalization dialog, see example source code for the document "Custom Personalization Dialogs" and PersonalizationClass and EP6 including the referenced links.

      Hope it helps

      Detlev

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.