My app is currently sending a HTTP job twice, but not every time.
I have multiple activities where an Upload activity gets called. I call it using CallSubDelayed(Upload,"InitializeUpload"), which initializes both the httpjob and a B4aServer task.
There is a button that you then click to upload the data. I even disabled the button once you clicked it to ensure that you couldn't click the button twice.
The button then calls a sub and uses the HTTPUtils2 library to post a string to an aspx page on a local network, which then uploads it to a SQL server internally. It also sends two files through the b4aserver to a local server. The b4a process works great, I don't get doubles on that.
Within the upload sub i even created a sql statement to update a column within the database to mark the record as uploaded, put the number 3 in it. So if the sub was being called twice, the initial sql statement has a where clause so that only records with the number 1 will be brought into the cursor, to then upload to the server.
Has anyone experienced this type of behavior?
Thanks
I have multiple activities where an Upload activity gets called. I call it using CallSubDelayed(Upload,"InitializeUpload"), which initializes both the httpjob and a B4aServer task.
There is a button that you then click to upload the data. I even disabled the button once you clicked it to ensure that you couldn't click the button twice.
The button then calls a sub and uses the HTTPUtils2 library to post a string to an aspx page on a local network, which then uploads it to a SQL server internally. It also sends two files through the b4aserver to a local server. The b4a process works great, I don't get doubles on that.
Within the upload sub i even created a sql statement to update a column within the database to mark the record as uploaded, put the number 3 in it. So if the sub was being called twice, the initial sql statement has a where clause so that only records with the number 1 will be brought into the cursor, to then upload to the server.
Has anyone experienced this type of behavior?
Thanks