Hi,
IPortalComponentProfile Object can be used with beans to store values within the bean.
It is my understanding the scope of the bean would need to be APPLICATION, the persistancy is throughout the liftime of the portal. Though other users do not have access to this bean, the user having access to this bean can log of shut down his computer and get back later and access values stored within this Bean. Am I right in this thought.
If the bean is stored in the profile, how(as a file...) and where is it stored.
We have been thinking of Developing a custom application, where there would be a couple of input fields on the Initial Screen. The thought is to allow the user to fill in value in the fields and run their reports. When the user logs of and later next day logs back onto the application should be able to have the Initial Page Input Field values he had filled previously. Is this possible and would I store the bean within the profile to achieve the same.
Has anyone come across any documentation that explains how one would use beans with this IPortalComponentProfile Object.
Please advice any thought would be appreciated.
~NAC
Hi NAC,
> IPortalComponentProfile Object can be used
> with beans to store values within the bean.
The sentence is not very clear. "store values within the bean" means storing values within beans. If you want to store something persistently, you may think of storing it within IPortalComponentProfile. But there you can - persistantly - only store string (mybe your values of a bean?).
> the scope of the bean would need to be APPLICATION
This is right for "putValue()", also see http://devnetmedia.sap.com/html/submitted_docs/htmlbManuals/HTMLB-UsageofBeans.html
Anyhow, putValue() is deprecated, see http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/runtime/com/sapportals/portal/prt/component/IPortalComponentProfile.html#putValue(java.lang.String,%20java.lang.Object)
Using IPortalComponentContext is not recommended, see note 802015 and is not persistent anyway.
What stays?
Define your properties within portalapp.xml, set personalization to dialog or no-dialog (with dialog you could use the personalization capabilities from portal standard) and use <i>setProperty(...)</i> and <i>store()</i>.
With this, you can achieve what you want.
Hope it helps
Detlev
PS: It would be kind if you would be a bit more responsive and say if after an answer a problem persists or, if not, that you mark the question as answered and reward points.
This holds for the following threads: Viewing Portal Runtime Error Log and Portal Runtime Error: 0 >= 0.
You can also reward <i>some</i> points for <i>some</i> help, even if it does not solve the issue. For example here: Connecting to BW System
Add a comment