How to change Owner property in KM

Hi masters.
I want to know how to change cm_owner property of a document that i am uploading with dynpro java. I have written a code to add new properties for document but i couldn't change the Owner of document. Here is my code for adding a new property :
if (wdContext.currentUserElement().getId() != null) {
IPropertyName propOwner =
new PropertyName(
PropertyName.createDisplayname().getNamespace(),
"Owner");
prop =
new MutableProperty(
propOwner,
wdContext.currentUserElement().getId());
propMap.put(prop);
This code is adding a new Owner property for document. So that after upload, i see 2 Owner fields in Misc. tab.
Thanks for replies.

Hello,
Do check this blog out:
[Dynamic properties setting in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/645d4357-0701-0010-07bd-a2ea8c4d0aaf]
Also read : [Storing and retrieving properties in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ab288d09-0801-0010-b183-b8254ed4793f]
[Developing a property filter in KM|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ee3a57-0701-0010-3e9a-ddae7e4e0521]
Regards,
Shailesh
Edited by: Shailesh Kumar Nagar on Feb 19, 2010 8:16 AM

Similar Messages

  • How to change autocommit property in Oracle 8.1.6 server

    Can anybody tell me how to change autocommit property in Oracle 8.1.6 server?
    Thanks in advance.
    Matthew
    null

    Hi,
    SET AUTOCOMMIT OFF
    thanks,
    Boby Jose Thekkanath,
    Consultant,CWO,
    NSW-AUS.

  • Hi, does any one know how to change  owner name?

    Hi, i have bought an iphone unlocked on ebay recently, the phone is working perfectly.
    Does enyone know how to change the owner name? what details would i need? I have the IMEI,  name of the guy who sold the iPhone and his email address, do you think this is enough?
    Please i need help!!!!
    Do you think that the guy who sold the iPhone can block the phone after a little while? Is there anything i can do?
    I have asked the guy to send me his details and i have explained to him why i need it, but he's not answering :-((((
    HELP HELP
    Thank in advance people........

    Use iTunes to setup the phone like new: http://support.apple.com/kb/ht3828
    Very simple.

  • How to change a property programmatically

    Hello,
    How can I change a property during runtime? Like, change the label of a button, or change the header text of a table.
    regards,
    arnold

    Hi Arnold,
    You need to get an instance of the UI element at runtime. You can get this only in WDDoModifyView
    IWDLabel lab = (IWDLabel)view.getElement(<labelID>);
    lab.set<property>(<value>);
    Warm Regards,
    Murtuza

  • How to change owner

    how to change ownership of the Iphone?

    If you are not changing the number or service, all you need to do is change the Apple ID. Create a new Apple account for your wife.
    On the phone, go to Settings>iCloud, then scroll to bottom of screen and select Delete Account.  Then enter the new ID.

  • OMBPlus: how to change Prefix property (dimension)

    Is it possible to change (or set during creating) Prefix property of dimension through OMB Plus?
    I think that this can be done with command
    OMBALTER DIMENSION_TABLE '<dimname>' SET PROPERTIES (<propname>) VALUES ('myval');
    But what is the name for Prefix dimension property?
    Maybe it is possible change this property only through GUI OWB?
    Oleg

    Oleg,
    Unfortunately, you cannot, so I filed bug 3519964.
    However, do note that the main reason for us asking a prefix is the ability for us to prefix key names being created automatically. You can always rename those key names afterwards to include the prefix you want/need.
    Thanks,
    Mark.

  • How to change owner of queries and transport.

    Hi Experts,
    Earlier the queries are designed by some other user.According to business requirements I have customised the data targets and infosets also accordingly.All queries are designed on infosets only.
    If I  am coming to query designer to change queries according to requirements, i am not getting change or edit mode for that,even if  I saved the query with some other technical name also I am not getting change or edit mode.
    While I open the opened the query it is showing the following errors :
    1. Bex transport request is not available or not suitable.
    2. Choose an existing request.
    Up to my understanding to assign the queries to my own BEX transport requests ,how can  I change the previous query owner to my user name.
    If I  assign to own bex transport request then
    Please let me know if any information needed still.

    Dear,
    As explained above .....go to SE09 and selct the request and change the owner...
    Also,
    If u use SAVE AS option for the existing query,,,then a new query opens..
    and assign that query to a NEW Transport Request...
    This solves ur problem...
    The problem of
    1. Bex transport request is not available or not suitable.
    2. Choose an existing request.
    is because... the query has been attached to a TR which has been already moved to Quality or Prod...
    So any changes have to be put in that request which is no longer available..
    So use Save AS option and assign it to a new TR.
    Hope this helps u..
    Best Regards,
    VVenkat..

  • How to change a property of all items of the specific type?

    Hello,
    this should be fairly simple:
    tableA ( id, Flag)
    There are 2 pages :
    Page 1 : allows user to select P1_ID based on the result set from TableA
    Page 2 : there is a bunch of items on this page - text fields, text areas, radio and check boxes, reports etc. There values in those items are based on the following logic :
    select <bunch of columns correspond to the page items >
    from view1, view2 ...
    where <where clause>
    and
    some_column =:P1_ID
    Question:
    I need to disallow users to change values in the items of text type on the page 2, if value of P1_ID ( TableA.id) has a value in Flag.
    How this can be done ?
    The ideal solution would be if i can have a routine that would not require hard coding items names.
    Thank you
    Andrew
    Edited by: andrey on Jan 31, 2009 12:51 PM
    Edited by: andrey on Jan 31, 2009 12:52 PM

    Andrew:
    The property that you set is the 'Read Only' property for the page-item. This is done from the 'Edit Page Item' page
    The conditions under which this property evaluates to true can be determined dynamically (no hard coding). Take a look at the list of possible Conidtion Types. So, if u want the condition to be table-driven you could choose the 'Exists (SQL query returns at least one row)' and the SQL query could be something like
    ' select 1 from <you_table> where id=:p1_id '
    Varad

  • How to change visibility property of a VC iView by clicking of a BI iView?

    Hi all!
    I have created four iViews: two speedometers with web application designer and two iViews with visual composer. I added the speedometers and a visual composer iView #1 to a portal page (default view). The requirement is that by clicking the speedometer #2, the visual composer iView #2 would replace visual composer iView #1 on the portal page. If the user then would select the speedometer #1 again by clicking it, visual composer iView #2 would replace #1 again and so on.
    I have read article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b65a5d-f397-2910-a78a-f5544f21c33b?quicklink=index&overridelayout=true, but it is more about filtering VC iView values with BI web items. I don't need to filter anything, just to change one iView to another in a portal view by clicking a third one. How can I check what values my web application with Z_SERVICEOUTBOUND template is transfering to VC?
    One solution might be¨to transfer any value to VC by clicking a speedometer and to change the visibility of the VC iViews according to that value (the speedometer #1 should in that case transfer other value to VC than speedometer #2). I don't know if that is possible with speedometers - you can't reference any characteristics or variables with it.
    If you have an idea, what would be the best way to accomplish this requirement, I would be very glad to hear about it! We are in VC 7.0.
    Points garanteed!
    Regards
    Sari

    Hi
    Since you are accesing the node containing the 'VISIBILITY' attribute you can use the following method to set the value
    lo_el_visible->set_attribute(
    exporting
    name = `VISIBILITY`
    value = 01 ). ""01 - none,02-visible
    and remove this code
    wd_context->set_attribute( EXPORTING name = 'VISIBILITY' value =
    abap_false ).
    Regards
    Tamil
    Edited by: Tamilselvan K on Aug 6, 2008 2:40 PM

  • How to change the property of the fields on screen while using BDC

    Hello,
    I am working on a program where I am using BDC call transaction method to update vendor master data using Fk02. I need to call the transaction in mode 'E'. As per the requirement I don't want user to see all the fields available on that screen. For example on Payment transactions screen I only want user to see fields like Bank key, bank number in the editable mode and rest all the fields on the screen should be greyed out.
    Can you please help with how can i do this.

    Hi,
    I think you can achieve this using transaction variant. Create a transaction variant using SHD0 and grey out the fields which you want. After that in BDC, instead of calling FK02, call the transaction variant you created. you may have to change the BDC recording a bit, but i think you can give it a try?
    Do let me know if it helps you.
    Regards,
    Raghav.

  • How to change style property in runtime

    Hallo. I have this style tag in my main application:
    <fx:Style>
         @namespace s "library://ns.adobe.com/flex/spark";
         @namespace mx "library://ns.adobe.com/flex/halo";
         @font-face {
         src: url("../caratteri/MyriadPro-Bold.otf");
         fontFamily: "MyriadPro-Bold";
         embedAsCFF: true;
         .mioStileMyriadProBold {
         fontFamily:MyriadPro-Bold;
         fontLookup: embeddedCFF;
    </fx:Style>
    It works good but i wish to change the fontFamily while the program is running. How can i do that?
    Thx a lot.
    Max

    Hallo. Thx for the answer. I would like to know if your solution is working always. I mean, in my example i showed you that i have this:
    .mioStileMyriadProBold {
    fontFamily:MyriadPro-Bold;
    fontLookup: embeddedCFF;
    But what if i have 2 custom styles??.. How can i change one or another specifically ??
    I hope you understand what i mean.
    Max

  • How to change owner on purchased palm z22 to sync with my desktop program

    How do I sync my new palm that has an owner name on it. I would like to sync with my desktop that has all my information. I can't seem to get it to sync with desktop ver 4.2
    Post relates to: Palm Z22
    This question was solved.
    View Solution.

    The fastest way to remove the profile is to hard reset the device: here's the link http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887
    Message Edited by IrreducibleM31 on 05-28-2009 07:35 PM

  • How to change Owner name and password?

    I want to give my iPad to another person.
    How do I change name and password?

    What to do if you sell or give away iPad
    http://support.apple.com/kb/HT5661

  • Change "Owner" table property

    Hello,
    I am using the last version of the JRC runtimes from CR4E to switch the datasources to JNDI. at run time It is working well, except by the fact of the queries taking the old (design-time configured) table prefixes. Looking at the report in designer, I can see that those prefixes are indicated in the u201COwneru201D table property for each table. No matter how I switch the sources (looping through the tables or using the replaceConnection method) those properties are not altered and then the queries end up pointing to the wrong schema.
    Can anybody point me to how should I change the Owner property for all the tables?
    Thanks in advance
    Juan

    Try changing the qualified name of the table:  Table.setQualifiedName(<owner.tablename>)

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

Maybe you are looking for