Hi, - I am going to post this as I have written it all up.... but I have fixed it - by working through Ernesto's post http://www.infopathdev.com/forums/p/15039/53328.aspx#53328http://www.infopathdev.com/forums/p/15039/53328.aspx#53328
I think this is a permissions issue but cannot be sure.
I have created a form, on submit I want to send an email with link to doc id to the approvers.
So I need to submit to dbxl and retrieve the doc id before sending the email.
This is a form where I already had code so cannot use qrules. (I think I found the instructions for the following on the forum - I can't think I invented it myself ! - but I can't find the instructions at the moment.
I have created a data connection called DBXLSubmit - see attachment
I have created a secondary data source called DBXLSubmitLogic - see attachment
I have some code (see below) which is called on change of a value (Absence Type).
Public Sub getdocid()
Dim result As DbxlSubmitResult = DbxlSubmit.Submit(Me, "DbxlSubmit")
Dim submitLogicNav As XPathNavigator
submitLogicNav = DataSources("DbxlSubmitLogic").CreateNavigator()
submitLogicNav.MoveToChild("SubmitLogic", String.Empty)
submitLogicNav.SelectSingleNode("Success").SetValue(XmlConvert.ToString(result.Success))
submitLogicNav.SelectSingleNode("ErrorMessage").SetValue(result.Message)
submitLogicNav.SelectSingleNode("DocId").SetValue(result.DocId.ToString())
End Sub
When I run this form and change AbsenceType the doc id is returned and when I later submit my form it works ok.
When my user tests the form (on different PC) no doc id is returned. I have a test PC and I can log into that with my account and it works fine, if I use a test account it doesn't (hence my thought about permissions.)
In Qdabra the permissions set up are shown in the attachment.
I have checked and can see that when the user/test account submits the following error is returned - The following error occurred submitting the document: I0033: Access denied
I have looked in the eventlog of the server running qdabra - and nothing pops up when I get the error.
I have looked in the web.config and the following are set up...
<add key="ReaderGroupAlias" value="" />
<add key="WriterGroupAlias" value="" />
<add key="AdminGroupAlias" value="BUILTIN\Administrators" />
<add key="DbxlAdminAlias" value="BUILTIN\Administrators" />
So the ReaderGroupAlias and WriterGroupAlias are blank. I have put a value in these and it now works..... However I had been using Qdabra with >200 users for the last 18 months and never had this problem - so not anywhere I would have thought to look.
Catharine