How can I change KM property createdBy?

Hi all,
I have to change the property createdby for all resources within the KM.
Background: In the past the display name in the portal was like "jdrogi". But this has changed and now all users look like "jdrogi @foobaa.com".
Now it is the case that for old resources (created by "jdrogi") the detailed view only shows the createdBy-person not as link anymore.
To fix this problem, I have to change all properties....
Therefore I wrote a short code, but the property is not changed:
IMutablePropertyMap properties = rootResource.getProperties().getMutable();
IPropertyName createdByPropertyName =   PropertyName("http://sapportals.com/xmlns/cm","createdby" );
//IPropertyName createdByPropertyName = PropertyName.createCreatedBy();
IMutableProperty createdBy = properties.get(createdByPropertyName).getMutable();
String value = createdBy.getValueAsString();
     if (value.indexOf("@")==-1) {
          createdBy.setStringValue(value + "@foobar.com");
          rootResource.setProperty(createdBy);                    
Unfortunately this is not working and I am getting:
class com.sapportals.wcm.repository.PropertyReadOnlyException
I also changed within the Property MetaData IView (ContentManagement->GlobalServices->PropertyMetadata)  the corresponding systemProperty cm_createdby. In particular I deselected the readonly-flag and selected the maintainable flag.
This also didn't help......
Can anybody help me out?????
Thanks you very much
Regards
Jens

Hi,
I am a SAP Portal Developer who is trying to change de createdby km property.
I can change other system properties, like descrition or displayname, but I can´t change createdby. How did yo di it?
I do this:
PropertyName propName = new PropertyName("http://sapportals.com/xmlns/cm", "createdby");
try
     IProperty property = documento.getProperty(propName);
     if (property != null)
          IMutableProperty mutableProperty = property.getMutable();
          mutableProperty.setStringValue("username");
          documento.setProperty(mutableProperty);
     } else
          IProperty prop = new Property(propName, "username");
          documento.setProperty(prop);
} catch (Exception e)
     throw new KMException("Error al crear la propiedad " + propName.getName(), e);
Thanks,
Regards.

