I have a for…loop that creates documents just fine…but they do not show up in the default views, only from the custom one. I have to run manually from the pull down actions menu… @Commands([ToolsRefreshAllDocs]) from
a custom view otherwise the documents do not show up in the required default view.
I’m using a addressbook to populate entries for use in directory assistance
I use one already for vendors, but those entries are manually created and works fine with directory assistance.
But for this new project, it needs to be done programmically.
I figure computewithform would do the refresh, but documents do not show up until I manually
run the other agent from the customized view.
Any ideas anyone how to refresh all docs so i don’t have to run a agent manually?
For EntryNumber = 0 To AstroSize
EntryName = “Joe User”
'now we have our astro user, let’s do our sqlquery to get the rest of the user’s email info.
Call pullUserFromSQL ( EntryName, sqlConnection)
Set doc = db.Createdocument
doc.Form = “Person”
doc.FirstName = userFirst
doc.LastName = userLast
doc.InternetAddress = userPrimary
doc.CompanyName = “CompanyName”
doc.MailSystem= “Other”
doc.HTTPPassword = “p@ssw0rd”
doc.FullName = MergedArray ’ this populates full name field values just fine.
Call doc.Computewithform( True, False) ’ this should refresh the doc, but doesn’t
Call doc.Save(True, True)
'clear values for our next loop…
Set doc = Nothing
userFirst = “”
userLast = “”
userPrimary = “”
userAliases = “”
MergedArray = “”
Next
thanks…
Brett