Subform loading

I have found a lot of info about design refresh, but not an answer to my question.

I have a form, which contains a subform …

This subform needs to be loaded in the same form after button click depending the combobox pick …

Thanx for any remarks !!!

Duro

I used something like @command([RefreshWindow]), but this did not solve my problem …

Subject: Subform loading

A form gets it’s subforms (and all other shared elements) at pre-load time - so you would have to close & reopen the document to get the new subformChris

Subject: RE: Subform loading

So according to your answer, there is no other way, how to solve this? Because I see, that when I open the document form the view, there is a subform loaded, but I need to load the subform immediately after the button click …

Subject: RE: Subform loading

You’d need to close and re-open the document.

Subject: RE: Subform loading

…which you can do in LotusScript using NotesUIDocument.Close (true) and NotesUIWorkspace.EditDocument, as described here:

The document is about displaying updated rich text, but the same technique works with a subform.