function is working in debug but not smart client

Questions, answers, tips and ideas on Servoy Client

function is working in debug but not smart client

Postby tgs » Thu Feb 16, 2012 1:48 pm

How could it be that a function is working without any issues and errors in the debug client but not in the smart client?
There are no errors in the server logs and the java client-console.

What could be the reason for this?

Servoy 6.0.5
Java 1.6_29
PostgreSQL 9.1.2

Developer and Servoy server are separated.

Regards
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: function is working in debug but not smart client

Postby jcompagner » Thu Feb 16, 2012 5:13 pm

how does it not work?
isn't it called?
did you put any logging into it?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: function is working in debug but not smart client

Postby tgs » Thu Feb 16, 2012 5:59 pm

jcompagner wrote:how does it not work?

This function should return an userObject for increasing a counter:

var _item = forms.frm_edit.elements.bean_sourcelist.getItemFromUserObject(21);
_item.counterValue ++;

In the debug client I always get a value as return for the variable and the function is working well. But in the Smart Client it returns "null" and the function cannot work.

jcompagner wrote:isn't it called?

It is called, but with no return.

jcompagner wrote:did you put any logging into it?

No!
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: function is working in debug but not smart client

Postby jcompagner » Fri Feb 17, 2012 1:32 pm

please log then in the function that you call what you return, because currently we have no idea what goes wrong.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 8 guests