I can't see value field in enather form

I have fallowing problem I have first form on his form I have embedded view,I put value on abc field (on form first), next I open another document from embedded view and I want see value from abc field. I try used @SetDocField but it don’t give effect I can’t see @DocumentUniqueID from first form and I can’t do anything.

Pleas help me

Subject: RE: I can’t see value field in enather form.

The solution to your issue really depends on the manner with which you are creating the documents in the embedded view. If those documents are responses then you could use the “$Ref” field in your @GetDocField statement (e.g. @GetDocField( $Ref; “fieldName” ) ).

However if this is not the case, you will have to retrieve and record the UNID of the original document on the other documents (those in the embedded view) when they are created.

Actually, while I was posting this response I had an idea. I wonder if you could write the current document’s UNID out to the environment when you open the embedded document? I would use an action button atop the embedded view, and use code something like the following…

Dim session As New NotesSession

Dim ws As New NotesUIWorkspace

Dim uiView As NotesUIView

Dim uiDoc As NotesUIDocument

Dim collection As NotesDocumentCollection

Dim selectedDoc As NotesDocument

Set uiDoc = ws.CurrentDocument

Call session.SetEnvironmentVar( “CurrentUNID”, uiDoc.Document.UniversalID )

Set uiView = ws.CurrentView

Set collection = uiView.Documents

Set selectedDoc = collection.GetFirstDocument

If Not( selectedDoc Is Nothing ) Then

Call ws.EditDocument( True, collection.GetFirstDocument )

End If

Then you would use a formula statement something like…

@GetDocField( @Environment( “CurrentUNID” ); “fieldName” )

This is just an idea, but perhaps it may lead you in the right direction (I have not tried this method before, and haven’t had the time to give it a test - just thought of it).

Subject: I can’t see value field in another form.

Terry,Tanks for your answer it give me many new information. I have one more question becous I thing that your first propose solution will be good for me, how can I define that one document is parent document and second is child document associate with parent? I knew that I can use $ref but I don’t how right define inherent between document.

Best regards.

Subject: RE: I can’t see value field in another form.

Search the Designer help for terms such as “response hierarchy” or “response documents”. Response documents are “children” of their associated “parents”, and automatically contain the required “$Ref” field.

Cheers,

T.