yfleury Active Member Licensed User Longtime User Aug 12, 2019 #1 Hi all I want to backup my table to jrdc2 server row by row In client side I have this error Current declaration does not match previous one. Previous: {Type=String,Rank=0, RemoteObject=True} Current: {Type=HttpJob,Rank=0, RemoteObject=True} on this line Code: Copy Dim cmd As DBCommand = CreateCommand("insert_client", Array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)) Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null) I have many different fields like string, int and double. With this error I don't know how to do an insert on jrdc2 server. Any hint?
Hi all I want to backup my table to jrdc2 server row by row In client side I have this error Current declaration does not match previous one. Previous: {Type=String,Rank=0, RemoteObject=True} Current: {Type=HttpJob,Rank=0, RemoteObject=True} on this line Code: Copy Dim cmd As DBCommand = CreateCommand("insert_client", Array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)) Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null) I have many different fields like string, int and double. With this error I don't know how to do an insert on jrdc2 server. Any hint?
OliverA Expert Licensed User Longtime User Aug 12, 2019 #2 Which dbrequestmanager are you using? Upvote 0
yfleury Active Member Licensed User Longtime User Aug 12, 2019 #3 I follow this tutorial https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/ Upvote 0
I follow this tutorial https://www.b4x.com/android/forum/t...ation-of-rdc-remote-database-connector.61801/
OliverA Expert Licensed User Longtime User Aug 12, 2019 #4 Looks like you're already using the variable j to populate some data in the "insert_client" jRDC2 call Code: Copy Dim cmd As DBCommand = CreateCommand("insert_client", Array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)) From your error message, at this point j is a String variable. Then you try to re-declare j as an HttpJob Code: Copy Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null) This explains the error message. Solution, either rename the String variable j to something else or rename the HttpJob variable j to something else. Upvote 0
Looks like you're already using the variable j to populate some data in the "insert_client" jRDC2 call Code: Copy Dim cmd As DBCommand = CreateCommand("insert_client", Array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)) From your error message, at this point j is a String variable. Then you try to re-declare j as an HttpJob Code: Copy Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null) This explains the error message. Solution, either rename the String variable j to something else or rename the HttpJob variable j to something else.
yfleury Active Member Licensed User Longtime User Aug 12, 2019 #5 Thanks I just undertands my mistake.... I have Code: Copy dim j as string= cursor.getstring("name") So I have this error then I change j for j2 Error gone Or newbe error lol Upvote 0
Thanks I just undertands my mistake.... I have Code: Copy dim j as string= cursor.getstring("name") So I have this error then I change j for j2 Error gone Or newbe error lol