Quantcast
Channel: SCN : Discussion List - SAP Enterprise Portal : Administration and Development
Viewing all articles
Browse latest Browse all 2686

how to get cm_state property value

$
0
0

Hi,

 

In a resource list filter I want to filter resources based on their publishing state.

To do this I use the following code to check the value of the property cm_state:

 

...

IPropertyName pn_state=new PropertyName("http://sappportals.com/xmlns/cm","state");

IProperty prop_state=resource.getProperty(pn_state);

String state=prop_state.getStringValue();

...

 

What I expect to get is the value for the cm_state property. However, it seems that I am getting the label for this value, because the returned value differs according to portal language (e.g. "Released" for english and "Vrijgegeven" for dutch). Other metadata properties I tried with the above code do return the value for the property.

How can I get the value for this property, instead of the label?

 

Thanks,

Johan


Viewing all articles
Browse latest Browse all 2686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>