-
Only way that I found was to load the XML schema into a IXMLDOMDocument and check for the datatype of a specific node by querying the xml document with ''selectSingleNode'' method.
IXMLDOMDocument xd = thisXDocument.CreateDOM();
xd.load(''myschema.xsd'');
string type = xd.selectSingleNode(<xpath>).text;
This is not the best way but this is ...
-
Hi Patrick
Thanks for the response.
Maybe I should clarify things a bit.
First, Although I may only define 20 forms, each ''save'' of a form results in a seperate XML file. So if the user filled out the same form 10 times, that'd be 10 XML files for that one form that would have to be submitted at the end of the day, right? Or are you thinking ...
-
Hello stuarts,
As Agni mentioned above this is a C# method and therefore will work in C# only.
About full trust and System.Environment.UserName -> Domain level trust is enough for this. It does not need full trust.
Shanthi
InfoPathDev India
-
Seems to work for me now, but it's all in French. I so wish I could speak French.
Patrick Halstead [InfoPath MVP]
InfoPathDev
-
Hi Virgul,
I must point out that if it weren't for Matthew Blain and Vani Mandava - not to mention Microsoft - this book would never have reached fruition. In fact, Matthew came it at the eleventh hour to ''save our bacon''. Writing a book - even one this short - is hard work!
Now, I wish I spoke French for then I could better appreciate French ...
-
Hi Sami,
Can you send some steps to reproduce this problem from scratch?
Thanks
Patrick Halstead [InfoPath MVP]
InfoPathDev
-
Hi Lee,
Is your form full-trust? Export requires security level 3 (full trust). I hope this helps.
Patrick Halstead [InfoPath MVP]
InfoPathDev
-
Hi Darin,
Welcome to our forum! Let me see if I can respond to your post...
If users have 20 forms with 10 fields they should only have 20 xml forms to submit at the end of the day. E-mail integration is built in, so they could conceivably send to an automated mailbox that opened the forms and submitted them to a database or website. Assuming ...
-
IP's probably limiting this because it would lead to a flashing user interface.
Patrick Halstead [InfoPath MVP]
InfoPathDev
-
Sorry, I noticed a typo the last line of my current code should read:
nodeAlias.text = System.Environment.UserName;