Page 1 of 1

where are bounds saved

PostPosted: Tue Jul 03, 2012 6:27 pm
by stefanoni
In my Developers servoy.properties ( 6.0.6 ) I found lots of:

rect_LohnPlus_CHOI_Drucken_bounds=861,203,332,302
rect_LohnPlus_CHOI_GanzerMonatsLauf_bounds=822,89,366,903
rect_LohnPlus_CHOI_Meldung-Tx_bounds=829,129,332,782
rect_LohnPlus_CHOI_SUCH_NothingFound_bounds=870,400,376,325

Is this (bounds of the modal-windows) saved only in Developer in the servoy-properties?
Where is this bounds-information saved on the application server ?
For each user ?
It semes to be not the same for Webclient and Smartclient ?

Thanke you for helping me to understand the logic behind.

Re: where are bounds saved

PostPosted: Wed Jul 04, 2012 9:37 am
by Andrei Costescu
In case of Web Client, those bounds (if storing is enabled) are saved in a cookie.
In case of Smart Client, the bounds are stored in .servoy/servoy_client.properties in your OS's user dir.

It is not stored/servoy user. (for smart client it's stored /OS user/solution/window name, in WC it's stored /cookie/window name)

Re: where are bounds saved

PostPosted: Thu Jul 05, 2012 8:49 am
by stefanoni
Thank you Andrei, this makes sense to me.

And for the developer it is stored in the servoy.properties for smartclient and in the cookie for webclient ?

(I just ask all this because I'm dealing with different reactions for web, smart, developer, user, OS and I try to find out what happend in what case
an how much I should controll the initial size of the windows)

Re: where are bounds saved

PostPosted: Thu Jul 05, 2012 9:20 am
by Andrei Costescu
stefanoni wrote:And for the developer it is stored in the servoy.properties for smartclient and in the cookie for webclient ?

Yes.

Re: where are bounds saved

PostPosted: Thu Jul 05, 2012 11:50 am
by stefanoni
I could solve one of the problems by delete the cookie
Domain "server/servoy-webclient",
Name "wicket-modal-window-positions" which contained the window infos:

dialog_CRUD_lspm%3A%3A285.5px%2C0px%2C1291px%2C913px%7C
dialog_NDET_azmz%3A%3A538px%2C188px%2C669px%2C432px%7C

Great, Thank you.

Re: where are bounds saved

PostPosted: Fri Jul 06, 2012 12:46 pm
by Andrei Costescu
:wink: You are welcome.

Re: where are bounds saved

PostPosted: Fri Oct 19, 2012 6:34 pm
by stefanoni
Andrei Costescu wrote:
stefanoni wrote:And for the developer it is stored in the servoy.properties for smartclient and in the cookie for webclient ?

Yes.


sorry for refreshing this ahgain. I'm asking for help since weeks with this problem...

In Servoy 6.1.2 it is NOT stored in servoy.properties in case of developer. do you have an idea
what I do wrong ?

thank you for any ideas.
regards

Re: where are bounds saved

PostPosted: Mon Oct 22, 2012 7:22 am
by Andrei Costescu
In 6.1.x the "storeBounds" property of JSWindow objects is set to false by default (to avoid very large unneeded cookies/entries in .properties for solutions that always use new random names for creating windows/dialogs, or for solutions that use many types of windows/dialogs).

In order for your window to store it's bounds do this after creating it:
Code: Select all
myJSWindow.storeBounds = true

Re: where are bounds saved

PostPosted: Mon Oct 22, 2012 9:14 am
by stefanoni
Andrei,
This is great information for me, nearly running crazy about this. Imaging, the default in 6.0.x is true, so I never faced the fact that there is an prop like .storeBounds. Then after changing to Servoy 6.1.x suddenly the bounds are not stored anymore...

Now, with your hint, I found the Wicki. It says under New in this Release:
"Added .storeBounds property on JSWindow instances to control if the bounds of the JSWindow are stored when the window..."

this is wrong because It is not "added" (existed also in 6.0.x) but the default has been changed !

Thank you very much !
Sandro

Re: where are bounds saved

PostPosted: Mon Oct 22, 2012 9:25 am
by Andrei Costescu
Yes you are right. The wiki page needs to be updated.
It was added in last 6.0.x versions as well (to be able to avoid large cookie sizes), but the default only changed in 6.1.x