Modal Form Missing All Elements of First Open

Hi Folks.

Showing a form modally and getting strange behaviour:

First time I open it in SC the form is empty - that is showing non of the elements that should be on the form - though it is modal.

If I close it and re-open it shows the elements. In the WC it works fine all the time?

Here’s my code:

application.showFormInDialog(forms.frm_comp_rpt_pop,355,222,410,275,“Select Report”,false,false,‘frm_comp_rpt_pop_dialog’,true);

Any suggestions on why this might happen :?:

Servoy 410b5 Win XP SP2

debug client, smart client, web client?
anything in the log file?

IT2Be:
debug client, smart client, web client?
anything in the log file?

Nothing untoward in the logs Marcel - I have discovered though that if I do a full restart (Close developer and re-open developer and the solution), the modal form appears as expected on first click. Closing the solution and re-opening it in developer brings the problem back?

I also noticed in 410b5 that now if I have a smart client open in developer, when I close the smart client window (so closing my solution) - I’m left with an empty client window - so I need to close two windows to close the solution fully. This isn’t a problem if its by design but I’m sure its not the way 410b4 acted?

And, what happens when you start a smart client (so, not with developer open but with server started).

IT2Be:
And, what happens when you start a smart client (so, not with developer open but with server started).

Not done that before Marcel - so not sure how to run SM outside developer.???

Well, that is what you develop your solution for isn’t it.

It is in the documents.

You need to start the server and start the client from a browser (probably http://localhost:8080).

IT2Be:
Well, that is what you develop your solution for isn’t it.

It is in the documents.

You need to start the server and start the client from a browser (probably http://localhost:8080).

Thats true Marcel - just got caught-up in getting a solution running. Have to say, using Dialogs is the real first ‘show stopper’ I’ve seen so far, so I’m feeling good about the development. But you’re absolutely right - I need to get the SC and WC running as part complete test bed’s before I go any further.

I’ll sort that out tomorrow.

I am ofcourse not sure that it will solve the issue but in this case it is nice/good to know.

Have fun with the server. I bet it won’t take you much time to get it running :)

IT2Be:
I am ofcourse not sure that it will solve the issue but in this case it is nice/good to know.

Have fun with the server. I bet it won’t take you much time to get it running :)

Marcel - thanks for the idea but unfortunately its now even stranger - Modal form opens fine in Developer - Web Client, Web Client and Smart Client. But in Developer Smart Client the first time the form is shown it’s empty???

I’ve tested it in Smart Client repeatedly and shows fine - so I’m assuming the problem is just in Developer.

I can close it and reopen the form in Developer and it shows the correct contents then, seems its just a developer problem.

BTW: I have the form based on a dummy table with no data in it, as the form is set-up just to show a couple of radios for report selection. These are connected to a valuelist (thanks Nicola), and the form works perfectly after the contents show.

Any further suggestions I might follow up on?

As I mentioned the form shows up perfectly the first time its run after a restart of Developer.

That is why I asked. This reminds me of a very early (servoy versions) debugger issue.

I would send a small sample solution, describing the issue, to servoy support (support system).

I have just seen this thread. I have this same behavior with the initial form when launching a solution exactly reproducing the dreaded blank form issue of Servoy 4.0.0. I would like to add that I also experience a blank variables area when I switch to debugger view ( see topic http://forum.servoy.com/viewtopic.php?f=38&t=11310), and this also was an issue in the initial Servoy 4. Both problems are with the Smart Client, not with the Web Client. Unfortunately the second issue has a totally unpredictable behavior so I can’t reproduce it in a small solution to open a case.

Servoy Version: 4.1.0 b5 - build 644
MacOS X 10.5.5
java.vm.version=1.5.0_16-133

Raised a ticket.

I also noticed that developer needs to be completely closed and reopened for any changes I make to the dialog to take effect.

So if I change the size of the modal dialog in the application.showFormInDialog(); the changes are not displayed even if I close the Smart Client (leaving the Dev open) and reopen SC in Developer! They are in WC. Seems like the two issues could be related.