When I open up my application, it immediately starts. See the first screen for the notation I get at the bottom. This could run indefinitely. I have had it run for 600 seconds .
The second screen shows "SaveChangesInvoices" which is running from a legacy table.
This used to run perfectly and for some unknown reason I have run into this very difficult glitch.
I don't even have that option for table2. See screen shot below.
I have 2 tables on my screen and for table1, I do have that option.
I would like to add some more information. When I click on the code {{table2.recordUpdates}}, I get a message that the table is not defined. This is shown in the second screen shot.
I have 2 programs that start running as soon as I start up my application.
I know for some reason if the 2 programs start up and there is no change in the screen table, then they will run indefinitely and now I have no way of stopping them.
The application still functions. When I run something, for a few seconds there will be 5 applications running, then it goes back to 2 applications running.
I have carefully checked my primary keys, they are correct and they are all on autoincrement.
I am using Legacy Tables.
The Advanced Tab has no check marks for automatic starts.
I am showing some screens below to show what I am dealing with.
I need a fix whereby when there are no changes that the program will realize that then stop.
Hi @mdsmith1, this is odd. Are you still having this issue? It may have been a UI bug, hopefully refreshing the page fixed it but let us know if this is not the case.
If I'm understanding correctly, the issue is running the SaveChangesInvoices query when there are no changes on the table. If that is the case, you can wrap that line with an if statement. For example:
if (table2.changesetArray.length > 0){
await SaveChangesInvoices.trigger()
}
Hi Mike, not there. On the "AwaitRefreshInv..." query you shared, where all the await statements are:
If line 2 is causing that issue, the if statement is to only run that line if there are changes on the table. Change line 2 for : if (table2.changesetArray.length > 0){ await SaveChangesInvoices.trigger() }