Is it possible to temporarily 'freeze' a form

As asked in the header, is it possible to ‘freeze’ and ‘unfreeze’ a window. I did’t find anything on the subject (or overlooked).

I do a seach with a global variable. Doing that search with a false value, I get an empty controller/dataset in my form. In that case I want to go back to the original controller/dataset and the original recordindex.

So far no problem (or is there another way to jump to a record without leaving the original dataset and stepping through the complete dataset?)…

But, this gives some action on the form that shows on screen. Therefore I would like to do the search without any screen action until I say so! Possible or not?

Thanks,

Marcel

Could you also test this with client.
Client doesn’t need freeze. By default the screen only refreshes after a script is completely run.
If you want to update GUI during script you can place
application.updateUI()

Developer has opposite behaviour. It needs to go through scripts in realtime, because of the debugger, and for escaping scripts.

About regaining foundsets:
We’ve added this as requested feature.
The idea is to store the current found set in a variable, (just before you start your find). Then it can be recalled in your script, for instance when your searchresult = 0

Maarten, sorry for shouting before testing. You are right. All actions on screen in Developer have disappeared als ‘sneeuw voor de zon’…

And for that new feature request: thanks for that Maarten, love this and your speed of responce!! BTW please make sure that we can give focus again to the same record as before the search or do you suggest to store that in a seperate variable e.q. var index = controller.recordindex?

Marcel

BTW please make sure that we can give focus again to the same record as before the search

The foundset will remember which record is active :)

Hihaaaa 8)

rolls back to previous foundset AND active record, after eg searchResult==0,
Will be in 1.2 final. cool feature :)

//Get duplicate of current foundset, can be used by loadRecords again
var dupFoundset = forms.companies.controller.duplicateFoundSet();
forms.companies.controller.find();
//search some fields
var count = forms.companies.controller.search();
if (count == 0)
{
plugins.dialogs.showDialog(‘Alert’, ‘No records found’,‘OK’);
forms.companies.controller.loadRecords(dupFoundset);
}

I can’t wait 8)