Sitemap

Amicuk Programming Answers

Get a list of all available Property MetaData through API

-0001-11-30   Views:0

Advertisement

Hello, We have create some custom Property MetaData and assigned them to an new group. Now I need to be able to get a list of all the Property MetaData in this new group using a SAP portal API. But the only code snippets I've found requires at least

Hello,
We have create some custom Property MetaData and assigned them to an new group.
Now I need to be able to get a list of all the Property MetaData in this new group using a SAP portal API.
But the only code snippets I've found requires at least the name if the property metadata.
In other cases a KM IResource object is needed but then you only have the property metadata that's applicable on that IResource.
Is it possible to do what I have in mind?
If so can you point me into the correct direction, or provide a code example.
I've been looking at the IMetaModel, IMetaGroupListIterator, IMetaGroup etc but I've not found any solution.
Thanks a lot!
Kind regards,
Dries

The replay answer
Advertisement
Hi
Try this:     
  IConfigurationAccess icAccess = Configuration.getInstance();
  IWDClientUser wdcu = WDClientUser.getCurrentUser();
   com.sap.security.api.IUser sapUser = wdcu.getSAPUser();
  IUser user = WPUMFactory.getUserFactory().getEP5User(sapUser);
  IConfigClientContext confContext = IConfigClientContext.createContext(user);
IConfigManager icManager = icAccess.getConfigManager(confContext);
  IConfigPlugin icPlugin = icManager.getConfigPlugin(ConfigurationProxy.CFG_PLUGIN_CM_SERVICES_PROPERTIES_METADATA);
IMutableConfigurable[] mcs = icPlugin.getConfigurables();
this mcs object will give you list of all meta data property for this user.
Hope this helps
Regards
Puneet

Go to See the other 4 answers

Get a list of all available Property MetaData through API

Category:DefaultRelease time:-0001-11-30Views:130

Hello, We have create some custom Property MetaData and assigned them to an new group. Now I need to be able to get a list of all the Property MetaData in this new group using a SAP portal API. But the only code snippets I've found requires at least[More]

How to insert a space-bar in the Muse CC master slide page property metadata

Category:DefaultRelease time:2015-10-11Views:130

I'm using the latest version of Muse CC and need to know how to insert a space-bar in the master slide page property metadata page title suffix areaI found it.  If anyone else has this problem press the shift and \ at the same time on a standard wind[More]

Icon for Property Metadata

Category:DefaultRelease time:2015-10-11Views:130

Hello everyone, I want to assign an icon to every Property Metadata that i define. When you create a new property, you can enter property metadata values in csv format. Is it possible to associate an Icon  as well with the MetaData Property ? Its pos[More]

Replace property metadata values with icons

Category:DefaultRelease time:-0001-11-30Views:130

Hello everybody,    We have created a new property metadata with specific allowed values. Then we created a new layout set to list a repository including that metadata. We are wondering if there is a way to replace the specific metadata values in the[More]

Property Metadata don't change when deploying project

Category:DefaultRelease time:-0001-11-30Views:130

Hi, 1.) I used this help http://help.sap.com/saphelp_nw2004s/helpdata/en/44/2dff5a13363f0ae10000000a114a6b/content.htm to create my own commands, uicommands, etc. 2.) I also created manually in: System Administration => System Configuration => Knowl[More]

Exporting Property Metadata

Category:DefaultRelease time:-0001-11-30Views:130

Hi, does anybody know how to export and import property metadata from one system to another? I have created some properties through System Configuration>Content Management>Global Services>Property Metadata>Properties. Now I want to export this[More]

Rename property metadata and keep values

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I tried to rename a property metadata by changing the property id. Then I saw that the values of the changed property will not be shown. Is there a way to keep the values and to change the property id? Regards MarcoHi, i've created a WebDynpro[More]

Adding Property MetaData to Upload screen

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I would like to add some Property Metadata for documents that I upload to the KM. I have managed to created a new tab with all my properties, but I would like to have some of these properties on the first screen of the upload process, meening, ne[More]

Property metadata

Category:DefaultRelease time:-0001-11-30Views:130

In Global services, I've created a group in property metadata. Then I clicked on the property option, and created a property with: Namespace alias-default Type-String Group-"The one I created above" Allowed values csv-a, b, c documents/<The f[More]

Sorting for property metadata

Category:DefaultRelease time:-0001-11-30Views:130

Hi All I have created a custom metadata and KM navigation iview. This custom metadata property is displayed in the iview using layout set. I am getting the option to sort by this property. Is there any way to remove the sorting option for metadata pr[More]

Property Metadata - Properties (Type User Group)

Category:DefaultRelease time:-0001-11-30Views:130

Dear All, I want to have a custom property in KM where i am able pick "User Groups" created in User Administration as value of that property. In KM property we can define property type as "User" but i want is "User Group", Is[More]

Hot
I have a MacBook Pro that is a little over two years old. Soon after I first bought it, some internet issues arose. With the help of the warranty, I took the laptop into a local Beckley's Office Equipment (I don't have an Apple store!) for a discount [More]
My child downloaded some apps to my i phone that he did not need to be and i Need to know WHAT DATE these apps where installed ? They are in the not on this phone folder ???  HELP !iTunes store support might be able to tell you when they were purchas [More]
Hi folks, we have an Exchange 2010 and several DL. We'd like to rewrite the subject of any message sent to a specific DL to ease the filtering of such messages (seen Outlook client is limited in filtering). Any of the rules as described here don't ap [More]
I activated the Intel My WiFi technology on my T510 but the system will not let me enable it. When I click on enable in the My WiFi application it never turns on. I have done everything in the KB article below. http://forum.lenovo.com/t5/T400-T500-an [More]
I have just got my E61 (Code 0530151, FW 1.0610.04.04) from ebay India and last 2 days I have been reading all over the internet about the problems people have faced in upgrading using NSU. I beg someone from Nokia to help me (and I am sure many othe [More]
Hello, I am having problems trying to display an image on a Panel which is attached to a Frame. I can display an Image on the Frame with no difficulty, however nothing appears when I try to draw on the Panel. Hope someone can help me with this. Here [More]
Hi guys, i've been trying to download and install the new version of iTunes for the past 2 days now.  Since 07.30 yesterday morning to be exact.  Yesterday i got to about 99% and then the download crashed completely and wouldn't restart when I tried [More]
I'm doing macro photopgraphy and need to do a lot of focus stacking. I'm trying to determine the best way to stack images in PS, but there seems to be a lot of conflicting information out there. I've sucessfully stacked images using two different met [More]
I pick up Starbucks "Pick of the Week" cards now and then, and I don't always get around to redeeming them until I have 3 or 4 cards. In the past, I've been able to enter a code, enter my password, and then just enter more codes until that iTune [More]
Hi, I need to replace org_organization_Definitions with mtl_parameters for performance reasons.. But as I see that OOD is a view and has some security applied through hr_organization_units, I doubt if I can directly replace OOD with MP as follows: Ol [More]