Page 1 of 1

[RPG/LongRange] Database Upload

Posted: Wed Jul 03, 2019 7:25 am
by mwilliams
I was wondering if there has been any reported issues using the database upload process. We have an offline mobile application that hasn't been changed in a long time. In that application we have a posting process that uploads data when the phone is connected to the server. It used to work but now, when it tries to post, the property /DB.BATCHTABLECOUNT is always 0. It's as if nothing is being sent up. I am using android's LongRange version 35 and axes 311.

Any ideas as to what it could be would be helpful.

javascript

Code: Select all

function () {
            this.q_setProperties({
                "RunOperation.Type": "PerformAction",
                "RunOperation.Pgm": "MOR3598",
                "RunOperation.Action": "",
                "RunOperation.SendDBData": "Y"
            });
        },
RPGLE

Code: Select all

tblCount   = lrng_getNumProperty('/DB.BATCHTABLECOUNT');    
tblStrIdx  = lrng_getNumProperty('/DB.BATCHTABLESTARTIDX'); 
tblEndIdx  = tblStrIdx + tblCount - 1;                      
tblHasMore = lrng_getPropAsBool('/DB.HASMOREDATA');         
                                                            
if (tblStrIdx > 0);   
  // do stuff
endif;           

Re: [RPG/LongRange] Database Upload

Posted: Wed Jul 03, 2019 11:15 am
by jasonzhou
Did you do any modification for local data? The data won't be re-uploaded if there is no change and the row submit mode is "Submit when Modified"