dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


advertisement
 

Introduction to Microsoft Office InfoPath 2003 : Page 3

Microsoft Office InfoPath 2003 is a form creation program for seamless data integration with databases, Web services, XML, or any other XML-enabled system. Just drag and drop controls onto the InfoPath form—the result is a data entry form with advanced controls that conforms to Microsoft's interface standards, complete with Microsoft Office 2003 toolbars.


advertisement

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


The Finished Form
Notice the Amazon hyperlink control in the form near the ISBN number. The expression for the link can be static or bound to a data source element. For the link expression, enter an XPath function to preface the ISBN field with the path to its Amazon page:

concat('http://www.amazon.com/exec/obidos/ISBN=', @cISBN)

Clicking on the link from the preview brings up the book's information page on Amazon. InfoPath 2003 also offers simple data validation using XPath expressions that can be easily added via the Data Validation dialog box. But the dialog box's condition builder is limited to handling comparisons of field values or constants and doesn't support expressions like validating that the ISBN field only contains numbers. For more complex validation, you can script the control's OnBeforeChange, OnValidate, or OnAfterChange event. Here's the script that uses a regular expression to verify that the ISBN is valid:

function msoxd__Titles_cISBN_attr::OnValidate( eventObj) { if(eventObj.Site.nodeTypedValue



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date