on 03-29-2007 9:58 AM
Hi,
I want to programmatically retrieve the value of an iView's cache properties.
I was thinking of retrieving this the normal way, using the attributes of the IPcdContext object.
This works for most attributes, for instance:
<b>pcdContext.getAttributes("").get("com.sap.portal.pcm.Title");</b>
however, the attribute names used for cache -- <b>ALLOW_BROWSER</b>, <b>CachingLevel</b>, and <b>ValidityPeriod</b> -- don't seem to return anything...
How can I retrieve these settings?
Thanks in advance!
Hi,
If they are not set from PropertyEditor and left to the default values, then these properties are not set on the PCDObject. So when you retrieve these attributes you get null. The PropertyEditor uses the same logic, but when nothing found, it shows default values. So from PropertyEditor you see them, but from API you get null.
You can inspect this behavior by opening the PCDObject with PCDInspector and check all available attributes. Then you will see that attributes ALLOW_BROWSER, CachingLevel, and ValidityPeriod do not exist.
Greetings,
Praveen Gudapati
[Points are welcome for helpful answers]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.