Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IMetaContext is always null

Hi,

I need to develop a metadata extension to show categories, this categories are folders in KM. If I use the service user I have not problems:

ResourceContext rc = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));

But I need to use the current user context to read km structure.

The IMetaContext has a method to get the current context, but I always get null in my code.

public IMetaValueList getAllowedValues(
		IMetaName metaName,
		IMetaContext metaContext)

metaContext.getResourceContext()

Any idea? Can I do that?

Thanks in advance...

Former Member
Not what you were looking for? View more on this topic or Ask a question