No Document ID when submitting to a form library - InfoPath Dev
in

InfoPath Dev

No Document ID when submitting to a form library

Last post 01-27-2012 08:56 AM by David.Young. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-03-2012 06:36 AM

    No Document ID when submitting to a form library

    Hi, I have some troubles with an Infopath 2010 Form and the Document ID Feature

    the form is administrator approved, signed and full trusted and uses code behind.

    Everything works fine, but when i am submitting it to the library, theres is no Document ID generated (it appears there is no ID generated, the Column "Document ID" is empty for this file). If i just upload a Form to this library, the ID is generated and is shown.

    I have no idea, why this isnt working, has anyone encountered the same problem or knows about it?

  • 01-08-2012 03:16 AM In reply to

    Re: No Document ID when submitting to a form library

    Please look at the view definition and verify that the correct ID field is being displayed. SharePoint will automatically assign an ID when a row is added to ta form library. That's a certainty if you see the items in the form library, so my guess is taht you aren't showing the right field or something.

    Patrick Halstead
    Project Manager at Qdabra
  • 01-27-2012 08:56 AM In reply to

    Re: No Document ID when submitting to a form library

    I ran into this and got a NaN for my ID.  So I did a check for a pattern - does not match pattern umm... \d+  (One or more didgit).

    If nothing is found I assign 001 to the form ID.  I believe this is because the form has not been created on the server.  (You would have to do some sort of Pre-save) So I opted to get [VALUE] max(ID)+1   It works for a good unique File Name.

    David Young

    IT App. Programmer / Analyst II

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.