# \[ANNOUNCEMENT\] Dialog module v1.0 released

**URL:** <https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079>\
**Category:** Classic Servoy\
**Created:** [May 31, 2011, 8:02pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079 "2011-05-31T20:02:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [May 31, 2011, 8:02pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/1 "2011-05-31T20:02:43Z")

</div>

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](https://www.servoyforge.net/projects/mod-dialog/files).  
See for more info in the [wiki](https://www.servoyforge.net/projects/mod-dialog/wiki).  
Check out the [screenshots](https://www.servoyforge.net/projects/mod-dialog/wiki/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!

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 31, 2011, 8:14pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/2 "2011-05-31T20:14:07Z")

</div>

Thanks Robert!! GREAT work!!! ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [June 1, 2011, 4:46am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/3 "2011-06-01T04:46:55Z")

</div>

This looks awesome! How hard would it be to make it work in Servoy 4.1?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 1, 2011, 8:30am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/4 "2011-06-01T08:30:56Z")

</div>

> chico:  
> 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.

---

<div class="post-metadata">

**Author:** ![chico](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@chico](https://forum.servoy.com/u/chico)\
**Post date:** [June 1, 2011, 3:20pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/5 "2011-06-01T15:20:17Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [June 1, 2011, 5:26pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/6 "2011-06-01T17:26:34Z")

</div>

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

```auto
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:```  
var output = globals.DIALOGS.showWarningDialog(‘TestBIGD’,‘msg’,‘OK’)

```auto

```

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 1, 2011, 5:46pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/7 "2011-06-01T17:46:59Z")

</div>

> Kahuna:  
> 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](https://www.servoyforge.net/projects/mod-dialog/issues/new).

> Kahuna:  
> 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
> 
> ```auto
> 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")

```

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

What version of Servoy is this?

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [June 1, 2011, 6:06pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/8 "2011-06-01T18:06:48Z")

</div>

Its (Servoy Version: 5.2.6 Win 7 - SQL Server 2008 R2) Robert

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 1, 2011, 6:11pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/9 "2011-06-01T18:11:57Z")

</div>

I just send you a test version with a possible fix.

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [June 1, 2011, 6:27pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/10 "2011-06-01T18:27:08Z")

</div>

> ROCLASI:  
> 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]( "Very Happy") ![:D]( "Very Happy") ![:D]( "Very Happy") ![:D]( "Very Happy") ![:D]( "Very Happy")

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 1, 2011, 7:31pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/11 "2011-06-01T19:31:12Z")

</div>

I released version 1.0.1 with this fix.  
You can download it [here](https://www.servoyforge.net/projects/mod-dialog/files).

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [June 2, 2011, 11:39am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/12 "2011-06-02T11:39:07Z")

</div>

> ROCLASI:  
> I released version 1.0.1 with this fix.  
> You can download it [here](https://www.servoyforge.net/projects/mod-dialog/files).

Two fix’s in one day - you work fast Robert ![:D]( "Very Happy")

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).

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 2, 2011, 11:57am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/13 "2011-06-02T11:57:35Z")

</div>

You’re second fix is not available yet thought ![;)]( "Wink")  
Unless you check the source out from svn.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 2, 2011, 11:58am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/14 "2011-06-02T11:58:57Z")

</div>

> Kahuna:  
> 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.

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [June 2, 2011, 2:24pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/15 "2011-06-02T14:24:44Z")

</div>

Great stuff Robert - we will await the new release.

Cheers

Ian

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [July 5, 2011, 5:19pm UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/16 "2011-07-05T17:19:10Z")

</div>

Your DIALOG global is working brilliantly Robert - that’s excellent work for sure. I think McCourt is going to contact you separately to mention a couple of points he’s discovered in its use.

We have been wondering if some of this code could be applied to other controls in web client too.

For example, we change the colour of menus to show that they have registered a click and then after the function has run we change the colour again to show it is the selected menu item and it’s ready to work.

With WC obviously this doesn’t work for the same reason the Dialogs don’t - the WC code is just run without halting to allow the called procedures to run before completing, hence the UI changes are too fast to register.

We figured there may be some method in your global that we could apply to halt the code execution whilst other functions are run, and then return and complete the UI stuff, but the concept doesn’t seem to apply in this context. Or perhaps we have missed a point or two.

What’s your view on using continuations in this context Robert? Possible - Sensible???

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [July 7, 2011, 8:08am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/17 "2011-07-07T08:08:48Z")

</div>

Hi Ian,

> Kahuna:  
> Your DIALOG global is working brilliantly Robert - that’s excellent work for sure. I think McCourt is going to contact you separately to mention a couple of points he’s discovered in its use.

If he can do it on short notice, I am almost ready to push out a new bugfix version of the module. If he has something that needs to be fixed I can put it in with it.

> Kahuna:  
> We have been wondering if some of this code could be applied to other controls in web client too.
> 
> For example, we change the colour of menus to show that they have registered a click and then after the function has run we change the colour again to show it is the selected menu item and it’s ready to work.
> 
> With WC obviously this doesn’t work for the same reason the Dialogs don’t - the WC code is just run without halting to allow the called procedures to run before completing, hence the UI changes are too fast to register.
> 
> We figured there may be some method in your global that we could apply to halt the code execution whilst other functions are run, and then return and complete the UI stuff, but the concept doesn’t seem to apply in this context. Or perhaps we have missed a point or two.
> 
> What’s your view on using continuations in this context Robert? Possible - Sensible???

With menus you mean popup menus ? In any case it would be something for me to look at and spend time on. I can’t really say what would be best in this case.

---

<div class="post-metadata">

**Author:** ![Kahuna](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@Kahuna](https://forum.servoy.com/u/Kahuna)\
**Post date:** [July 7, 2011, 8:27am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/18 "2011-07-07T08:27:31Z")

</div>

Thanks for the feedback Robert - I’ll chat with McCourt this am and see what we can draught.

> With menus you mean popup menus ? In any case it would be something for me to look at and spend time on. I can’t really say what would be best in this case.

I was talking about our own created menus which are essentially buttons. And of course its the same with our buttons on a form.

Right now (in SC) we colour the buttons when the user clicks them to show they have been activated, and colour them again when the activity is done. So on our menu buttons, the text goes red when the user clicks them, and stays that way until the form is loaded and shown at which point the button is text is coloured orange to show that is the active menu selection.

With action buttons we colour the background and change the text to ‘working…’ after the user clicks it. After the task is performed the button is reset to its original state.

Right now in the WC the buttons change so fast that the user gets no information about state - and that’s because the code runs straight through - not waiting for the intermediate calls to complete.

That’s why we thought continuations may be an answer - but its the concept we are struggling with - where to place the continuation break and where restart it again etc. Also not sure which aspects of your dialog code would be useful rather than building our own continuation code?

Hope that makes sense Bud?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [July 7, 2011, 8:36am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/19 "2011-07-07T08:36:53Z")

</div>

Hi Ian,

> Kahuna:  
> Right now in the WC the buttons change so fast that the user gets no information about state - and that’s because the code runs straight through - not waiting for the intermediate calls to complete.

Are you sure this is the case? Isn’t it just a case of not redrawing while the method runs?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [July 7, 2011, 8:47am UTC](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079/20 "2011-07-07T08:47:27Z")

</div>

A quick test shows me that putting a application.updateUI(100) right after the color/text update works wonders in WebClient.

Hope this helps.

[Next page](https://forum.servoy.com/t/announcement-dialog-module-v1-0-released/14079.md?page=2)
