Rank: Advanced Member
Groups: Registered
Joined: 1/20/2017(UTC) Posts: 59  Location: sussex Thanks: 1 times
|
In simualaion mode on the pc the system runs without any problems but on the phone I get connection failed - timed out. There is quote a lot of data to transfer but when the phone is in the office on the wifi it works with0ouot any problems. Is there any way to check what is happening so I can rectify the problem. The database is sql server 2012 on a windows 2008 server.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 484
Was thanked: 81 time(s) in 81 post(s)
|
Hi Nigel,
I don't think this connection error has anything to do with the server itself - you have probably sometimes very slow connection between the phone and server. Here are the things which you need to consider:
1. What is exact error message which you get?
2. You should increase the timeout settings. Just look under Properties in Project settings - you will see two Timeout settings - set them both to 60 so that client can wait up to a minute in a worst case.
3. It is rarely required to transfer a lot of data to the client - you can mark some trees as Server-only to avoid transferring them, if client doesn't need them. For example, if you want to show some report about the data, you usually load a lot of data to a Server only tree, create a small subset in another tree and transfer it to Client then.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/20/2017(UTC) Posts: 59  Location: sussex Thanks: 1 times
|
The error is Connection Error The operation timed out
I had adjusted the timeouts to 30 seconds, so I will increase again but unfortunately the data sent to the client is the complete job sheet of over 200 fields. Would it help the speed if I make smaller seperate files and send each one seperately, rather then one large upload of data eg is the timeout per each individual file upload and reset on completion of each file transfer.
Unfortunately the clients need to work where there is no signal so the complete job must be uploaded to the client at the beginning, so it can remain in memory.
Also is there a way to turn off the previous/back arrow on an IOS (top line of app) and only have the programmed previous button showing. I know this can be done in visual studio but cannot find a reference in your documentation.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 484
Was thanked: 81 time(s) in 81 post(s)
|
The overall speed is always best if you send everything at once. 200 fields doesn't sound much - it depends on how many rows you have.You can try to send in pieces, but you have to really know what you do. When simulating in designer, it shows you the messages with two background colors - one for client steps, another for server. It also shows you timings when loading data from the database, which you need to analyze to make sure that actual reading from the database is quick. Very difficult to detect your issue without actually seeing the whole solution. To me it sounds like you have real slow connection or so.
Regarding the back button you have two possible approaches: 1. You use the Page properties to switch off "Show Page Title Bar" 2. If 1. removes more than you wanted, you can use Page Actions, switch to the OnBackButtonClicked tab, and define actions which must happen when this predefined button is clicked
|
|
|
|
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.