1) I made a form from an XML Schema, and several non-required integer schema
attributes became required fields on the form. The "Cannot be left blank" box
is checked and noneditable. Any fix?
2) I have a repeating table bound to a schema element with MinOccurs=0, but
it won't let me set the number of rows to 0. This has worked for other
Repeating sections, but for some reason this one doesn't offer me that
option. Its a problem because the attributes are required within a row, but
the row is not required; at the moment since I must have one row the
attributes become effectively required for the form.
3) Is there a way to push XML content to a Web browser and launch InfoPath
as a viewer app (if I don't have InfoPath Forms Services)? Is there a way to
encode the form location in the Web message so that InfoPath will
automatically find it?
Thanks, -Stan
Greg Collins - 11 Sep 2007 23:32 GMT
1. Non-String attributes are ALWAYS required. Solution1: Make the attributes
strings. Solution2: Change non-string attriubtes to elements, and make them
nilable.
2. Go to Tools | Default Values, and uncheck the box for the repeating node.
This will tell the template to not insert a row by default.

Signature
Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com
Zen Monkey - 14 Sep 2007 18:38 GMT
On Sep 11, 12:20 pm, Hoping To Be Impressed by Infopath
<HopingToBeImpressedbyInfop...@discussions.microsoft.com> wrote:
> 1) I made a form from an XML Schema, and several non-required integer schema
> attributes became required fields on the form. The "Cannot be left blank" box
> is checked and noneditable. Any fix?
I just dealt with this one myself and here's the solution I cam up
with: Open the schema xsd file in Visual Studio and set the fields to
"nilable". Now, they are no longer required fields. Hope that helps