-
This depends on your data source.
If you have a database, you can simple tell the database to sort before delivering you the data. You can edit the SQL and add an ORDER BY clause in there.
If you have an XML or other source, you can physically sort it using code, or you can create an XSL that sorts the data and use the results of the transform ...
-
I'm not familiar enough with how InfoPath interacts with Web Services to be able to properly answer your question, but...
When you create a data connection, InfoPath creates one or more .xsd files for it. You can modify the schema to include the nillable attribute.
If you ever modify your data connection, you will need to update your schema ...
-
Please keep in mind that in your code you are setting text values regardless of the datatype specified in the schema. The schema identifies how to interperet the text value. But in your code, when setting a value, you must specify a text value when you are using the .text property.
If you want to not convert to a string, you might try using ...
-
XPath itself doesn't have an avg() function. InfoPath does have an avg() function under XDocument.Util.Math.Avg() but it requires a list. If you have a repeating group, the list is easy to obtain. Otherwise you might be able to get a list by doing a specialized select in XPath such as SelectNodes(''field1 | field2 | field3 | field4'').
Another ...
-
As Agni said, your XPath is the problem. You have specified a single slash at the beginning... meaning it will start searching for the first node in the XPath from the current location. Since s0:GetEmployeeInfoResponse is NOT the first node, your select methode fails. Had you used a double slash (''//''), it would likely have succeeded.
But, ...
-
You are not too far off. The XPath can get confusing...
You need to use an XPath like the following:
not(. = preceding::my:group2/my:field1)
This will remove any existing selected value from the choices available to the other drop-downs
Greg Collins [InfoPath MVP]
InfoPathDev
-
There is currently no built-in control that gives you this kind of functionality. Microsoft has a solution on their Team Blog site that shows how to make a series of check boxes in a scrolling region provide similar functionality (though a little less conveniently). No other solution has been proposed at this time that I am aware of.
One other ...
-
Sounds like there are some Windows system setting for fonts that are messing you up... or more likely with Internet Explorer. Verify that you have medium sized font selected in IE. Keep in mind that InfoPath uses the Internet Explorer rendering engine... so setting changes to IE will affect InfoPath.
Greg Collins [InfoPath MVP]
InfoPathDev
-
Perhaps InfoPath is caching the default printer choice when the application loads? Not sure what is going on.
Greg Collins [InfoPath MVP]
InfoPathDev
-
What process are you using to move the file? Are you using shell commands, or just resaving the form in the new location? I'm assuming it is the latter.
Is your form Full Trust? If so, you should be able to simply delete the original form via code once you've saved it in the new location.
Greg Collins [InfoPath MVP]
InfoPathDev