Losing global values

On entering my solution, I set a number of globals.

In Developer, if switch to designer mode, and then back again, I lose all my global values!

This is really annoying, as I have to reset the globals every time I want to make a change to my forms.

Is there a way round this?

You can set globals with a default value
1)goto designer
2) choose dataproviders>tab globals

Toggling with designer resets them to the default value.
Also, no need to initialise them during start up.

But these globals are set at entry beacause they change.

For example, I set the global location_id to the location_id of the user that has signed on.

How do I set the default value to a value that’s different, i.e. dependant on the user.

how are these globals currently set?
solution start method?
load/show method of a form?

I have a method that is used when opening the solution. The globals are set here.

ok.
I will check this out because when you switch from browse the openSolution method should be executed.

This behaviour is a feature which I am not happy about.

In my case, I switch a lot between designer and browse-mode, just to see small changes in design-things.

My start-up script, brings me than to a complete different form.

Please, can you make (your suggestion, to start the start-method) it an option which you can select or de-select?

Thanks

i already thought about that. So i won’t change it now for 2.0
Maybe in the road to the next version we will look what we can do..