Similar Messages

  • How can I change element property.

    Hi experts,
    I have two tables and while I set the first table's property is visible , second table's property is invisible.When the screen is loaded, I want to make the first table visible and second table invisible. When I click any row in the table, I want to open q new table below first table.How can I do?How can I change the property of the table? Can anyone share with me the sample code for this.

    Hi Mehmet,
    Create 3 context attributes with type WDUI_VISIBILITY
    and in the Layout bind these with the Corresponding TABLE Controls
    VISIBLE property.
    and set these in WDDOINIT()
    wd_context->set_attribute( name = 'FIRST_TABLE_VISIBLE' value = if_wdl_core=>visibility_visible ).
    and table SELECT event.
    wd_context->set_attribute( name = 'FIRST_TABLE_VISIBLE' value = if_wdl_core=>visibility_visible ).
    Regards
    Abhimanyu L

  • How can I change the property of a graph running in another VI ?

    I know how to set a control value in another VI using the invoke node but what should I do to change the property of a control?

    Hi Zumdal,
    you can make a reference of your graph, copy it in a global variable that can be handled in a remote vi to change the property of the graph.
    I attach a sample LLB that contains a graph.vi and a property.vi.
    From the property.vi you can control the property of the graph.
    Good luck,
    Alberto
    Attachments:
    graph_property.llb ‏27 KB

  • How can you change property files of a EJB at Runtime?

    Hi,
    I have got an ejb and want to change my variables which I stored in property file at Runtime.
    But the property file isn´t in the jar-file of my ejb...
    How can I add it.
    Or How can I change the property file without new compilation.
    Thanks
    Uli

    Hi Uli,
    the previous post is generally correct, but without taking any part in the sensibility of this (there are valid reasons why you would not store the values in a DB) it would be necessary for you to be a bit more specific.
    Is your problem that you can not see the file from your EJB or that you don't know how to change a property file entry in general?
    Cheers,
    Kalle

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

  • How can I change a Mixer filter in real-time? (11.5)

    Hi all,
    I'm currently coding (or trying to code) an interactive soundboard that users can play with in their software. They can turn inputs on and off, increase the volume, change the EQ, etc. The nice is, and I was really pleased to discover this, Director already has a feature called an 'Audio Mixer' that has filters to satisfy all these functionalities! The bad thing, I can't figure out how to change these filters in real time.
    For example, here's the code to MUTE a specific mixer (activated when the user toggles a button):
    member("channelOneMix").mute()
    But how do I tell it go INTO that mixer, find the existing High Pass Filter, and change the value of that High Pass Filter's 'highCutOffFreq' property? It's a classic case of knowing exactly what I need to tell the code to do, but I have no idea of the SYNTAX of actually telling it to do that.
    I hate to be 'that guy', but it is somewhat urgent. This is for a college assignment due Wednesday (yikes!). I didn't quite know what I was getting myself into with this code, but the end is in sight if I can figure out how to write this particular code.
    Many gratuitous thanks in advance for any assistance!
    PS: It won't be enough to simply add a new filter to the list. The user needs to be able to turn a dial up or down to increase or decrease the High Pass Filter, in conjunction with several other dials manipulating other filters. I need to be able to actually change what the filter's value is.

    Thanks for your help!
    The problem is that I think that I changed the "default" name for the state where the photos were taken. I have 50 differents locations, that are all correct, and photo per photo, I can modify the original location, but only at "local" level.
    How can I change the name displayed in State section as "Casa David i Mireia" for "Catalunya" that is the real name for the State where the photos where taken?
    I don't if this post is comprehensive. I'm not sure.
    Thanks for your time!
    Jordi

  • How can i change the color of a blinking button?

    Dear all,
    how can i change the color of a blinking button with property nodes, when the button changes from "normal" state to blinking state? I can change the color of the normal state, but how can I change the color when the button is in blinking state?
    thanks

    jus an example
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Blinking_Indicator_2003.vi ‏27 KB

  • How can I change column name in ALV table in WebDynpro ABAP?

    Hi Everyone,
    I have created an ALV table in WebDynpro ABAP. I have created a context node and added the required attributes there - for the ALV display.
    Now I want to change one columnn name of the ALV table.... Currently it is showing the description of the data element, which I don't want to show. I cannot create a new DE only for this purpose.
    Please let me know how can I change the name of the column.
    Regards

    Hi,
    This may help you to define your own column text in the ALV Table of webdynpro.
    see the below code.
    Here 'STATUS_ICON' is the column of the the output display of the ALV Table of webdynpro.
    "change the label of the report.
    DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
    CALL METHOD l_value->if_salv_wd_column_settings~get_column
    EXPORTING
    id = 'STATUS_ICON'
    RECEIVING
    value = lr_weeknum.
    SET THE LABEL OF THE COLUMN
    DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
    CALL METHOD lr_weeknum->get_header
    RECEIVING
    value = hr_weeknum.
    CALL METHOD lr_weeknum->set_resizable
    EXPORTING
    value = abap_false.
    hr_weeknum->set_prop_ddic_binding_field(
    property = if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
    set the text of the column
    CALL METHOD hr_weeknum->set_text
    EXPORTING
    value = 'C Form'.
    regarads,
    balu

  • How can i change date format in portal?

    how can i change the date format in the portal to dd-mmm-yyyy format 
    (e.g. 02-MAR-2007 or 02/ MAR/ 2007)
    i know that i have to change one of the properties listed in the path
    (systen administration->system config->Knowledge management-> content management->global services->property metadata->properties)
    but which property should i change and what should I modify it to?
    Nikhil

    Hi Nikhil,
    please have a look at SAP note <a href="https://service.sap.com/sap/support/notes/816761">816761</a> for solving this.
    Hope it helps,
    Robert

  • Using a garmin sat nav device, when planning a route on the mac it always defaults to the same far away location as the starting point. How can I change this?

    Whenever I start route planning using Garmin Connect, the map opens at the same distant location every time, by default. How can I change this and make it open at my own location?

    Hello Cgifford,
    Welcome to National Instruments Forums.
    To output your signal to the PFI lines,
    you can use external connectios between OUT0 and PFI lines. You can also use
    the backplane to do so by routing into the same RTSI line.
    1)
    On the SCOPE and FGEN, the name of the
    terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
    need to route the signal using the property:
    You can also use the DAQmx route signal which perform the same opperation.
    2)
    This will depend on the frequency of
    your pulse train. If this is lower than about 10 ms, then you can probably
    place this on a loop and start and stop the acquisition every time. If the
    frequency is higher than this, you will have to use:
    -       Scripting on the FGEN side (read more)
    -       MultiRecord Fetch (more information in the scope help file
    section “Acquisition Functions Reading versus Fetching”).
    3)
    The short answer is yes. The longer one
    might depend on how tight you need the synchronization to be (us, ns, ps). For
    very tight synchronization, you should look into here.
    Message Edited by Yardov on 06-18-2007 03:14 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    property.JPG ‏7 KB

  • How Can I change the Authentication for this Dynpage

    Hello ,
    I have created a rss feed in special Dnypage.   When I try to connect with rss reader  to dynpage it occurs an error 500.  The problem is that no logon screen appears and the portal would start the Dynpage with the User Guest.
    How Can I change the Authentication for this Dynpage ? I need a LogonScreen
    RSS URL:
    /irj/servlet/prt/portal/prtmode/rss/prtroot/com.geberit.ep.uwlquick.uwlquickstarter?mode=rss

    Hi ,
    sry the entry in xml does not help. No Logon Prompt
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="Vendor" value="xx.com"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.pcd.glservice,com.sap.portal.ivs.iviewservice,usermanagement,,com.sap.netweaver.bc.uwl"/>
      </application-config>
      <components>
        <component name="uwlquickstarter">
          <component-config>
              <property name="SafetyLevel" value="no_safety"/>
            <property name="ClassName" value="com.xx.portal.uwl.uwlquickstarter"/>   
          </component-config>
              <component-profile>
                   <property name="AuthScheme" value="default"/>
              </component-profile>
        </component>
      </components>
      <services/>
    </application>

  • The caption on an annotation is off the plot area. Even if I cahnge the x and y scaling I still can't see the annotation caption. How can I change it so that I can see it?

    The caption on an annotation is off the plot area. Even if I cahnge the x and y scaling I still can't see the annotation caption. How can I change it so that I can see it?

    Try calling SetCoordinates on the annotation's Caption property. This method lets you explicitly set the x and y coordinates of the caption.
    - Elton

  • How can I change the Xcelsius environment language??

    Hi, I downloaded the Xcelsius Engage 2008 trial version and it is installed in spanish, how can I change it to english?
    P.D.  I also installed the English Language Pack
    Thnx
    Edited by: Bere11y12 on Aug 12, 2010 9:05 AM

    Hola,
    I guess you'll find the relevant property in the file menu...
    To be precise:
    Menu "File" --> "Preferences..." --> "Languages" --> "Current Language"
    I know that you currently only see Spanish expressions...
    I do not talk Spanish but my dictionary says:
    Menu "Fichero" --> "Configuración..." --> "Lengua" --> "Actual Lengua"
    Hope this helps!
    Micha
    P.S.: A restart is needed after changing to the right language... this popup will looks like this: "El programa necesita reiniciarse para cambiar el idioma de los productos. ¿Quieres salir?"

  • How can I change the status of the fileupload UI from disable to enable?

    Hi, experts,
    The Version of my Netweaver studio is 7.0.11.
    I create a view with fileupload UI element in WebDynpro for Java application, but the fileupload UI element is disabled so that I don't select file when I click the button in the fileupload UI element after I run the application.
    How can I change the status of the fileupload UI element from disable to enable?
    Best regards,
    tao

    Hi
    look at this thread [HI Masters , I need information for file upload program in web dynpro java|HI Masters , I need information for file upload program in web dynpro java]
    and check if u bind each file upload element to binary property in the context

  • How can I change the parameters in form

    Hi there,
    I´m creating a WD application with add and change data.
    The change form it´s ok and works fine, but I want to use the same form to add data too...
    But the change from has some element "read only", how can I change the parameter in this form and clean the other elements?
    Thanx a lot

    hi minoru.....
    consider you are having an input field....
    create an attribute of type string in the context.
    bind it to the read only property of the input field.
    now pass the value x to the input field, to make it read only  or pass '' to make it read write.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_read_only LIKE ls_context-read_only.
    * get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    *********read_only is the attribute name bound to the read only *********property of the input field.
    * get single attribute
      lo_el_context->set_attribute(
          name =  `READ_ONLY`
          value = '' ). *** you can pass x to make it read only
    ***** to clear the values
    lo_el_context->set_attribute(
          name =  `INPUT_MATNR` * this clears my input field.
          value = '' ).
    ---regards,
       alex b justin

