Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Portal Application Java / IView : Setting a property

Hi!

Please help me to solve this problem!

I have got an IView with a Height of 200; now i have to modify this value with a Portal Application.

Here comes the code....:

if (request.getComponentContext().getProfile().isPersonalizableProperty("com.sap.portal.iview.Height")){

System.err.println("Original Value "+request.getComponentContext().getProfile().getProperty("com.sap.portal.iview.Height"));

System.err.println("Setting");

request.getComponentContext().getProfile().setProperty("com.sap.portal.iview.Height","100");

System.err.println("Checkpoint");

request.getComponentContext().getProfile().store();

System.err.println("New Value "+request.getComponentContext().getProfile().getProperty("com.sap.portal.iview.Height"));

}

}

Now:

1)Deploy

2)IView Preview

LOG :

Orignal Value 200

Setting

Checkpoint

New Value 200

The new value should be 100....not 200.....

Where is the mistake?!???!

Thanks.

replied

Hello Fabio,

You need to include the related jar files so that you can define them. The required jars are:

com.sap.portal.pcm.admin.apiservice_api.jar

com.sap.portal.pcd.glservice_api.jar

Let me know if you want me to email you the jar fils.

Thanks.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question