Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
nigel  
#1 Posted : Thursday, February 23, 2017 11:20:21 PM(UTC)
nigel

Rank: Advanced Member

Groups: Registered
Joined: 1/20/2017(UTC)
Posts: 59
United Kingdom
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.
bbv  
#2 Posted : Friday, February 24, 2017 11:10:49 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 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.
nigel  
#3 Posted : Friday, February 24, 2017 5:10:48 PM(UTC)
nigel

Rank: Advanced Member

Groups: Registered
Joined: 1/20/2017(UTC)
Posts: 59
United Kingdom
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.
bbv  
#4 Posted : Friday, February 24, 2017 5:45:15 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 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
Users browsing this topic
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.