Solution open method fails on client

Questions, answers, tips and ideas on Servoy Client

Solution open method fails on client

Postby agiletortoise » Mon Apr 16, 2007 3:48 pm

I have an "open" method setup to run on solution open. It works without fail in Developer.

In the Client, it consistently fails referencing a global relationship I have setup for preferences (say's "preferences" not defined).

The same open script then runs fine in client from a button.

Is there something in the startup process opening a solution that is different in client? Is there something I can to be sure that all the relations are properly init'd and this method is called properly on opening a solution in client?

Thanks for any ideas.

greg.
User avatar
agiletortoise
 
Posts: 278
Joined: Wed Oct 12, 2005 3:26 pm
Location: Texas, USA

Postby bcusick » Tue May 01, 2007 6:32 pm

Greg,

It could be that relation is not loaded yet - or the data from the tables is not there yet. Try adding a reference to forms based on the base tables to the start of your startup method. So if your relation is based on table A and table B and you have a form called "formA" and "formB" based on the respective tables - add this to the top of your startup method:

forms.formA
forms.formB

This will force the app to load the data and should work.
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby agiletortoise » Tue May 01, 2007 6:38 pm

Great, thanks, I'll try that.

g.
User avatar
agiletortoise
 
Posts: 278
Joined: Wed Oct 12, 2005 3:26 pm
Location: Texas, USA


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 10 guests

cron