Web & modal

Questions, tips and tricks and techniques for scripting in Servoy

Web & modal

Postby Marco R. » Fri Oct 22, 2010 3:17 pm

Hi all,

Is a long time that I have a "problem".
Does exist a way to make the web to wait for user operation?
For example if I open a dialog with:
Code: Select all
plugins.file.showFileOpenDialog(1,null,false,null,globals.callBackMyFunction,"Select file to upload")

into the smart client the procedure wait for user operation(in this case wait for the user choice of what file want to upload),
into the web,instead,the procedure go ahead with the next code line(in this way I can't wait the user choice and I can't elaborate the file choosed).

Anyone knows any technique(exept using the callBack function to elaborate the data)?


Thanks in advance


Marco
Marco Rossi
Freelance

Main development environment: Servoy 6.1.6 - 7.4.3, Java 1.6u45,7u71 Windows 7/CentOS
Marco R.
 
Posts: 203
Joined: Thu Mar 19, 2009 12:37 pm

Re: Web & modal

Postby Harjo » Fri Oct 22, 2010 6:18 pm

in the webclient, this has to be the last line of your code!
than this: globals.callBackMyFunction will be automatically called, when someone has selected a file!

hope this helps
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 8 guests