Page 1 of 3

[ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Tue May 31, 2011 10:02 pm
by ROCLASI
The dialog module just got a whole lot better!

Announcing the 1.0 release of the Dialog module.


This release has the following new features:
  • function calls and arguments mimic the dialog plugin 100%
  • dialogs can be used in multiple instances of a solution window
  • support for default button (first button of the right) just like in Smart-Client
  • fixed the select dialog issue in version 0.9
  • removed the requirement for FIMD's to use the dialogs_base form as parent
  • showFormInModalDialog() function arguments now mimics the application.showFormInDialog() function excluding the last parameter (isModal)
  • lots of small fixes and additions (the devil is always in the details)

You can download the Dialog module here.
See for more info in the wiki.
Check out the screenshots.

Thanks to Paul Bakker for all the code and support.
Actually also thanks to Johan Compagner for fixing the few bugs we found in the process in 5 and 6.

Enjoy!

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Tue May 31, 2011 10:14 pm
by Harjo
Thanks Robert!! GREAT work!!! :D

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 6:46 am
by chico
This looks awesome! How hard would it be to make it work in Servoy 4.1?

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 10:30 am
by ROCLASI
chico wrote:This looks awesome! How hard would it be to make it work in Servoy 4.1?

Well, 4.1 does have Form Inheritance and the SolutionModel but not the function controller.recreateUI() which was implemented in 5.0.
So it requires some work but in theory it should be doable, assuming that the Rhino version in 4.1 also supports Continuations.
But why not upgrade to 5.2 or 6.0 instead. 6.0 is just around the corner anyway.

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 5:20 pm
by chico
But why not upgrade to 5.2 or 6.0 instead. 6.0 is just around the corner anyway.


Good point... it'd make more sense to put the work into that.

Thanks!

Chico

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 7:26 pm
by Kahuna
Robert - not sure how to report an issue on the Forge so postingh here instead:

First time trying the new module and have this error:
Too deep recursion while parsing (E:\Dropbox\ServoyWorkspaces\WorkSpaceMay2011_RelationLess\mod_dialog\globals.js#89(eval)#1)
at E:\ServoyWorkspaces\WorkSpaceMay2011_RelationLess\mod_dialog\globals.js:89 (showDialog)


Can you enlighten me if this is something I'm doing wrong? as a first test all I did was this in the smart Client - it works fine with the standard 'plugins.dialogs.' format
Code: Select all
var goOn = globals.DIALOGS.showInfoDialog("Copy Record Data","You are about to copy this current record data to a new record."
                           + "\n The new record will be added at the end of the table of records."
                           + " All support tables DWG's Links & Areas etc will be reproduced also if the 'Copy Button' check box is ticked"
                           + "\n otherwise those tables will not be reproduced \n Do you want to continue ?","OK","Cancel")


I get the same error with this from a sandbox form too:
Code: Select all
var output =  globals.DIALOGS.showWarningDialog('TestBIGD','msg','OK')

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 7:46 pm
by ROCLASI
Kahuna wrote:Robert - not sure how to report an issue on the Forge so postingh here instead:

Just log into ServoyForge with your account (you are a registered member) and go to the project's New Issue tab.

Kahuna wrote:First time trying the new module and have this error:
Too deep recursion while parsing (E:\Dropbox\ServoyWorkspaces\WorkSpaceMay2011_RelationLess\mod_dialog\globals.js#89(eval)#1)
at E:\ServoyWorkspaces\WorkSpaceMay2011_RelationLess\mod_dialog\globals.js:89 (showDialog)


Can you enlighten me if this is something I'm doing wrong? as a first test all I did was this in the smart Client - it works fine with the standard 'plugins.dialogs.' format
Code: Select all
var goOn = globals.DIALOGS.showInfoDialog("Copy Record Data","You are about to copy this current record data to a new record."
                           + "\n The new record will be added at the end of the table of records."
                           + " All support tables DWG's Links & Areas etc will be reproduced also if the 'Copy Button' check box is ticked"
                           + "\n otherwise those tables will not be reproduced \n Do you want to continue ?","OK","Cancel")


I get the same error with this from a sandbox form too:
Code: Select all
var output =  globals.DIALOGS.showWarningDialog('TestBIGD','msg','OK')


What version of Servoy is this?

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 8:06 pm
by Kahuna
Its (Servoy Version: 5.2.6 Win 7 - SQL Server 2008 R2) Robert

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 8:11 pm
by ROCLASI
I just send you a test version with a possible fix.

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 8:27 pm
by Kahuna
ROCLASI wrote:I just send you a test version with a possible fix.


Fixed Robert - Thanks for the effort on this module Robert - long awaited from Servoy - and you've beaten them to it with essential functionality for Web Client. :D :D :D :D :D

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Wed Jun 01, 2011 9:31 pm
by ROCLASI
I released version 1.0.1 with this fix.
You can download it here.

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Thu Jun 02, 2011 1:39 pm
by Kahuna
ROCLASI wrote:I released version 1.0.1 with this fix.
You can download it here.

Two fix's in one day - you work fast Robert :D

Q. In Modal Dialog If the last argument is retained in the string (modal setting argument) will the function simply ignore it or fall over Robert? I'm hoping its a global search and replace but changing that argument is not a big deal (around 200 forms I believe in our system at the moment).

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Thu Jun 02, 2011 1:57 pm
by ROCLASI
You're second fix is not available yet thought ;)
Unless you check the source out from svn.

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Thu Jun 02, 2011 1:58 pm
by ROCLASI
Kahuna wrote:Q. In Modal Dialog If the last argument is retained in the string (modal setting argument) will the function simply ignore it or fall over Robert? I'm hoping its a global search and replace but changing that argument is not a big deal (around 200 forms I believe in our system at the moment).

It will simply ignore it.

Re: [ANNOUNCEMENT] Dialog module v1.0 released

PostPosted: Thu Jun 02, 2011 4:24 pm
by Kahuna
Great stuff Robert - we will await the new release.

Cheers

Ian