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 / January 2006

Tip: Looking for answers? Try searching our database.

XSD as Main Datasource and Required fields (aka, Cannot be blank)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob C. - 23 Jan 2006 16:03 GMT
Below is a snippit that demonstrats how to create a required/non blank
element in an .xsd document used as the main datasource for your infopath
form:

Comments?

    <xsd:element name="foo" type="my:requiredString"/>
    <xsd:simpleType name="requiredString">
        <xsd:restriction base="xsd:string">
            <xsd:minLength value="1"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="requiredAnyURI">
        <xsd:restriction base="xsd:anyURI">
            <xsd:minLength value="1"/>
        </xsd:restriction>
    </xsd:simpleType>
Albator - 24 Jan 2006 07:59 GMT
Hi,

Just for information:

when you define an attribut and the type is non-string this attribut
will always be required!

Thierry
 
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.