where are bounds saved

Questions and answers for designing and implementing forms in Servoy

where are bounds saved

Postby stefanoni » Tue Jul 03, 2012 6:27 pm

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.
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: where are bounds saved

Postby Andrei Costescu » Wed Jul 04, 2012 9:37 am

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)
Last edited by Andrei Costescu on Thu Jul 05, 2012 9:20 am, edited 1 time in total.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: where are bounds saved

Postby stefanoni » Thu Jul 05, 2012 8:49 am

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)
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: where are bounds saved

Postby Andrei Costescu » Thu Jul 05, 2012 9:20 am

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

Yes.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: where are bounds saved

Postby stefanoni » Thu Jul 05, 2012 11:50 am

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.
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: where are bounds saved

Postby Andrei Costescu » Fri Jul 06, 2012 12:46 pm

:wink: You are welcome.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: where are bounds saved

Postby stefanoni » Fri Oct 19, 2012 6:34 pm

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
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: where are bounds saved

Postby Andrei Costescu » Mon Oct 22, 2012 7:22 am

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
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: where are bounds saved

Postby stefanoni » Mon Oct 22, 2012 9:14 am

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
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: where are bounds saved

Postby Andrei Costescu » Mon Oct 22, 2012 9:25 am

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
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm


Return to Forms

Who is online

Users browsing this forum: Google [Bot] and 11 guests