Alena Smart 7.Mar.12 12:51 PM a Web browser Domino Designer7.0.2 FP3Windows XP
Hi,
I am trying to make a response(RespDoc) doc via a function, I run the function on selected documents (DocParent), but either I get an error of type mismatch or the response becomes a main doc in the view, and does not go under its Parent.
Function createRenew(docParent)
Dim ws As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim ProfilDoc As NotesDocument, RespDoc As NotesDocument
Dim ProfilRenDoc As NotesDocument
Dim quantite As NotesItem , description As NotesItem
'profile document
…
Set RespDoc = New NotesDocument( db )
RespDoc.Form = "Renew"
Call RespDoc.MakeResponse( docParent ) *** if I use this line I get an error Type mismatch on DocParent
Yet if I don’t use it the response document does not go under the column for the responses in the view… I do have set the Show response in hierarchy