Refresh of embedded folder in UI

I have a query form that, based on selection criteria, selects a subset of documents, displays some summary information, and shows the individual contributing documents.

When I can select based on categories this works fine, but for certain queries (that rely on FT search) I have to put the result into a folder instead. The search works beautifully - it finds the right documents, gives me a correct count, updates the summary fields, and displays the right folder - empty.

If I open the folder in another tab I can see that it contains the correct documents, and even when the embedded version is refreshed it reports (in a queryopen or postopen script put there for debugging purposes) the correct number of documents. But it doesn't display them. What trick might I use to get the embedded folder to display up-to-date contents?

Hi Andrew

Please check the below Folder property and see whether it helps.

Just a thought, i hope the category option is not being used for embedded folder case.. in case you are using the same embedded control for both the cases…

If it is a single-category view, we recommend upgrading your Domino to version 12.0.2FP5, 14.0.1FP2, or 14.0.1FP3. Many issues related to embedded views displaying categories and counts have been resolved in these versions

If it is a single-category view, we recommend upgrading your Domino to version 12.0.2FP5, 14.0.1FP2, or 14.0.1FP3. Many issues related to embedded views displaying categories and counts have been resolved in these versions

Through programmatic code you can try below option on appropriate event

Dim ws As New NotesUIWorkspace
Call ws.Refresh

Dim view As NotesView
Set view = db.GetView("YourViewName")
Call view.Refresh

Or

If it is a single-category view, we recommend upgrading your Domino to version 12.0.2FP5, 14.0.1FP2, or 14.0.1FP3. Many issues related to embedded views displaying categories and counts have been resolved in these versions.

Thank you both. The refresh setting was NOT "Automatic" - it should have been, but it was inherited from the view I based in on and I didn't check.

@Rajneesh Sharma I was going to simply answer "No", but I now realise that is not the case. The view/folder to display and the category (if any) to select) are controlled by CfD fields, and I now realise that it may be applying a category to the folder. I will check tomorrow when I am able to log in, but I think between you you may have solved my problem :-)

The category formula could be

@if(categorycase;yourcategory;"*")

"*" option will ensure single category is not applied. A simple "" would look for a blank category, resulting in no documents being displayed in folder case

Alternatively use separate embedded views for the two cases and display the relevant one. Refresh possibly wont matter as refreshing or opening the form should get you the current status of the view i guess. But no harm in selecting thr refresh option too..

Thank you! I am not sure I would have thought of that.

You are welcome @Andrew. Hope this helps.

Thank you all!

I can only mark one answer correct, but you all helped. The most critical thing was calculating the (non-) show-only category, but every answer contributed. Problem solved.