Customize the Value of Auto generated Document ID in sharepoint library in 2013

I have a document centre with Couple of Document Libraries like Finace, HR etc. I would like to set differnt document ID for each Documents in these libraries , eg, HR documents-HR-01, Fince documets-FIN-01 etc.
If I set the Docuemnt id in site settings, that generate an ID of same format  for all Document Libraries.I do not want to add a new column and make it as calculate column because I wan to do search based Document ID
Is there any way to customize the exisitng Documnet ID in the Libraies for each document libries ?
dfd

Document ID will be available in ItemAdded event receiver
public override void ItemAdded(SPItemEventProperties properties)
base.ItemAdded(properties);
SPListItem item = properties.ListItem;
String id = item["ID"].ToString();
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

Similar Messages

  • Problems with the summit that auto generate  t:panelTab

    Hi,
    I have a problem with the summit that auto generate <t:panelTab. When I submit with this button the bean PortfolioPageBean doesn�t recover the property contractListItem. However when I submit with <h:commandButton commandButton action="add", the bean recover information. What is the difference between these two types of submits?. This is my core:
    <h:form id="menuTag">
    <h:inputHidden id="contractListItem"
                   value="#{PortfolioPageBean.contractListItem}" />
    <h:commandButton action="add" id="buttonTab" value="Add" />
              <t:panelTabbedPane styleClass="tabbedPane"
                   activeTabStyleClass="activeTab" inactiveTabStyleClass="inactiveTab"
                   disabledTabStyleClass="disabledTab" activeSubStyleClass="activeSub"
                   inactiveSubStyleClass="inactiveSub" tabContentStyleClass="tabContent"
                   serverSideTabSwitch="true" id="menuTabs">
                   <t:panelTab id="tab1" styleClass="" label="Contract Listing">
                        <f:verbatim>
                             <br>
                        </f:verbatim>
                        <f:subview id="subtab1">
                             <jsp:include page="contract-list.jsp" />
                        </f:subview>
                   </t:panelTab>
                   <t:panelTab id="tab2" label="General Policy Details" style="align:center">
                        <h:outputText
                             value="#{PortfolioPageBean.contractListItem}"></h:outputText>
                        <f:verbatim>
                             <br><br><br>
                        </f:verbatim>
                        <f:subview id="subtab2">
                             <jsp:include page="general-policy.jsp" />
                        </f:subview>
                   </t:panelTab>
              </t:panelTabbedPane>
    </h:form>
    Thank for your time!!!

    Hi,
    I have a problem with the summit that auto generate <t:panelTab. When I submit with this button the bean PortfolioPageBean doesn�t recover the property contractListItem. However when I submit with <h:commandButton commandButton action="add", the bean recover information. What is the difference between these two types of submits?. This is my core:
    <h:form id="menuTag">
    <h:inputHidden id="contractListItem"
                   value="#{PortfolioPageBean.contractListItem}" />
    <h:commandButton action="add" id="buttonTab" value="Add" />
              <t:panelTabbedPane styleClass="tabbedPane"
                   activeTabStyleClass="activeTab" inactiveTabStyleClass="inactiveTab"
                   disabledTabStyleClass="disabledTab" activeSubStyleClass="activeSub"
                   inactiveSubStyleClass="inactiveSub" tabContentStyleClass="tabContent"
                   serverSideTabSwitch="true" id="menuTabs">
                   <t:panelTab id="tab1" styleClass="" label="Contract Listing">
                        <f:verbatim>
                             <br>
                        </f:verbatim>
                        <f:subview id="subtab1">
                             <jsp:include page="contract-list.jsp" />
                        </f:subview>
                   </t:panelTab>
                   <t:panelTab id="tab2" label="General Policy Details" style="align:center">
                        <h:outputText
                             value="#{PortfolioPageBean.contractListItem}"></h:outputText>
                        <f:verbatim>
                             <br><br><br>
                        </f:verbatim>
                        <f:subview id="subtab2">
                             <jsp:include page="general-policy.jsp" />
                        </f:subview>
                   </t:panelTab>
              </t:panelTabbedPane>
    </h:form>
    Thank for your time!!!

  • How can I forward a email without the extra info auto generated by Thunderbird ?

    When I foward a emai, Thunderbird auto-generates lots of extra information that is not need to be seen by the person I am forwardind to the message.
    How can I configure Thunderbird forward to clean all the extra info auto generated by Thunderbird ?
    Best regards
    HC

    ''Airmail [[#answer-708174|said]]''
    <blockquote>
    From the menu bar select View-Headers and set it to Normal instead of All.
    The mail system generates all this info and not Thunderbird FYI.
    </blockquote>
    SOLVED ! :)
    Thank you very much for your help :)
    HC

  • Can Forte C++ build the class hierarchy and generate documents?

    Can Forte C++ build the class hierarchy and generate documents?

    Can Forte C++ build the class hierarchy and generate documents?

  • To get the value of Dynamically generated Items

    Hi , i am Writting an applications using HTMLDB, i have a page which is an input page for inputting number of hours you worked on different projects i am createing the Input text filed items dynamically through web PL/SQL , what i want to do is when the user click on the sumbit button i want to read the values of the ITem and insert into a table , since they are dynamically created Items how does HTML DB handle them is there a way to get the Value for the items i tried displaying &P9_1. which is one of the items created dynamicaly but empty value is displayed.
    Any assiatnce is of great help.
    Thanks in advance
    Bharath

    This is done once the page is submitted, and the values are available in the arrays e.g. htmldb_application.g_f01 etc.
    This is covered in the manual

  • How to customize the values displayed in the calendar?

    Hi,
    Can anyone tell me where can I find the source code of the calendar?
    While creating the calendar, in the wizard we give the table names and column names. But I want to modify the query according to my requirement.
    So I just want to know where can I find the source code so that I can modify it.
    Thanks in advance :-)

    Hi,
    Thanks for your reply.
    Actually, I have a scenario.
    I have a table exactly similar to EMP table.
    I am creating a calendar where every employee can enter their schedules. I am using the Skillbuilders Schedule plug in to achieve this.
    But there is a constraint who can see whose schedules.
    For example, in EMP table, if you look at the tree structure:
    KING
    |
    -------BLAKE
    | |
    | -------ALLEN,JAMES,MARTIN,TURNER,WARD
    |
    ------CLARK
    | |
    | -------MILLER
    |
    ------JONES
    | |
    | --------FORD
    | | |
    | | ---------SMITH
    | |
    | --------SCOTT
    | | |
    | | ---------ADAMS
    Now, my requirement is JONES can see the schedules of KING, BLAKE, CLARK, FORD, SCOTT and no one else. Not even SMITH and ADAMS.
    ALLEN can schedules of BLAKE, JAMES, MARTIN, TURNER, WARD and no one else.
    To be precise, one level up, same level and one level down.
    Can you please let me know the query that can satisfy this condition and where to use that query.
    Thanks in advance.

  • What's the easiest way of transferring documents, photos and iTunes library from my Mac Air to my iMac?

    I have just bought a 27" iMac (mid 2011) and want to transfer my douments, photos and iTunes library from my Mac Air 1,1.
    Can someone please advise the best and easiest way of transferring the data?
    Cheers, Mark

    See Pondini's Setup New Mac guide.

  • Need to modify header & footer of all Word documents in a SharePoint library

    We have lots of Word documents in a library where we need to adjust all of the documents' header region's distance from top of page. (A standard setting under the Header & Footer tab in Word). Since we wouldn't want to do this manually for all these
    docs, I am looking for a solution to update these by running a script or something. Any way of doing this by Powershell, or other suggestions?
    Henning

    I am having trouble getting the script to do it's thing. I seem to have gotten it to run through the right document library, but it fails right at the start. Seems to me that it can't get to load the template file to get the header of the template. Can you
    see what the problem is from the log? I included the initial errors from start to opening the first file in the library.
    PS C:\SharePoint Tools> .\SDSUpdateHeadersFromWordTemplate.ps1
    New-Object : Cannot load COM type Word.Application.
    At C:\SharePoint Tools\SDSUpdateHeadersFromWordTemplate.ps1:16 char:19
    + $word = New-Object <<<< -ComObject Word.Application
    + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
    + FullyQualifiedErrorId : CannotLoadComObjectType,Microsoft.PowerShell.Commands.NewObjectCommand
    Property 'Visible' cannot be found on this object; make sure it exists and is settable.
    At C:\SharePoint Tools\SDSUpdateHeadersFromWordTemplate.ps1:19 char:7
    + $word. <<<< Visible = $false
    + CategoryInfo : InvalidOperation: (Visible:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
    You cannot call a method on a null-valued expression.
    At C:\SharePoint Tools\SDSUpdateHeadersFromWordTemplate.ps1:24 char:36
    + $srcDocument = $word.documents.open <<<< ($templatePath)
    + CategoryInfo : InvalidOperation: (open:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
    Property 'SeekView' cannot be found on this object; make sure it exists and is settable.
    At C:\SharePoint Tools\SDSUpdateHeadersFromWordTemplate.ps1:27 char:43
    + $srcDocument.ActiveWindow.ActivePane.View. <<<< SeekView=$wdSeekPrimaryHeader
    + CategoryInfo : InvalidOperation: (SeekView:String) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
    You cannot call a method on a null-valued expression.
    At C:\SharePoint Tools\SDSUpdateHeadersFromWordTemplate.ps1:28 char:27
    + $srcDocument.Sections.Item <<<< (1).Headers.Item(1).Range.Copy()
    + CategoryInfo : InvalidOperation: (Item:String) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
    Updating header for http://oslshp13/sites/qdoc/millsqdoc/Mills Fredrikstad Q docs/Frstadprosedyre1.docx

  • How can I customize the auto-generated WSDL when using a PL/SQL webservice?

    My webservice returns a refcursor as an ArrayOfString. (I followed the sample code.) Instead of everything being returned in one large array, I need to create a correct record hierarchy, like <rec1><fld1></fld1></rec1>, etc.
    As far as I know, this grouping has to be done in a WSDL file. However, following this sample, the WSDL is auto-generated and overwritten with each launch of the webservice.
    Am I missing something, or are there other secrets/tips?
    thanks

    Very Nice:) Thanks!
    1. I added this to my HTM HEADER:
    <script language="JavaScript" type="text/javascript">
    function test_javaprompt () {
    var Hours = prompt("How Many Hours?");
    $x('P142_HOURS').value = Hours;
    doSubmit()
    </script>
    2. I Created an Item:
    P142_HOURS
    3. I Created a Button:
    TEST_JAVA
    a. In the Button area for, Optional URL Redirect, I selected- Target is a URL
    b. URL Target- javascript:test_javaprompt();
    When I press the Button then it does Exactly what I want it to do.
    Except....
    Ultimately, I do not want this javascript assigned to the button.
    I would like to run this javascript when the value of a DatePicker Item, (P142_DROPS_SUBMITTED) is changed.
    If you can help me with that then I'll be forever grateful:)
    -Gary

  • How to Create a Auto Generated number with some preceding text in Sharepoint 2010

    I am trying to create a auto generated number field in Sharepoint 2010 list item. My requirement is to have the following format number generated when new request is created in Sharepoint using form. Auto generated Ticket ID should be in the following format
    "IR13000" "IR13001" "IR13002"....... Please let me know how to get this done. I tried to use combination of default ID and Characters but its not working for new requests, its only reflecting for existing uploaded requests. I
    am trying this for taking up Ticket requests by filling up some fields in the form. Any quick help is much appreciated.
    Thanx

    Here are the steps:
    1 - Open your SharePoint site in SP Designer 2010.
    2 - Click Workflows and add a List workflow. Associate this workflow on the list where you want the Random Text to be generated.
    3 - Inside the workflow editor, select the Action "Update list item"
    4 -  Select 'Current Item'.
    5 - Click Add.. and select the field which needs to be updated with the Random Text. Make sure this column is not of type "Calculated" type, otherwise you won't see it in the list of the fields within the workflow.
    6 - Click "..." button in the next textbox which will open String Builder dialog box.
    7 - Type IR and then click 'Add or Change Lookup and select ID column from "Field from source". Hit OK.
    8 - It should look like IR[%Current Item:ID%]
    9 - Hit OK.
    10 - Save and publish the workflow. (Please note that currently this workflow is not set to auto run on creating new items. That's because we want to test it at this point of time).
    11 - Go to your list in SharePoint and create a new item. After creating, select the item and click Workflows and then run this workflow.
    12 - You should be able to see the text "IR1" in the designated column.
    13 - Once you see that it's working, go to SPD and set the workflow to run automatically on creation of the new item. Save and publish and then return to your list in SharePoint.
    14 - Create a new item there and you should see the Random value in the column.
    15 - You will also see the column in the New form. In order to remove it, go to List settings > content types > Item content type > and select Hidden for this column so that it doesn't showup in any form.
    Try it and let me know how it goes.
    Thanks,
    Ashish

  • Adobe 7, and opening a pdf file with a auto generated report

    We have upgraded to the latest version of a tool we use to generate reports. The older version, when you exported the report to a PDF file, it would open it in an internet broswer, IE 6/7 in this case, and just display the PDF in the browser.
    With the latest version of the reporting tool, when you export a report to a PDF file, it opens up a blank IE windows, and subsequently opens the autogenerated report in a separate Adobe Reader window, but it does not have the primary focus. It pop's under the blank IE window. This causes a lot of confusion to our employees who are not computer savvy as they are not aware the PDF actually opened since the window did not get primary focus on the screen.
    The company which writes the tool for us says there are no changes to the way it auto generates the pdf file, and insists it has nothing to do with their software.
    We decided to dig a little deeper and only found one difference between the old and the new software.
    Old - Content-Type: application/pdf
    New - Content-Type: application/pdf;charset=UTF-8
    Would that command cause our problems? It almost seems at though Adobe 7 plugin in IE7 doesn't recognize the "charset=UTF-8" and dumps the pdf to the full Adobe reader.
    If anybody has any insight, or would need some more info to help solve the problem just let me know.
    Also, we have to stay with Adobe 7, since all 7000+ computer's this affects have identical images, and upgrading to a new version costs $$$$ and has to go through massive channels.

    Welcome To  Discussions Kathy216!
    If these are files, that are already on the Hard Drive, click once on a pdf document to highlight it.
    Press the Command + I keys, to Get Info.
    Click on the ▼ Disclosure Triangle for Open with:.
    Select Adobe if listed. If it is not listed, select Other..., and navigate to Adobe, and press Add.
    In the Get Info window, click on Change All.
    If these are pdf documents, that you are viewing on the Internet, a handy utility to use is PDF Browser Plugin.
    ali b

  • Auto-generated Swing Code: jbInit()

    Hi,
    I noticed that the auto-generated code for Swing apps directly uses class member variables, which is far from ideal. For example:
    public class Screen {
        private JLabel boardingPassLabel = new JLabel();
        public void jbInit() {
            boardingPassLabel.setText("Boarding Pass");
            boardingPassLabel.setBounds(new Rectangle(170, 25, 115, 20));
            boardingPassLabel.setFont(new Font("Tahoma", 1, 12));
    }The issue is that instantiating Screen will cause a JLabel to also be instantiated. While this is fine for a single screen and a single label, if there are hundreds of screens, each with twenty labels and buttons, it quickly gets out of hand.
    It would be nice to see the following code auto-generated:
    public class Screen {
        private JLabel boardingPassLabel;
        public void jbInit() {
            JLabel boardingPassLabel = getBoardingPassLabel();
            boardingPassLabel.setText("Boarding Pass");
            boardingPassLabel.setBounds(new Rectangle(170, 25, 115, 20));
            boardingPassLabel.setFont(new Font("Tahoma", 1, 12));
        public JLabel getBoardingPassLabel() {
          if( boardingPassLabel == null ) {
            boardingPassLabel = createBoardingPassLabel();
          return boardingPassLabel;
        protected JLabel createBoardingPassLabel() {
          return new JLabel();
    }This allows subclasses to provide a different subclass of JLabel (if needed). It also means that there is little overhead to instantiating the Screen class. Thus if we had to instantiate 100 screens, each with 20+ widgets, there would be no performance hit.
    As a work-around, we can simply not instantiate the Screen classes until just before they are used. This may not work in our situation, though.
    Thoughts?
    D

    I should probably add a detail here.
    We are running the Swing app on the CrEme JVM under Windows CE on a 520 MHz hand-held device with at most 256 MB of memory. (The specs say 520 MHz; but runs slower in practice.) Thus we need a lot more control over object instantiation, as has been described.
    It would be nice to see a "use lazy initialization" checkbox for the auto-generated code. Or perhaps a "generate and use accessors" checkbox.
    Note that the following code contains a redundancy:
        private JLabel boardingPassLabel = null;The assignemnt to null is superfluous; it adds about 50 more bytes to the final class size (using Sun's javac). It can be omitted for class member variables.
    D

  • Auto generated calls from ipcc UCCX?

    Dear All,
    I am using ipcc version 8.5. i have to add an feature in the contact center in which the system will auto generate calls to the customers for complaint managment and play a prompt with menu options that if complaint is resolved press one if not press 2.
    I am new to ipcc so please can anybody help with proper steps to make it working.
    we have a outbound licesnse.i tried another way doing it via a campaign but when i added a new compaign only agent based option was available so i am not left with the option to make ivr campaign for that.
    the second option is i tried to make a http triggered application. but i really dont know how to make it work. how to use get http info in the script and place call method.
    if any one can explain it in a simple way with proper steps it would be really appreciated.
    Best Regards
    Bureera Sabir

    According to the 2nd article - I've created an empty Company_Phone_Number_Normalization_Rules.txt file and placed it in the Lync file share, in order to avoid any suspicion that the built-in file might be used. I've updated the address book but unfortunately
    can't restart the FE services at this time. There's no still no change in the client.
    Yet - the problem here is the numbers shown aren't present in the files making up the Lync address book inside the local user's sip profile folder.

  • Flex project to auto-generate reports

    The requirements for the project I'm working on are to:
    1) Create a chart-based report definition
    2) Publish the definition to the database
    3) Auto generate the chart/report every X minutes/hours/days,
    etc as a pdf
    4) Notify users where to download the report
    So far, I've gotten the first part done so that the user can
    define the report. And, I think publishing to the database should
    be easy enough, however for the auto-generation, I was thinking of
    using flex with charting to draw the reports, but I'm a little
    fuzzy about generating the pdf and also about having the program
    auto-generate things. I have been using a simple servlet up to this
    point to communicate with the database (Oracle). However I was
    thinking of using BlazeDS since I've been reading about it.
    Does anyone have any experience with BlazeDS? Is it even
    necessary? Do you have any comments or suggestions about which
    technologies I should use to implement this solution?
    And as far as the PDF generation, I had looked into Alive
    PDF, but is there a better/easier solution?
    Thanks for any help you can offer!

    Not that I would recommend this in most case's but if the
    PDF's do not need to be dynamic you could use something like PDF995
    and send your page to it as a formatted print job. I had a client
    that wanted printouts from Filemaker in PDF so they could Email
    them to a list. Had to be automated so we just set up a print
    script in filemaker to print to a PDF converter. Don't think it was
    actually PDF995 and I do not remember what it was but I mention
    PDF995 because I use it at home. You just need something where the
    API allows you to specify the location to save too and the name of
    the file as part of the printjob. Send the files to a standard
    location on your server and trap the name of the file in a
    database. Bingo. Easy PDF's.
    Of course the alternate option is to auto generate your chart
    as a web viewable formatted for print version. As it changes notify
    your users with an email link of where to view it and then let them
    print their own PDF using PDF995 or other such utilities if they
    want to.
    And then get back to the Game of Half-Life2 Death Match going
    on in the server room.

  • Packaging material to auto-generate lines in delivery & PGI

    Dear Experts,
    The requirement is to have the inventory for packaging material to reduce on PGI.
    I am trying to resolve this by getting the packaging materials used in the delivery to auto-generate new line line/s. I have set the packaging material's GenerateDlvItms to "B" & checked the box to "generate packaging material items" in the delivery type, but no lines get created!
    Whats the right way to reduce packaging material stock on PGI?
    Does generating the line in delivery help? If yes, hows the right way to do it?
    Please advice.
    Many thanks in advance !
    Best regards,
    Rohit L.

    Found answer myself

Maybe you are looking for

  • After resizing a disc partition using disk utilities, I can no longer boot windows. HELP! what is the best thing that I can do to fix this

    Bare with me as Im no computer genius but ... This afternoon I wanted to create more disc space on my Windows partition as I am using CAD software and wanted to free up as much space as possible. So, I went into disk utility and reduced the size of t

  • IPod Shuffle with older iPod Mini

    Hello, My oldest daughter has been using an iPod Mini for quite a while and now has the newest version of iTunes on our computer, with basically no problems. I got my middle daughter an iPod Shuffle for Christmas. My oldest is terrified to hook up th

  • XCode connection problem with XCode

    Hi! I need some advice with my developer environment. When i got my dev-licence everything worked fine. But after som days my iPhone started to beap and XCode failed to connect to the iPhone. Some times it had a short connection for i minute or so. I

  • BT OPENZONE

    So I'm trying to extend the Openzone I subscribe to. I bought a TP Link access point and have tried using it as an extender with no success. also tried as access point using ICS via my laptop. This was odd, I could traceroute through the internet but

  • Prevent my MacBook Pro to turn into sleeping mode

    How can I prevent my MacBook Pro to turn into sleeping mode when playing music on it with Itunes?