Insert DocID into a document - InfoPath Dev Sign in | Join | Help in Qdabra Database Accelerator Qdabra Software Product Support (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » Qdabra Software Product Support » Qdabra Database Accelerator » Insert DocID into a document Now you can find InfoPathDev on YouTube and Twitter! Find Qdabra on Facebook Insert DocID into a document Last post 02-03-2010 04:20 PM by S.Oka. 4 replies. Page 1 of 1 (5 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-03-2010 01:55 PM S.Oka Joined on 05-05-2009 Posts 33 Insert DocID into a document Reply Contact Hello, I have noticed that we can insert RefID into a document by setting up it from DAT, which is wonderfull, though I wish I could know it before. I am wondering if there is a similar way to insert DocID into a document automatically. Thanks Filed under: RefID, DocID 02-03-2010 02:31 PM In reply to Patrick Halstead Joined on 08-07-2006 Posts 2,950 Re: Insert DocID into a document Reply Contact Hi Oka-san, DBXL inserts the DocID into a document when you submit it. If your scenario is supporting multiple saves from a new document, you will need to insert the DocID into it. In DBXL 2.4 (release planned for this quarter) this becomes easier - we have an XTP that automatically does this using a new Web Service. It uses a Key to get the DocID. In DBXL 2.3, you have to insert the PI using code. It's a few lines of code. I will ask one of our developers to reply with a sample. More soon, Patrick HalsteadInfoPath MVP 02-03-2010 02:50 PM In reply to ErnestoM Joined on 08-27-2007 Posts 1,126 Re: Insert DocID into a document Reply Contact Hi,There's a sample online, here: http://www.infopathdev.com/files/folders/miscellaneous/entry49724.aspx Ernesto MachadoQdabra® Software/ InfoPathDev.comThe InfoPath Experts – Streamline data gathering to turn process into knowledge.™ 02-03-2010 03:29 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 2,038 Re: Insert DocID into a document Reply Contact Hi, For a code sample, are you using InfoPath 2003 or 2007? Do you use VB or C#? Thanks! Hilary StoupaQdabra® Software/ InfoPathDev.comThe InfoPath Experts – Streamline data gathering to turn process into knowledge.™ 02-03-2010 04:20 PM In reply to S.Oka Joined on 05-05-2009 Posts 33 Re: Insert DocID into a document Reply Contact Hello, Thank you for the prompt reply. We are using InfoPath2007, though I am not willing to use a code. But I also found previous post; http://www.infopathdev.com/blogs/david/archive/2008/07/21/codeless-way-of-getting-dbxl-document-properties-docid-doctype-and-dbxl-url.aspx It was very easy if we need DocID from the second opening of a document. Thanks Page 1 of 1 (5 items) Copyright © 2003-2010 Qdabra Software. All rights reserved.View our Terms of Use.
Hello,
I have noticed that we can insert RefID into a document by setting up it from DAT, which is wonderfull, though I wish I could know it before.
I am wondering if there is a similar way to insert DocID into a document automatically.
Thanks
Hi Oka-san,
DBXL inserts the DocID into a document when you submit it. If your scenario is supporting multiple saves from a new document, you will need to insert the DocID into it. In DBXL 2.4 (release planned for this quarter) this becomes easier - we have an XTP that automatically does this using a new Web Service. It uses a Key to get the DocID. In DBXL 2.3, you have to insert the PI using code. It's a few lines of code. I will ask one of our developers to reply with a sample.
More soon,
Hi,
There's a sample online, here: http://www.infopathdev.com/files/folders/miscellaneous/entry49724.aspx
For a code sample, are you using InfoPath 2003 or 2007? Do you use VB or C#?
Thanks!
Thank you for the prompt reply. We are using InfoPath2007, though I am not willing to use a code. But I also found previous post;
http://www.infopathdev.com/blogs/david/archive/2008/07/21/codeless-way-of-getting-dbxl-document-properties-docid-doctype-and-dbxl-url.aspx
It was very easy if we need DocID from the second opening of a document.