Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


nikoskar nikoskar 3.Jan.06 07:04 AM a Web browser
Domino Designer 6.0.1 CF3 Windows 2000


Dear All,
i am a newbie with Lotus Doino and i want your help.
I have 2 forms.1 is for user input errors and the other is for inserting projects. When the user select the project from the formm automatically 4 others fields inside the forms are updated.My problem is that when i change any field from the project form and after that a users opens a error document he dont see the fields with the new values but with old.To see them needs to edit the document and save it.
Can anyone help me how can the documents updated without the user edit the document. I think maybe need to write a agent form that.

here is my test Script Library agent (but doesnt work for all fields.Only for one)

Sub SetPprojectValue ( tmpPrjOLD, tmpPrjNEW As String)

Dim Session As New NotesSession
Dim Workspace As New NotesUIWorkspace

Set session = New NotesSession
Set db = Session.CurrentDatabase


Set MainView = db.GetView("ALLENT")

'Search by old value
Set MainVC = MainView.GetAllEntriesByKey(tmpPrjOLD,False)

If MainVC.count >0 Then

Set MainEntry = MainVC.Getfirstentry()

Do Until MainEntry Is Nothing

Set MainDoc = MainEntry.document

' Set New Value
MainDoc.Project_Main = tmpPrjNEW
'MainDoc.tmp_status = tmpStatus
'MainDoc.tmp_Cycle = tmpCycle
'MainDoc.tmp_Run = tmpRun
'MainDoc.tmp_SystemF = tmpSystemF

Call MainDoc.save(True,True)

Set MainEntry = MainVC.GetNextEntry(MainEntry)
Loop
Call Workspace.ViewRefresh
End If
End Sub


with new script when i update the field project at the 1st form, automatically the field project_main updated at the 2nd form. How can i add the other fields?. I add them as comments.

At the main form i add: Call SetPprojectValue(tmpProject_Old, tmpProject_New)

Many Thanks and sorry for the huge mail.






Autorefresh fields. Passing values ... (nikoskar nikosk... 3.Jan.06)
. . RE: Autorefresh fields. Passing val... (nikoskar nikosk... 9.Jan.06)
. . RE: DbColumn Refresh.Help Me!!! (Eliseu Coelho 3.Jan.06)
. . . . RE: DbColumn Refresh.Help Me!!! (nikoskar nikosk... 4.Jan.06)
. . . . . . RE: DbColumn Refresh.Help Me!!! (Eliseu Coelho 4.Jan.06)
. . . . . . . . RE: DbColumn Refresh.Help Me!!! (nikoskar nikosk... 5.Jan.06)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite