Document Property ID's

Can someone post a quick sample of doing what's described below. It'd probably help a lot of folks out. Thanks!
Note: This example uses integers to set properties on the document, in contrast with the ObjectProperty parameters used to retrieve information about general objects. This is because document properties can contain custom properties defined in the portal, for which there are no standard ObjectProperty parameters. To retrieve property IDs to use for this API, use the standard object manager object querying method with ObjectClass.Property, and use the ID on the object returned to query for the properties you need.
IDocumentProperties documentProperties = documentManager.queryDocumentProperties(documentID);
documentProperties.setStringValue(1, "EDK Trail Document EDITED"); // 1 = namedocumentProperties.setStringValue(105, "EDK Trail Document Title EDITED"); // 105 = title documentProperties.setStringValue(2, "Edited in EDK Trail"); // 2 = descriptiondocumentProperties.setDateValue(112, newDate()); // 112 = last modified date
documentManager.updateDocumentProperties(documentID, documentProperties);

I gather you are looking for a description of what that code is accomplishing? it is modifying the properties of a link in the Knowledge Directory.

Similar Messages

  • SharePoint Foundation 2013 -- How to add the document property option in default search template

    Dear All
    The search for foundation 2013 is working fine with me. I want to add the view document property in the search option? can any one tell me how can i do it in foundation 2013. 
    Here is a relevant post
    http://www.abelsolutions.com/totm/creating-customized-search-results-in-sharepoint-2013/
    I already done the followings: 
    1) Add the view property in Search Managed properties through central administration 
    2) I found one solution that shows me the .html files in SPD Catalog search template, that i did not found in the respective place. (there is no reason why its not there) 
    Can any one tell me how can i do that? 
    Regards 
    Rashid Imran Bilgrami 
    Project Manager 
    ArabSign

    Display templates are not available in SharePoint Foundation. You must use SharePoint Server.
    http://msdn.microsoft.com/en-us/library/jj945138.aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Field posting period is not a document property

    Hi Team
    We are attaching comment for every manual adjustment.
    While one of the user posted entry in the pervious preiod and upload comment also.
    Now in this month he did some changes in comment file. 
    After that he try to see the attachment for manual adjustment posted are not visable and it shows message "Field posting period is not a document property".
    Please help me how to fix this.
    Regards
    Madhu

    Hi Team
    Thanks for you support.
    Issue was solved
    Regards
    Rajesh

  • Read Value from Document Property

    Hi,
    I am looking for Function module, to read Value/Content from Document Property.
    Intial requirement is to capture comments from WAD Output (for Ready-Input Query). The user is going to Update Budget/Actual values in WAD Output. While changing the Values, He/She may enter Comments (Reason to change the Values). I have implemented this functionality using "com.sap.ip.bi.rig.DocumentContent" Method. Also there was a Article in SCN u201C[Maintaining and Printing Comment for Each Line in the Report|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a046a839-f000-2d10-67af-b53d73894a75?quicklink=index&overridelayout=true]u201D.
    To capture Comments, I have created ZCMNTS InfoObject (Only Text Masterdata) with 30 Char in length.
    I have to generate a new report with Plant and Material, Zcomments, Etc. I looked into RSOD_DOC_META_CHANGE Function module, but I am not able to obtain values from comments.
    Appreciate your help in resolving above issue.
    Thanks,
    Madhu.

    Hi,
    In WAD there's a configuration that you can have documents be seen in any query within the same infoprovider (the reason that you can't see in other query is because documents are attached to the query by default)
    Go to your WAD and:
    Properties, select Web Template
    Go to tab "Web Template Parameters"
    At the end, on "Data Binding", make sure the "Document Save" is at "Infoprovider level".
    This way, you can create this new query under the same infoprovider, then you'll see this document in any query under it.
    Hopefully this helps.
    Regards,
    Orcamento.

  • !!!HELP!!! Document Property for BATCH Upload MANY POINTS!

    Hello,
    Is it possible to BATCH & MASS UPLOAD TEXT DOCUMENTS to a InfoObject with the "Characteristic Is Document Property" set ?
    I need to Upload Texts or CSV Textfiles to SAP/BI.
    The Text can be uniquely associated to an Identifier / Masterdata InfoObject / Primary Key.
    From the Masterdata InfoObject I wan't to use the Feature:
    "Characteristic Is Document Property"
    In the Report it is possible to manually upload a Text Document
    to the Identifier of the Masterdata InfoObject.
    How to automatize this in Batch ?
    Who knows the API / BAPI / EXIT / FUNCTION MODULE / TABLE of the DOCUMENT to Enable Batch & Mass Upload for Texts ?
    Many ...
    Thanks
    Good Bye
    Martin Sautter, Munich

    Simon,
    thank You for Your reply.
    Your are shure, we speak from the same stuff ?
    In a SAP/ BI InfoObject I set in the plane General
    the Characteristic Is Document Property.
    Than I can Upload Online from a BEX Query a Text, a CSV Document,
    a Word Document or a Picture to SAP/BI to the row of the querried
    InfoObject.
    This i Want to do in similar way in Batch in the Background:
    I want to Upload Batch in the Background ( in the simpliest case)
    from a  CSV File with a text and an primary identifier
    to an existing row with the same primary identifier of a row of an InfoObject.
    Is this with fm SKWV_KWUI_DOC_CREATE possible ?
    Thank You
    Martin

  • How to extract the Microsoft Word Document property

    I am helping to design a tool to extract the document property data from microsoft before a file is saved or converted into other form. Does anyone knows what method we can use to extract the data?
    Thanks so much!
     

    Hi,
    >>Currently I want to write a macro to extract the document property into a text file when the file is converted into PDF form! Can you tell me how to do that?<<
    If you want to write the string into text file, we can use open and write statement in VBA. Also here is a samlpe that write "Hello Word" into a text file:
    Sub WriteFile()
    Open "c:\users\UserName\desktop\Support.log" For Append As #1
    Write #1, "Hello World"
    Close #1
    End Sub
    You can get more detail about writing file from link below:
    Write # Statement
    However, as far as I know, there is no such event in Word we can detect the uses converted the document into PDF format. You may consider using
    Application.DocumentBeforeSave Event or you can submit the feedback from link below if you want Word application to support this event:
    Submit Feedback - Microsoft Support
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Losing Document property Information on Documents

    Hi,
    We had lot of document libraries with metadata in MOSS 2007 version. We migrated to SharePoint 2010 with DB attach without visual upgrade and everything came up normally and no issue. Recently we upgraded to 2013 with DB attach and did visual upgrade and we
    noticed that losing metadata/column properties missing when revising document or updating and checking back in the document. Can you please help how to keep document property information when revising a document.
    Thanks,
    Ratna
    Ratna

    Is this all types of metadata or just some columns.
    Have you enabled versioning on any of the lists and libraries and are you able to track when these values are being lost? SharePoint doesn't tend to lose data often.
    Are you able to reproduce the issue or is it sporadic?

  • BW-BPS: Characteristic is Document Property.

    Hi,
    we want to enter comments manually in BPS. Therefore we want to activate Characteristic is Document Property for special InfoObject.
    How many digits we are allowed to enter? Only up to 60? Is there a possibility to enter more than 60 digits in BPS?
    Thanks

    Hi Henning:
    As you know when a Char is set: "Characteristic is a Document  Property", user comments can be written in reports about this characteristic. That means that SAP must generate a property in the model for document management (DM Workbench) for this Characteristic. So, here you can have 2 situations:
    - First: You are asking the NW to keep tracking/record of addtional  information for your model. That, technically speaking, if you set as DP too many Chars, might affect performance. It's better to agree with your customer (Blueprint phase) which set of Chars will be used in this way.
    - Second: With too many characteristics as Document Properties the display and selection of documents could be not very clear.
    Hope this help.
    Assign points if helpful.
    Kind regards.
    Francisco.

  • Global Document Property Map

    How do I get a list of the properties defined in the Global Document Property Map?

    Are you doing this with portal 5.0? I'm wondering if you've considered using the EDK 5.0.2 prc.search API?
    ross

  • Setting "Filling of Form Fields" document property to "Not allowed"

    I am using Adobe LiveCycle Forms, and I want to set the property "Filling of Form Fields" as "not allowed" in the pdf documents it renders (that property
    can be found in the "Document Properties" window of Adobe Reader, under the Security Tab).
    Is there any way to set it , in the server (using the EJBClient class that renders the form) or
    in the client (via javascript)?.
    Thanks

    [email protected] wrote:
    > I am using Adobe LiveCycle Forms, and I want to set the property "Filling of Form Fields" as "not allowed" in the pdf documents it renders (that property
    > can be found in the "Document Properties" window of Adobe Reader, under the Security Tab).
    >
    > Is there any way to set it , in the server (using the EJBClient class that renders the form) or
    > in the client (via javascript)?.
    >
    > Thanks
    You should be able to set this on your XDP file from within Designer. Go to File-->Form Properties
    and you'll see a PDF security tab there with the same options you have in Reader.
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • Access and change documents property with KM API

    Hi,
    I am trying to access KM with the KM API to change some document properties.
    I tried following cod, but I get errors for the IUser:
    IService service = PortalRuntime.getRuntimeResources().getService(IUserManagementService.KEY);
    com.sapportals.portal.security.usermanagement.IUser user =  WPUMFactory.getUserFactory().getEP5User((IUser)request.getUser().getUser());
    IResourceContext context = new ResourceContext(user);
    RID path = RID.getRID("/documents/Access/mydoc.doc");
    IResource res;
    res = ResourceFactory.getInstance().getResource(path, context);
    response.write("ResourceDisplay Name"+res.getDisplayName());
    IPropertyName propName;
    propName = new PropertyName("http://sapportals.com/xmlns/cm/rendering","displayname");
    IMutablePropertyMap map = new MutablePropertyMap();
    IProperty property;
    response.write(map.get(propName).toString());
    property = new Property(propName, "Asia");
    map.put(property);
    res.setProperty(property);
    Does anybody have an example code? Or can anybody help me?
    Thank you
    Regards
    Ismail

    Hi,
    This should work:
    com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
    Make sure you added a sharing reference for "com.sap.km.application" in your portalapp.xml.
    Best regards,
    Avishai Zamir

  • Looking for the "Procurement Document" property in marketing documents

    It's a new check in the sales order, according to the DI API documentation it is PO Process and according to the current sceen it is is Procurement Document, both of them are not visible in the DI API, maybe there another property for it??

    Hi. I am having problems with this too. I am creating a sales order in code and a purchase order for procurement. I can't find how to link the two documents so that the PO will show on the relationship map for the sale order, as well as serve for procurement.

  • Acrobat X Pro - Page Scaling Document Property

    I have an archive of 1000's of PDF files and I want to change the Page Scaling property in each of them from "Default" to "None."  I would like to automate this process, but there doesn't seem to be any way to do this with the tools provided.
    Without automation this is done by choosing File > Properties > Advanced tab > Page Scaling drop-down.  When the file is saved this set the default print-time page-scaling option to None.  My operators are having a hard time remembering to set that option when these files are printed and since this can actually be saved with each PDF file I would like to fine a way to automate setting this option for all of my PDF files.
    I am not a javascript programer, but I'm pretty clever.  Does anyone have any input to offer on this option?  Googling has led me nowhere.

    You can't set this property with JS directly. It might be possible through
    a Preflight profile, but I wasn't able to find it there, either.
    On Fri, Jun 27, 2014 at 6:49 PM, heartland printshop <

  • Sharepoint Online Lookup as Document Property for Word Quick Parts

    I'm trying to use Word Quick Parts and the document properties determined by my Sharepoint metadata to automatically fill in portions of the document I'm creating.  Then, I have templates for my company's documents that I'd like to use Quick Parts to
    populate.
    For example, I'd like to choose a project number from another list, and then have Sharepoint look up the associated project's name, address, etc. (I have Sharepoint doing this by means of lookups). Then, the Word template uses Quick Parts to automatically
    fill in information in the document, like the project number. The issue is that I am unable to get Word to allow the use of the lookup information - project name, address, etc. which are associated with the selected job number.
    I currently have the document library set up to select the project number from a lookup of another list. Then it displays the associated project name, address, etc. based on this lookup. I am aware that these columns are merely displayed and nt actually
    populated with metadata, but I have not been successful in using workflows to actually populate this metadata.
    Any help would be greatly appreciated!

    I was able to do something similar with a workflow, but it didn't work out great. For instance, I would select a Project Number from a list, then I would save the document. That would kick off a workflow that would fill in the project description. I would
    have prefered the Project Description to be filled without having to save the document. 
    A separate issue I am seeing is (not with me, but other users) when they select a Project Number from a list, the index number of the Project shows in the document, not the Project Number. When the document gets saved, the Project Number gets saved in the
    metadata. Not sure if this is a permissions issue, but I have tried granting other users full control, and they still experience this issue.

  • Insert Picture/Hyperlink as Document Property

    Hi All,
    I have been able to insert most of the metadata into Word template as document properties but the Picture and Hyperlink column is not available. I also tried using INCLUDEPICTURE field like this:
    {INCLUDEPICTURE "http://<Site>/SiteCollectionImages/{DOCPROERPTY CustomerFirstName}.jpg" \d}
    where CustomerFirstName is the Sharepoint Doc library column.
    Does anyone know how to do this? If this is Office question I can post it in that forum as well. Thanks for any pointers.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

    Hi
    This may help you
    http://stackoverflow.com/questions/9613963/how-to-insert-sharepoint-metadatapicture-into-your-word-document
    http://techtrainingnotes.blogspot.in/2007/08/sharepoint-adding-hyperlinks-to-doc.html
    Please Mark Answered if my reply solves or helps in solving your problem. Thanks! 
    Amit Kotha

