cancel
Showing results for 
Search instead for 
Did you mean: 

Reading cache values from iView properties

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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]

Answers (0)