Hi all i have created two form and one view

Hi good evening first of all thanks all of you for helping me.But still i found problem somewhere in web

When i call this two form in the view selection formula its not working .But when i call only one form in the view selection formula its working can anyone help me i have created two form name frmmainform and frmmainform1 and view

view name = vwmain

agent…

Dim session As New NotesSession

Dim db As NotesDatabase

Dim vw As NotesView

Dim doc As NotesDocument

Dim doc1 As NotesDocument

Dim nw As String

Dim old As String

Set db=session.CurrentDatabase

Set vw=db.GetView(“vwmain”)

Set doc=session.DocumentContext

nw=doc.phno(0)

nam=doc.pno(0)

Set doc1=vw.GetDocumentByKey(nam)

old=doc1.phno(0)

Set doc1=vw.GetDocumentByKey(nam, true)

Call doc1.ReplaceItemValue(“phno”, nw)

Call doc1.Save(True,False)

Call vw.Refresh()

End Sub

Subject: Hi all i have created two form and one view.

hi ,

'you haven’t put any condition to check is document is available or not…

Set doc1=vw.GetDocumentByKey(nam, true)

if not doc1 is nothing then

'perform your action…

end if

Regards

Rupesh

Subject: Hi all i have created two form and one view.

Can you please check as below code it working fine:—

Is there any quiress please let me know.

Dim session As New NotesSession

Dim db As NotesDatabase

Dim vw As NotesView

Dim doc As NotesDocument

Dim doc1 As NotesDocument

Dim nw As String

Dim old As String

Set db=session.CurrentDatabase

Set vw=db.GetView(“vwmain”)

Set doc=session.DocumentContext

nw=doc.phno(0)

nam=doc.pno(0)

Set doc1=vw.GetDocumentByKey(nam)

old=doc1.phno(0)

if not doc1 is nothing then

Set doc1=vw.GetDocumentByKey(nam, true)

Call doc1.ReplaceItemValue(“phno”, nw)

Call doc1.Save(True,False)

Call vw.Refresh()

end if

End Sub

Regards,

Praveen,

Subject: RE: Hi all i have created two form and one view.

I have try this code but the document is not changing you are not getting my points. see i have created two forms named frmmain,frmmain1 and view vwmain

frmmain form is used for entering the document and frmmain1 is for retriveing document now here i want to edit some document in frmmain1 for eg. phno so i edit and enter some new document when i save it will be replesh there . It is working in notes but not working in web so please help me to do this