Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next
Subject: Refreshing documents on creation
Feedback Type: Question
Product Area: Designer Client
Technical Area: Application development
Platform: Not Applicable
Release: 8.0.2
Reproducible: Always

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


Feedback number WEBB9UVP4E created by ~Joseph Brenitexjip on 03/23/2015


Refreshing documents on creation (~Joseph Brenite... 23.Mar.15)
. . Did You try Call view.Refresh? /eom... (~Joseph Desfooc... 24.Mar.15)
. . . . First thing I tried... (~Joseph Brenite... 26.Mar.15)
. . . . . . Question (~Sean Eljumigon... 26.Mar.15)
. . . . . . . . My another idea is.... (~Joseph Desfooc... 26.Mar.15)
. . . . . . . . Wrong field value (~Sean Eljumigon... 26.Mar.15)
. . . . . . . . . . I'll try that.. (~Joseph Brenite... 30.Mar.15)
. . . . . . . . . . that was it (~Joseph Brenite... 1.Apr.15)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS