Creating KM Property Filter

Hi,
I have created a custom property filter  which adds a new custom property to property map.
I have 2 questions:
1. Where can I see the custom property and its value? Is it virtual?
2. Is this custom property (testProperty) indexable? If yes, do I need to follow any additional steps?
Below is my code in filter() method:
IPropertyMap map = this.predecessorFilter.filter();
IPropertyName testProperty = new PropertyName(IWcmConst.SAP_WCM_NAMESPACE, "testProperty");
if (map.containsProperty(testProperty)) {
               IMutableProperty mutableProperty = map.get(testProperty).getMutable();
               mutableProperty.setStringValue("Enforced by Filter");
               IMutablePropertyMap mutablePropertyMap = map.getMutable();
               mutablePropertyMap.put(mutableProperty);
               return mutablePropertyMap;
          } else {
               IMutableProperty testProp = new Property(testProperty, "TEST_PROPERTY_VALUE").getMutable();     
               //testProp.setStringValue("HelloUpdated");
               IMutablePropertyMap mutableMap = map.getMutable();
               mutableMap.put(testProp);
               return mutableMap;

>
aditya srinivasa wrote:
> Hi,
>
> I have created a custom property filter  which adds a new custom property to property map.
> I have 2 questions:
> 1. Where can I see the custom property and its value? Is it virtual?
> 2. Is this custom property (testProperty) indexable? If yes, do I need to follow any additional steps?
>
> Below is my code in filter() method:
>
> IPropertyMap map = this.predecessorFilter.filter();
> IPropertyName testProperty = new PropertyName(IWcmConst.SAP_WCM_NAMESPACE, "testProperty");
> if (map.containsProperty(testProperty)) {
>                IMutableProperty mutableProperty = map.get(testProperty).getMutable();
>                mutableProperty.setStringValue("Enforced by Filter");
>                IMutablePropertyMap mutablePropertyMap = map.getMutable();
>                mutablePropertyMap.put(mutableProperty);
>      
>                return mutablePropertyMap;
>           } else {
>                IMutableProperty testProp = new Property(testProperty, "TEST_PROPERTY_VALUE").getMutable();     
>                //testProp.setStringValue("HelloUpdated");
>                IMutablePropertyMap mutableMap = map.getMutable();
>                mutableMap.put(testProp);
>      
>                return mutableMap;
>           }
Hi,
To make a Property indexable you must firstly create it like a "template" in System Administration -> System Configuration -> Knowledge Management -> Content Management -> Global Services -> Property Metadata -> Properties. In here you have to activate the setting "Indexable" for the new created property. Furthermore if you now assign such a property to a resource by code, it will be also visible in standard KM UI.

Similar Messages

  • Create a resource filter and add/redefine a property value to a resource?

    Hello,
    I need an advice how to create a resource filter and add a property to a resource. I already created the project and after creating myfilter.java automatically by using the "Service, filter and scheduler taks generation" in my developer studio, there's a filter() method where the filtering has to be implemented. Here I need an example how to read the resource path and add or redefine a property value. (In this case the property value depends on the resource path) So I also need to know, how to get the ressource path. Can anybody please support me with some example code?
    Thanks in advance
    Cheers
    Steffen

    Hi Jaiswin,
    I need to enter 3 formula:
    Setup
    Production
    Teardown
    In PP this is standard but in PP-PI Resource I only see one field 'other formula'.
    How do I enter more then one formula?
    Can it be done in PP-PI?
    Thanks
    Stuart

  • Can new PWA views be created whereby a filter can be set and associate to the view by default? (Project Server 2013 ONLINE)

    My main question is: Can new PWA views be created whereby a filter for that view can be set, and associate to the view by default? (Project Server 2013 ONLINE)? and can I have a filter set to filter on person logged on to...
    In previous versions of Project Server, when CREATING a PWA view, we were able to apply/ define a filter for that view.  Does not seem like it is the case in Project Server 2013 Online.  And if I remember, we could also use the URL Guid_view_id. 
    Please confirm; and / or tell me how-to.
    What I was hoping to do is the following... Given that our standard that we have adopted for reporting time is 'My Timesheets' (fyi, Single Mode Entry=ON), we have some resources who have others who do it on their behalf via 'My Tasks' (ie., accomplished
    by using the 'Assignment Owner' field, accordingly).  Therefore, when entering time on someone else's behalf within 'My Tasks', we like to present the user that is logged in only the tasks that they are are assigned to update on others' behlaf.
    I know that there is another more elegant approach to doing this which may be to use the Delegation feature. But since we are trying to stick to Sharepoint Security mode for now, this is not an option for the time being.
    Any help appreciated would be greatly appreciated.
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi Spiro,
    1- You still can define in Project Online a filter in the view settings, it is located just above the category setting. Here is a screenshot of the summary project center view:
    2- The view GUID is not anymore in the URL, since the URL triggers an action only on the webpart and not on the whole page. I agree this is annoying since it was great to send a URL with a specific view.
    3- Concerning the access to my timesheet versus my task, I'm not sure to get a full understanding but on a general way, it is much more easy to deal with those situation using categories which you cannot do with the SP permission mode.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How can I create a search filter on my muse project?

    How can I create a search filter on my muse project like the 'sort by' function of this website? http://trufcreative.com/work
    By that I mean be able to narrow down the content displayed on a single page (preferably with an animation) without having the switch pages or reload the browser.
    I'm assuming this isn't something Muse can do natively, but if anyone knows the code, and how to make it work with Muse, that would be awesome.
    Cheers!

    yes i have same problem. i couldnt create one. please help me

  • How to create a WMI filter in order to apply to machines that have Skype already installed with deploying a newer version of Skype

    Hi there,
    I was wondering whether anybody could tell me how to create a WMI filter in order to apply to machines that have Skype already installed with deploying a newer version of Skype.
    Your help would be much appreciated.
    Many thanks,
    Timbuctoo

    Hi,
    To create a WMI filter
    1.In the Group Policy Management Console (GPMC) console tree, right-click
    WMI Filters in the forest and domain in which you want to create a WMI filter.
    2.Click
    New .
    3.In the
    New WMI Filter dialog box, type a name for the new WMI Filter in the
    Name box, and type a description of the filter in the Description box.
    4.Click
    Add .
    5.In the
    WMI Query dialog box, either leave the default namespace (root\CIMv2) or enter another namespace by doing one of the following:
    ◦ In the
    Namespace box, type the name of the namespace that you want to use for the WMI query.
    ◦ Click
    Browse , select a namespace from the list, and then click
    OK .
    6.Type a WMI query in the
    Query box, and then click OK .
    7.To add more queries, repeat Steps 4 through 6 to add each query.
    8.After adding all queries, click
    Save .
    In the Query box, type the following WMI query:
    Select * from Win32_Product where Name LIKE “%Skype%”
    Best Regards,
    Erin

  • Sharepoint 2013 :Content Search Web part Property Filter By Query String - How to use ?

    Hi,
    I would like to filter data that is displayed in content search web part  by using  URL.
    I tried to use Value of a parameter from a URL - Query String.Parameter1
    But have no idea how to use it.
    Can someone help me pleas ?

    duplicate thread
    http://social.msdn.microsoft.com/Forums/en-US/f9fef155-1aa3-43b5-b285-5eae5d036b8d/content-search-webpart-property-filter-by-query-string-how-to-use-?forum=sharepointgeneral
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Can i create a property node of a property node?

    hello - i made a small vi that im attaching to visiualize what i am wanting to do. i have two modes in my vi - one with automation on and the other off... in manual control mode.
    in automation mode...i am reading a sensor (hall effect) and when the boolean is true, then the property node of a stop motor event is automatically executed.
    if i want to be in manual mode, i don't want that property node to execute whenever the boolean reads true. i only want to be able to press the stop button manually.
    so i tried creating a property node of a property node, and chose the "disabled" property wiring a 1 constant into it which should be "disabled".
    anyway - i don't know if this is even possible cause i am getting an error. can i make this work or how can i turn automation off and therefore turning the property node to the stop motor off too?
    thanks!
    Attachments:
    AUTOMATION CONTROL TESTING.vi ‏85 KB

    Don't overcomplicate things!
    You don't need a property node of a property node, that would make little sense. Simply place the property node inside a case structure so it only executes under certain conditions.
    LabVIEW Champion . Do more with less code and in less time .

  • Implementing property filter

    Hello all,
      Probably silly and simple questions?
    1) If my understanding is correct, a property filter hide/modify existing properties or add virtual properties...but, only temporarily right? i mean.. they are not changed permanently .. it's only for the display!
    (<i>PLEASE CORRECT ME IF I AM WRONG</i>)
    2) I have gone thru the link https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/knowledge management and collaboration developers guide.html >> <b>How To Implement a Property Filter</b> >> downloaded the example >> deployed too...
      I can see my filter in Content Mgt >> Repository Filters..
      But, how should i use this property filter?
    Regards,
    K.Kumar

    hi,
       For information regarding other properties,check the following link
    1. http://help.sap.com/saphelp_nw2004s/helpdata/en/69/d96b80a84611d5993600508b6b8b11/frameset.htm
    You could get info on repository filters from that link itself.
    2.Also filters can only be applied to repositories and cannot be applied to navigation iviews(as you have stated that in your reply).You could view the contents of a repository through navigation iview.
    3.I think filters can be applied only for repositories like '/documents' and not to subfolders like '/documents/kumar'.
    Hope it helps
    Regards,
    Srinath

  • User availabilty while creating a Property Category

    Hi,
    We have the current system with Authentication mode set as Mixed, while creating a Property Category I can see only the Users with Internal Authentication mode are available for selection as part of Property Category not the one with CSS mode, please suggest.
    Thanks,
    MM

    off cource Yes, but I am curious why the users are not shown for selection while creating/modifying the Property category,
    Murali

  • Can you create a property node automatically when placing an xcontrol

    I have an xcontrol that always has an input and an output.  The xcontrol is always implemented as a control to comply with data flow paradyme, and a property node is used as the input connection.  I was wondering if anyone knows of a way to automatically create the property node when the xcontrol is placed on the front panel. 
    I have noticed that a blank menu item in the xcontrol, will generate a property node.  Is there a way to specify which property node to generate.  And is there a way to insert into the menu for the control on the block diagram instead of the pane.
    Thanks in advance
    Kent

    Ton,
        My "merge-control" is just a merge vi, as attached.  However the trick was to insert it into the controls palette (insert vi,  view all files, select the merged vi instead of the xcontrol). Merge VI's on the controls palatte seem to be automatically set to "explode/un merge" on use.
        To explain the use, this xcontrol is used to allow interuption of logic data flow.  This one is to simulate a switch that is used as an input to a PLC.  Thus standard simulation logic determines the normal (simulated real world) operation and is wired to the "In" parameter.  The xcontrol displays the simulation value on the front panel as the light on the left.  The middle switch is to either pass through the simulation value, or use the value input to the right led button.  The block panel control would then be wired out to connect to the PLC.  The objective of the control is to allow simulated operation, and forced faults to fully test PLC logic.  Hence I needed an xcontrol with both an input and output on the block diagram and a front panel object.  As we may have over 1000 of these in a project, I wanted to eliminate having to click on the block icon, select create, property node, In, and also turn off the label (to minimise space usage).
    Kent
    Attachments:
    example.gif ‏6 KB

  • Error when applying Property Filter

    Hi,
    I implemented a property filter for read name QMSPropertyFilter.
    Now I applied it to a repository uhl_qmd.
    When I open a navigation iview for this repository, I get the following exception:
    #1.5#C000AC140113000700000000003B4B1E0004016DD9146C60#1127471211900#com.sapportals.wcm.repository.runtime.CmFilterHandler#irj#com.sapportals.wcm.repository.runtime.CmFilterHandler.handleRuntimeException(837)#System#0#####Client_Thread_27##0#0#Error##Plain###Exception while applying filters: null: java.lang.NullPointerException
         at com.sapportals.wcm.repository.service.personalnote.PersonalNoteCountPropertyFilterManager.getFilterForRead(PersonalNoteCountPropertyFilterManager.java:57)
         at com.sapportals.wcm.repository.runtime.CmFilterHandler.applyPropertyFilter(CmFilterHandler.java:592)
         at com.sapportals.wcm.repository.runtime.CmFilterHandler.applyPropertyReadFilter(CmFilterHandler.java:201)
         at com.sapportals.wcm.repository.ResourceImpl.applyPropertyReadFilter(ResourceImpl.java:2790)
         at com.sapportals.wcm.repository.ResourceImpl.getProperties(ResourceImpl.java:1022)
         at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:319)
         at com.sapportals.wcm.service.resourcelistfilter.cm.ResourceListFilter.getChildren(ResourceListFilter.java:417)
         at com.sapportals.wcm.rendering.collection.AbstractRendererStatus.initialfilter(AbstractRendererStatus.java:307)
         at com.sapportals.wcm.rendering.collection.AbstractRendererStatus.initializeSelectionList(AbstractRendererStatus.java:277)
    Can anyone help me with this case? We are using EP6.0 SP2.
    Best Regards
    Helge

    Sorry Dirk,
    I was wrong. After booting the portal I get the nullpointer exception again.
    My coding is adapted from the KM examples, so I added the properties I want to change to the property map.
    What do you mean with: "...specify the properties ... IPropertyFilter.getPropertyNameList() method."?
    In our case this looks like this:
    public IPropertyNameList getPropertyNameList() throws WcmException {
              return null;
    Is there any reliable example as I took this from SDN???
    Thank for you help!
    Helge

  • Create a between filter using months names ...

    Hi, I need to create a dashboard filter using month names in a between statement for examples:
    From: January - To August
    the problem is when I do this the Obiee server made a filter by alphabetic order, so for the example the result will be nothing (because A is prior to J)...
    How can I solve this
    (My boss is in my neck and I have a family to feed...)
    Thanks in advance...

    Hi,
    mma as given you the solution which would be helpful.
    I can say workaround for this,what ever date parameter you want to convert to january....december
    you can make an alias of that column as said above and write the filter on that date with a sql statement example as follows
    select to_char(sysdate,'FMmonth') from dual
    same way you take your requirement as select to_char(*your_date_column*,'FMmonth') from your_table
    Hope it helps,
    Best Wishes,
    Kranthi.
    Edited by: Kranthi.K on Nov 9, 2009 10:56 PM

  • Error when try to create a property

    Hi,
    I need to create a property (ORDEN) in dimension PPTO_PROMOCION. When I save the following error appear:
    Error modul admin
    Failed to create infoobject BI to atribute
    Someone can hep me? Flavia

    Hi Vigoni,
    I think the dimension in which you are trying to add property is not active. As suggested above, reprocess dimension and if still it is not working: "Run UJS_ACTIVATE_CONTENT in Tcode SE38 and activate that particular dimension." Reprocess dimension once again.
    Hope this helps.
    Regards,
    Poonam

  • Trying to create a property that has a structure to it

    Hello:
    I am trying to create a property that has a structure to it.  Specifically, I am trying to create a multi-valued property called checks.  This property is composed of check number, check date and check amount.
    The data for this should display like the rows in a table, like an Excel spreadsheet.
    I realize this is a tall order.  However, is this possible?  I have tried the composed of feature, but did not find this to work.
    The best I could come up with so far is to have three multi-valued properties each for check number, check date and check amount.  The user would then need to ensure that the first entry for check number applies to the first entry for check date, and then the second entry for check number applies to the second entry for check date, and so on, and so on...
    Any ideas?
    Thanks.
    Bill
    (508) 259-6605

    Hi,
    You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
    In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
    Regards
    Bruce

  • Content Search Webpart Property Filter

    Hi,
     I have two pages. In first page i added custom webpart with one textbox and search button. In second page i have content search webpart that should filter the result based on the property value we enter in the text box.
    I added the property filter PropertyNameOWSTEXT:{QueryString.MyParameter1} to the query. I am passing the value on click of button through query string to second page. I have results matching the query in my list but Content Serach Webpart not showing any
    results.
    Can anybody help???
    Thanks

    Hi,
    I am looking for solution to filter data on content search web part ( SP 2013)  by using  URL.
    For example:
    My URL is: http://SiteCollName/Sitename/Pages/PageName.aspx?MyParameter1=XXXX
    Result : Display results that field "My field" contains XXXX.
    nikita

Maybe you are looking for

  • HT204409 After ios 6 update on ipad 2 no wifi ability including airport

    Purchased a second iPad 2 for my wife to take along on our vacationa and just before leaving home the pop-up to update to ios 6 came up on her machine. She selected it and immediately we lost wifi connection and have notbeen able to establish it sinc

  • 'Unknown Error 0x3' when writing with the internal DVD drive

    I use Toast to burn DVD's and have been getting a lot of harware failures with a '0x3' error code. Burning the same content to an external Firewire DVD drive works perfectly. Anyone else seeing this? I've only had this machine a few months and would

  • F. 31 List Export local file_, =  *local file* became greyed out

    Hi, Recently we have Upgraded our SAP system with  EHP5, after that in T.code F.31 after executing, we are unable to down load the file as its grayed out, F. 31 > List > Export > local file, =  local file became greyed out  after upgrade. the user un

  • XPath processing with namespaces does not work. Please review my code..

    Dear all, I am working on with the IMS Group's Enterprise XML standard (http://www.imsproject.org/enterprise/) and need to retrieve member information using XPath. After significant fault finding, I have narrowed down the problem to the XML file cont

  • Dynamically importing images

    Hi,   we need to dynamically import images to use them in smartforms. The images are stored on a file server (DMS) so we tried to use BAPI_DOCUMENT_CHECKOUTVIEWX to get the file from DMS and then use IMPORT_BITMAPS_DBS (to do what SE78 does) but this