Checking record values in a timer loop
nismo2006
Member Posts: 22
Hey,
I am trying to communicate between two processes to determine when one should run and the other should wait. I have a new table that indicates if one of the processes is running (by a boolean value). The other process should wait until a boolean field in this table is false. I have a timer that will continually poll the table and check to see if the value is false. It is not picking up on the value though. It continually thinks that it is true and never allows for it to run. I have tried to put the check into a function and a codeunit but no luck. It is almost like it is grabbing the record and holding the value. I have also tried to make another variable that is that table and it still does not do it. Has anyone come across this situation and I appreciate the help in advance.
Thanks
I am trying to communicate between two processes to determine when one should run and the other should wait. I have a new table that indicates if one of the processes is running (by a boolean value). The other process should wait until a boolean field in this table is false. I have a timer that will continually poll the table and check to see if the value is false. It is not picking up on the value though. It continually thinks that it is true and never allows for it to run. I have tried to put the check into a function and a codeunit but no luck. It is almost like it is grabbing the record and holding the value. I have also tried to make another variable that is that table and it still does not do it. Has anyone come across this situation and I appreciate the help in advance.
Thanks
0
Comments
-
how does your code look like that does the checking?
Are you clearing the variable record before using it?0 -
You can try to use SELECTLATESTVERSION before you get the record from the DB.0
-
I will try both of these methods, I appreciate the help. I was just a little confused that it seems like even though I call a new variable instance of the table, it keeps its values. It is almost like it has kept its cached values and can't be reset. I will post my results and thanks again.0
-
Kine,
It worked brilliantly!!!
Thank you so much for your help and hope you have a good day. 0 -
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

