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).