Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2007

Tip: Looking for answers? Try searching our database.

Why all schema fields are 'Can not be blank'?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
timo.ratilainen - 10 Oct 2007 09:12 GMT
Hi

I'm using InfoPath 2007.

I have a schema (five .xsd files) and I'm trying to generate a form, which
will be used to generate a test data (.xml files) for our project.

I genarated a blank form from "File->Design a Form Template->XML or Schema"
and then gave the location of the schema. Now I have the schema as a
datasource.

The problem is that all the fields are displayed as 'Can not be blank'
fields. This is not true by the schema. For example, if I create sample data
by Altova XMLSpy it will give me only about 30 filled fields, but in the
InfoPath form, I have to fill all 110 fields before the saving can be done
without the message: "The form contains validations errors. Erros are marked
with either a red asterisk (required field) or a red, dashed border (invalid
values). Do You still want to save it?"

There are lots of fields in the schema that says "minOccurs=0", but still
InfoPath says it can not be blank.

Does anybody knows why InfoPath is acting like this?

Thanks,
Timo
Kalyan G Reddy MVP (GGK Tech) - 11 Oct 2007 14:37 GMT
Hello

Read the Link, It might give you an idea
http://www.infopathdev.com/forums/p/1556/7072.aspx#7072

I hope it will help you.
Signature

Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com

> Hi
>
[quoted text clipped - 22 lines]
> Thanks,
> Timo
timo.ratilainen - 11 Oct 2007 15:25 GMT
Hi

Thank You for the answer.
However, it is not going to help use, because we can not modify the schema
(it is fixed by European Commission now and forever :)

But, I think we can insert test data by some other tool... Excel + Altova...
or something.

Timo

> Hello
>
[quoted text clipped - 29 lines]
> > Thanks,
> > Timo
Andrew Begun - 12 Oct 2007 04:53 GMT
> Hi
>
[quoted text clipped - 40 lines]
>>> Thanks,
>>> Timo

By default InfoPath will add the XML nodes that correspond to the schema
to the form - if the data type is a type where no text node is invalid
then it will be marked as cannot be blank.  If the element (or
attribute) itself is optional you can remove it from the XML file that
InfoPath generates via Tools | Default Values, and uncheck the
elements/attributes that you don't want included.  Note: tou can only do
this if the element/attribute is optional according to the schema.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.