Maybe you are looking for

  • How can I copy with render to new drive?

    I am using an external hard drive to work on a project and I need to move everything to a new external drive, but the renders and some media files will not connect. All my preferences are set to each external hard drive on each project. The project i

  • A hang in AF

    Hi Gurus, I have 4 external systems connected to PI 7.0 SP12 on MSCA . One external system is using soap adapter, while the others ftp adapter. I want to send 3.000 MATMASes to them at once. I dont have any problmes on IE (rounting, mapping is fast a

  • Willwhen I back up my book Mark files is a json format is saved to the desktop. The file is only 30kb, this is too small. what's going on?

    When I go to back up my bookmarks and save it as a json file on my desktop, it tells the file is only 30kb, it is highly unlikely as I have many bookmarks. I then tried to export the bookmarks as a HTML file and, it too said the file was only 30kb. y

  • Re install mac osx software macbook pro 17

    I want to reinstall factory software into my macbook pro 17", but I don't have the original discs. Although I have the original discs for the Mac Book Pro 15" it does not allow me to do it on the 17" MacBook Pro. Can anyone help me?? please tell me h

  • Jquery and serialize / passing variables

    I already put this question on the jquery forum but noone responded. My question is about jquery. I have this image gallery, people can drop and drag pictures, the idea is they can determine theirselves the order in which images are shown on their we