Retrive data from view

Hi all,

i need saved data retrive from view.i use script which is here

Dim workspace As New NotesUIWorkspace

Dim ns As New NotesSession 

Dim db As NotesDatabase 

Dim view As NotesView 

Dim doc As NotesDocument 

Dim newdoc As NotesUIDocument 



Set db=ns.CurrentDatabase

Set view =db.GetView ("test")

Set doc=view.GetFirstDocument 



While Not doc Is Nothing

	a=doc.GetItemValue ("name")

	Msgbox"first name............" +a(0)

		

	

Wend

Call newdoc.Save 

Thanxs in advance.

rajeev.

Subject: retrive data from view

HAi Rajeev, Please Use This Code It will work

Dim workspace As New NotesUIWorkspace

Dim ns As New NotesSession 

Dim db As NotesDatabase 

Dim view As NotesView 

Dim doc As NotesDocument 

Dim newdoc As NotesUIDocument 

Set db=ns.CurrentDatabase 

Set newdoc=workspace.CurrentDocument



Set view =db.GetView ("test") 

Set doc=view.GetFirstDocument 



While Not doc Is Nothing 

	a=doc.GetItemValue ("name") 

	Msgbox"first name............" +a(0) 

	

	'Call newdoc.FieldSetText("name",doc.name(0) )

	Call newdoc.FieldSetText("name",a(0) )

	

	Set doc=view.GetNextDocument (doc) 

Wend 

Call newdoc.Save

Subject: what u wana do ???

Subject: retrive data from view

What exactly is your question ?