Docs not showing up in categorized view until a save is done

I’ve got a button on a form which creates a document that should show up in a categorized view but it doesn’t unless I open the document and save it.

The document is created, I can see it in an ‘All Documents’ view. If I look at the document properties, all the fields have the correct value. And, yes, the categorized field has a value.

If I open the document from this ‘All Documents’ view, put it in edit mode, then save it, it shows up in the categorized view.

The categorized field on the form is a combo box that pulls the values from a view using @dbColumn when you interact with it manually. But I also want to populate the view from a button on a different form.

Any thoughts on how to get the doc to show up on the view?

thanks.

Clem

Subject: Figured it out: Docs not showing up in categorized view until a save is done.

It was the case of the form name!!

The form is named “ListEntry”.

My code created a document with the form name “listEntry”.

That document did not show up in the categorized view until I saved it and (I suppose) the form name got saved with an uppercase “L”.

What threw me was that in the all documents view, the form name was shown with the lowercase “L”!

thanks for the replies.

Clem

Subject: Docs not showing up in categorized view until a save is done.

Have you tried in your code to get a handle on the view and do a view.refresh?

Is the view properties in desgner 5th tab what is the refresh set to. Try making it automatic

Subject: RE: Docs not showing up in categorized view until a save is done.

Hi Barry

Thanks for the response. I tried both your suggestions but the doc still does not show up.

thanks

clem

Subject: RE: Docs not showing up in categorized view until a save is done.

A condition in the selection formula mustn’t be being met then.

Here’s what I’d try. Create a new view, all documents. Then introduce one item at a time into the selection formula, until it disappears, then check the selection formula and values in the doc, use the doc properties to check the document properties, not what you see when you open the form.

What is the datatype on the field you populate? Does it have IsSummary set?