Skip to Content
0
Former Member
Sep 19, 2008 at 03:37 PM

Portal Application Java / IView : Setting a property

39 Views

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.