Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Very Hot Topic (More than 25 Replies) Polling a Folder for a Dropped In new file (Read 4228 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #15 - Oct 27th, 2011 at 7:34pm
Print Post Print Post  
Quote:
I am looking into why you are unable to close forms in an application that is running code at an interval.


Thanks Mark. Please, don't get me wrong, but we have to get in and get out of the forms all day long and if we cannot do that it is a problem.  Moreover, even if we turn off the toggle switch, it takes sometime before the time cycle is over to be able to escape out of the form.  Unfortunately the code affect all the forms in the application.

You guys have spoiled us and gave us whatever we asked for!! But then because of that non-programmer guys like us confidently say that we can handle anything and everything with Sesame on our side and Lanticans backing us up with all timely advice and support.  Thanks for everything.
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #16 - Oct 27th, 2011 at 8:32pm
Print Post Print Post  
Bharat,

Back around January 2010, I ran into the same (Escape key) issue while RunEntryOnInterval() was running. I was able to get satisfactory results by placing a command button on the form of each database, rather than the menu form.

This worked well for me because I already had a command button that I used to exit the form, anyway; and that still works. That button uses @Exit to close the form.

I didn't need to make it run automatically, but you should be able to launch it from the On Retreive Spec Open event of each form. It won't work from your main menu, but at least it will run while you have a form open.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #17 - Oct 27th, 2011 at 8:59pm
Print Post Print Post  
Carl, Thanks for feedback. The command works so great except for Escape stops working on all forms instead of the form from where the command is activated.
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #18 - Oct 27th, 2011 at 10:26pm
Print Post Print Post  
Bharat_Naik wrote on Oct 27th, 2011 at 8:59pm:
Carl, Thanks for feedback. The command works so great except for Escape stops working on all forms instead of the form from where the command is activated.

Yes, it will be handy if Mark can figure out how to make that work without breaking something else.

BTW, be aware that if you activate RunEntryOnInterval() from your menu form, and use @Exit to close a database form, that will stop the RunEntryOnInterval() code. I forgot to include that in my previous posting.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Polling a Folder for a Dropped In new file
Reply #19 - Oct 27th, 2011 at 10:54pm
Print Post Print Post  
I found the problem and put in a fix.

But, like Carl mentioned, it needs to be tested very carefully.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #20 - Oct 27th, 2011 at 11:07pm
Print Post Print Post  
Thank you, Thank you, Thank you.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Polling a Folder for a Dropped In new file
Reply #21 - Oct 28th, 2011 at 1:05am
Print Post Print Post  
You're welcome.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #22 - Oct 28th, 2011 at 2:31am
Print Post Print Post  
Quote:
BTW, be aware that if you activate RunEntryOnInterval() from your menu form, and use @Exit to close a database form, that will stop the RunEntryOnInterval() code. I forgot to include that in my previous posting.


Hi Carl,
Moreover, there is also Toggle OFF and ON switch. I plan to assign the older fileList to Global variable that way even if I restart client after 4 hours, it will give me a list of all the newer file polled from the time client was taken down as Global Variable remembers the value. Using UserParameter ( ) switch will make the code operate only on the subject workstation. 

Until the new change goes into effect, I may just use the toggle switch to poll the file as needed. Thanks for your feedback and suggestion.
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #23 - Nov 25th, 2013 at 10:15pm
Print Post Print Post  
I am wondering  if escape key not working while RunEntryOnInterval command in progress, is taken care of as Mark suggested. I am still working with Sesame ver 2.5.2 and if it is taken care of in version 2.5.3, I would install the update. I hate to rock the boat that is sailing smoothly!! Having said that, I am looking forward to version 3.0. How far are we?
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #24 - Nov 25th, 2013 at 10:54pm
Print Post Print Post  
I see it was fixed in ver 2.5.3. I went through the fix-list. Thanks.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Polling a Folder for a Dropped In new file
Reply #25 - Nov 26th, 2013 at 1:52pm
Print Post Print Post  
Bharat_Naik wrote on Nov 25th, 2013 at 10:15pm:
...I am looking forward to version 3.0. How far are we?


Depends on how one measures.

Sesame 3 has a lot of new features, but has not yet entered testing.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #26 - Dec 2nd, 2013 at 11:25pm
Print Post Print Post  
Now in version 2.5.3 escape key works while RunEntryOnInterval command is in progress. However, I noted that anytime escape key is used anywhere (not just in the form from where RunEntryOnInterval command is executed and initiated), RunEntryOnInterval is immediately terminated and polling stops. Is this the normal behavior or something needs addressing? 
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Polling a Folder for a Dropped In new file
Reply #27 - Dec 3rd, 2013 at 4:41pm
Print Post Print Post  
Please never mind. I guess Escape should terminate RunEntryOnInterval command and I believe it is by design. I have placed conditional statement in Universal Event that after 60 seconds since the last polling, it will reactivate the RunEntryOnInterval command provided the sReset indicator (Main on/off switch for polling) is on. Seems to be working fine even from Menu form.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print