Maybe you are looking for

  • Oracle 9 spatial index export/import

    Hi, when exporting/importing a user via exp/imp I encounter a problem with the numeric characters encoding during creation of a spatial index. Imp tool produces script like this: "BEGIN " "execute immediate 'INSERT INTO USER_SDO_GEOM_METADATA values

  • It becomes ... S l o w

    Sometimes while working, the system become extremelly slow! Doing simple tasks, surfing the net with firefox, moving files, etc, etc, nothing strange and I noticed that Finder is the problem in some way. After a while with the system very slow, I got

  • 2011 macbook connecting to projector

    i have an 2010/2011 Macbook Pro and I'm trying to connect it to a project. Last time I connected to a projector it just started up (2011) this time I have been trying to connect it and nothing happens. below is my Displays screen where  you'll see th

  • Create follow-up with badi u201CEXEC_METHODCALL_PPFu201D

    Dear experts, I try to create a follow-up for leads with the ppf. I use a method call and implement a new version of the badi u201CEXEC_METHODCALL_PPFu201D. When I start the action, the badi create a follow-up. But I can not create an entry for the u

  • AIR Cross Promotion

    Hello Everyone, We're really excited to introduce a new capability called Cross Promotion in Adobe AIR for mobile devices in AIR 15 beta. Cross promotions can be effective in saving some amount of advertising cost. With the right partnership, you gai