Skip to Content
0
Former Member
Dec 07, 2006 at 01:17 PM

change property value with IPortalComponentProfile

32 Views

Hello,

I'm trying to change the property "com.sap.portal.activityreport.MonitorUsers" to "true" for all our pages, but it's not working. I get all the pages out of our roles and try to change them within the following lines:

IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
IPortalComponentContext context =request.getComponentContext(<pageid>);

IPortalComponentProfile prof = context.getProfile();
prof.setProperty("com.sap.portal.activityreport.MonitorUsers","true");
prof.store();

The value doesn't change and there's no error raising up.

We are using EP 6 SP 15.

Perhaps anyone can give me a hint what I'm doing wrong?

Thanks for your help!

Best Regards,

Cornelia