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 / December 2004

Tip: Looking for answers? Try searching our database.

Pedantic observation from a NEWBIE :-)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darren Neimke - 08 Dec 2004 06:19 GMT
I'm just starting to develop InfoPath forms (for fun or profit) and, after
browsing through SDK documentation thought that I'd dive in and see how some
of the Sample Forms are implemented to get ideas about how to build "best
practices" forms.

So, I opened up the Detailed TimeCard form and - being a true programmer :)
- opened up the js code file in WSE.

Looking at the OnAfterChange handlers you can see that, changes cause calls
through to updateTotals().  There's some code in there which causes the
OnAfterChange handlers to exit if (XDocument.IsSigned) or if
(oEvent.IsUndoRedo).

Shouldn't they also exit if (oEvent.Operation == "Delete").  That's what
you'd normally do right?
Andrew Watt [MVP - InfoPath] - 08 Dec 2004 08:57 GMT
>I'm just starting to develop InfoPath forms (for fun or profit) and, after
>browsing through SDK documentation thought that I'd dive in and see how some
[quoted text clipped - 11 lines]
>Shouldn't they also exit if (oEvent.Operation == "Delete").  That's what
>you'd normally do right?

Hi Darren,

I haven't gone to the sample form templates to check the exact
scenario, but if the form control had held a value and that was later
deleted wouldn't you want to reflect the effect of the deletion in the
total?

Andrew Watt
MVP - InfoPath
Darren Neimke - 08 Dec 2004 11:25 GMT
Yes, well... I guess that you've got a point there don't you :-)
 
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.