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 / March 2005

Tip: Looking for answers? Try searching our database.

Still problems with limits

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sam - 22 Mar 2005 11:15 GMT
The matter is same: too many calculation because of loop. Sometimes the error
message is displayed but sometimes the calculation fields are just zero
without warning. I received advice to do boolean flag as follows

var handler = 0;
function ...::OnAfterChange(eventObj)
{
  if(eventObj.IsUndoRedo || handler > 0) return;
  handler = 1;
....

 handler = 0;
}

I just can't get it work or I can't use it properly. Programming skill is
not so good. Big amount of calculation should be launched when opening the
form and excuting a query from database(XDocument.Query();). Also
calculations should be made when certain check box is checked. I have
problems in both cases. At least one of those cases is not working when
executing. What can be done?

Sorry if I have asked similar questions, but I just want to make this work
properly.
Signature

-Sam

Franck Dauch? - 22 Mar 2005 17:28 GMT
Looks like these events are asynchroneous in InfoPath.  So OnAfterChange is
triggered by one node, and while your flag is set to 1, another node
triggers it too...then the code that was supposed to run for that node is
not running.....Your flag needs to be a little more sophisticated if you
want the proper code to be run.

Franck

> The matter is same: too many calculation because of loop. Sometimes the
> error
[quoted text clipped - 20 lines]
> Sorry if I have asked similar questions, but I just want to make this work
> properly.
Sam - 23 Mar 2005 09:19 GMT
>Your flag needs to be a little more sophisticated if you
> want the proper code to be run.

Yes, I realize that but the problem is that I don't know where to start when
building a working code for the flag. I'm not so good in programming.  
 
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.