-
byte[] newXmlData = Encoding.UTF8.GetBytes(xmlDoc.DocumentElement.OuterXml);
Use xmlDoc.InnerXml instead. That should solve the problem.
-
Why would you want to do this? YYYY-DD-MM is the official XML date format.
-
I don't know how to fix your form without seeing it with my own eyes or hearing a very detailed description from you of how you've set it up. The form I attached in the post before yours doesn't have the problem you're describing, so you can try to emulate that, or attach your own form to this thread.
-
I'm confused about what you're asking for. Could you explain it one more time? Could you attach an example of a form that has the problem you're encountering?
-
This example has a formula that uses the display values instead of the actual values. For simplicity, I've placed the list of available values in the main data source, but typically you would want them to come from a secondary data source.
-
http://www.google.co.jp/search?q=javascript+substring&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&redir_esc=&ei=yoiuTNi6DY_0swO-g_GXDA
InfoPath's dates are always in the format yyyy-mm-dd, so extracting out the three parts should be pretty straightforward.
-
Please disregard my earlier post if you've already read it. I didn't notice you're using IP 2003.
To the best of my recollection, the JScript Date() constructor does not accept dates in ISO (yyyy-mm-dd) format. You need to parse out the individual parts and call the Date constructor that takes three ...
-
Hello KansasCoder,
qRules isessentially a DLL that gets embedded into your InfoPath form templates (XSNs), the same way that InfoPath embeds a compiled DLL into your form templates if you write your own managed code for them. This design allows you to use qRules to perform operations on your form's data sources and other ...
-
File attachments are encoded into a base64 string and included in forms' XML.
-
For your first question, InfoPath provies a max() function, which should be the simplest way to do what you're asking. Have you tried that?
Here is a formula to conditionally append a leading zero to a single digit number:
concat(substring('0', 1, 2 - string-length(number)), number)