Data broadcasting and focus

Questions, answers, tips and ideas on Servoy Client

Data broadcasting and focus

Postby maservoy » Tue Oct 11, 2011 5:31 pm

I am dealing with a very annoying problem with my clients related to the focus on elements.
When they are writing something on a field, they lose the focus and they have to click again to regain the focus.

I think it is related to the broadcasting, but I cannot be sure.
Maybe other backgroung applications (such as antivirus, etc.) might be the cause.

I don't really know how to manage the problem.
Making easy solutions on Servoy does not reproduce the problem.
I am trying to understand in detail the broadcasting mechanism to check it out.

I have two questions:
1.) How can I know the data a client has loaded?
I know that on the Servoy admin I can see the user's tables in use. But... is there a way to find out exactly what a client has loaded?
I am interested on this to make sure that a client only receives the broadcasts that it should receive. Maybe we are loading to much information on a client and that is the reason why it receives too many broadcasts...

2.) Is there a way to check the clients the Servoy server is broadcasting?
I know we can use the onBroadcast event, but that is only the client side. I would like to monitor the server side, if possible.

Thanks in advance,
Miguel.-
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm

Re: Data broadcasting and focus

Postby jcompagner » Tue Oct 11, 2011 6:07 pm

maservoy wrote:1.) How can I know the data a client has loaded?
I know that on the Servoy admin I can see the user's tables in use. But... is there a way to find out exactly what a client has loaded?
I am interested on this to make sure that a client only receives the broadcasts that it should receive. Maybe we are loading to much information on a client and that is the reason why it receives too many broadcasts...


on a client you don't know that,
But yes clients will get databroad cast events of the tables that it uses (did touch)
So insert/deletes and all will be fired to that client, the server will not check on pk or something to check if the client needs it, at the moment a client touches a table it will get all events on that table.

maservoy wrote:2.) Is there a way to check the clients the Servoy server is broadcasting?
I know we can use the onBroadcast event, but that is only the client side. I would like to monitor the server side, if possible.


No, but it is to all the clients that did touch the table where the insert/update/delete happened on
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8250
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Data broadcasting and focus

Postby maservoy » Wed Oct 12, 2011 8:19 pm

Great, Johan, thanks for the answer.
Three new questions:

1.Is there a way to avoid broadcasting? At least, on certain tables...
What I would like to do: customize broadcasting to reduce it to the minimum possible.
Why? because on our applications certain tables need broadcasting, others do not.

I know I can use the servoy.disableDataChangeNotify option, but this would disable completely the broadcasting.
I am trying to customize this feature.

2.Is there a way to track broadcasting?
I would like to track those broadcastings that could not be done by any kind of reason: lost connecttion, error in communication, etc.

3.Could broadcasting be responsible for some clients losing focus on the application?
I am afraid so, but I haven't been able to create a demo app for you folks at Servoy...
Where would you check on your application if you had a problem losing focus? Which things should be taken care of on the application programming?

Thanks in advance...
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm

Re: Data broadcasting and focus

Postby ryanparrish » Wed Oct 12, 2011 9:00 pm

maservoy wrote:3.Could broadcasting be responsible for some clients losing focus on the application?
I am afraid so, but I haven't been able to create a demo app for you folks at Servoy...
Where would you check on your application if you had a problem losing focus? Which things should be taken care of on the application programming?

Yes it can, it happend to me with a form that had a tab panel showing related data. The related data would be updated in bursts of 20/30 record at once every couple of minutes, each time that happend the client would lose focus in the selected field.

Check this thread: viewtopic.php?f=8&t=14665#p78104
ryanparrish
 
Posts: 162
Joined: Thu May 17, 2007 7:49 pm
Location: Miami, FL

Re: Data broadcasting and focus

Postby swingman » Thu Oct 13, 2011 1:02 pm

We are getting reports of this problem as well on Mac OS and Windows with Servoy 5.2.x.
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1280
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Data broadcasting and focus

Postby maservoy » Thu Oct 13, 2011 4:56 pm

Is there a guideline to follow?
Moving to Servoy 6 would solve the problem, or that is something we don't really know?

How about moving back to Servoy 5.1.2?
We are currently using 5.2.0

You know how users are, specially when we are talking about health care.
We are really getting into a quite disgusting situation and we need to move forward.
Any idea will be more than appreciated.

Thanks in advance.
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm

Re: Data broadcasting and focus

Postby ryanparrish » Thu Oct 13, 2011 5:24 pm

In my case I ended up moving a form that wasn't backed by a table and using form variables that I set manually with the data I wanted. Ended up being more error prone in the beginning as there was a lot more to manage programmatically now, but (in this one use case) the UI / experience became much more responsive to the user.
ryanparrish
 
Posts: 162
Joined: Thu May 17, 2007 7:49 pm
Location: Miami, FL

Re: Data broadcasting and focus

Postby jcompagner » Fri Oct 14, 2011 4:03 pm

why would moving to 5.1 help?
there is not much change between 5.1 and 5.2 except quite a lot of bug fixes
In 6 there are even more fixes and also i believe that 6.0.2 will even have more fixes relation some selection/focus stuff for the web.
But all this is a bit guessing because we don't really know what the actual problem is here.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8250
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Data broadcasting and focus

Postby maservoy » Fri Oct 14, 2011 4:36 pm

Right Johan, thanks.
The real problem is that we don´t really know what is going on.

Where do you think we should take a look at in first place?
in your opinion, what are the things we should check?
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm

Re: Data broadcasting and focus

Postby jcompagner » Mon Oct 17, 2011 11:30 am

you could log as much info as possible in a onbroadcast method
Like timestamp and datasource/data/pk what is being send to the client
Then when a client looses focus you could see what did get broadcasted at the same time..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8250
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Data broadcasting and focus

Postby maservoy » Wed Oct 19, 2011 10:11 am

We have succeeded in reproducing the case.
Thanks folks for your ideas,

Cases #426173 & #426190
maservoy
 
Posts: 46
Joined: Tue Nov 06, 2007 12:22 pm


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 1 guest