-
Hey, cool, good luck with your DB stuff, most of the issues I had with the Forms Server were related to permissions, I hope you get your stuff to work.
-
Yes, there is... which InfoPath are you using, 2003 or 2007? You go Tools | Data Connections | Add, and then add a query connection. Then add a button to your form, add a Rule to the button to Query this connection.
-
Well, your XML will depend on how many controls you want to have and whether or not they repeat or not. If you want to have a repeating table bound to a secondary data source, create an XML which has an element that repeats:
<myData>
<row>
<column1/>
<column2/>
...
-
Any XML file will do, such as:
<myData>
<dataField/>
<myData>
Just save it anywhere on your disk. Once you add a data source based on it, it will be included as part of the form template so you don't need to worry about storing it.
-
Use declarative validation...
Suppose your attachment field is called field1 and you don't want it to be bigger than 100k, that means that length of the piture field cannot be more than 136533 charaters (assuming UTF8).
1. Open the Data Source pane
2. Double-click on field1 to bring up its properties
3. In Validation, add a new ...
-
Well, that's strange, you should be able to just do this in your init right after you assign domNode:
this.domNode.ownerDocument.setProperty("SelectionNamespaces", "xmlns:n1=\"urn\"");
Is domNode's type IXMLDOMNode? If not, cast it to this type.
-
Since all most controls have to be bound to something in some data source, whenever you cannot or do not want to modify your main data source you answer is a secondary one.
The best lowest-maintenance data source for these needs are from XML files. Simple create an empty XML file having as many fields as you need, then add it to your solution as ...
-
The Forms Server seems to be confused with your xpath... to check if this is the case, try to see if you can re-write it without using the prefixes (start with s1 and keep going up). You can rewrite this without s1 as this:
/dfs:myFields/dfs:dataFields/tns:SubmitForm/*[local-name()='newForm']
I think what is happening is that you have a ...
-
You can either do it the hard way, as in decoding the header (see more here: http://www.infopathdev.com/forums/p/1474/6839.aspx#6839).
Or you can just make the following claim: binary files are encoded with BASE-64 encoding, so you only have 3 bytes get encoded with 4. That means that the original size of the file is the string length of the XML ...
-
1. Create an xml that looks like this:
<users>
<user name="John" email="jdoe@yourdomain">
<user name="Mike" email="mdeere@yourdomain">
...
</users>
2. Add this xml as a secondary data source (say, "Users")
3. When editing the listbox properties, ...