Embedded View Visibility Problem

Hi All,I have form with Artist info. In the same form i have an embedded view of all child docs (not Response Docs) with show single category set to the ArtistName. I have an action button to compose a child doc. Now when the user clicks this action button i want this child form (not response form) to show the embedded view with ‘ShowSingleCategory’ set to ArtistName. Thus the parent as well as child doc both have the same embedded view.

My problem is that when the child document is composed the embedded view is not visible. It beomes visible once it is saved.

Is there no way to show an embedded document before [FileSave] ?? I tried keywords and ‘refresh on keyword change’ but nothing helped.

Please help me out, I have a meeting tomorrow.

Thanx in advance,

Rashmi

Subject: Embedded View Visibility Problem

Pass the key value to an environmental variable. Then make the single category for evaluate to the environmental variable if it’s a new doc only. Afterward, evaluate to ArtistName.

e.g.

Compose document action…

@Environment(“ArtName”; ArtistName );

@Compose( “NewChildForm”)

Single-category formula …

@If (@IsNewDoc; @Environment(“ArtName” );

ArtistName )

Subject: Embedded View Visibility Problem

The best way to do this would be to avoid composing the new document. Instead, create it in the back end (using LotusScript) and populate the “inherited” fields in your script, then call the document into the workspace with EditDocument(True, doc). Since the field controlling the view is already available when the document is opened into the workspace, the correct category should be displayed in the view.

Subject: RE: Embedded View Visibility Problem

I m sorry Stan but that didn’t work. I do not get any error. But the i can not see the new document created in the backend using lotus script.

My code is as follows. do let me know what i m doing wrong.

Thanx once again,

Rashmi

On Error Goto ErrorHandler

Dim s As New NotesSession

Dim ws As New NotesUIWorkspace

Dim currentDB As NotesDatabase

Dim uidoc As NotesUIDocument

Dim doc As NotesDocument

Dim csRRDoc As NotesDocument

Dim csRRUIDoc As NotesUIDocument

Set currentDB = s.CurrentDatabase

set uidoc = ws.CurrentDocument

Set doc = uidoc.Document

Set csRRDoc = currentDb.CreateDocument

csRRDoc.Property = doc.Property

csRRDoc.SortName = doc.SortName

csRRDoc.TwoDigitCode = doc.TwoDigitCode

csRRDoc.PropertyCode = doc.PropertyCode

csRRDoc.DepartmentCode = doc.DepartmentCode

csRRDoc.Office = doc.Office

csRRDoc.OriginatingOffice = doc.OriginatingOffice

csRRDoc.FurnishComp = doc.OriginatingOffice

csRRDoc.Form = “ContractSummaryRR”

Set csRRUIDoc = ws.EditDocument(True, csRRDoc)

Exit Sub

ErrorHandler:

Print “An error " + Error$ + " occurred in line number: " + Cstr(Erl) + " when QueryClose event fires”

Exit Sub

Subject: RE: Embedded View Visibility Problem

Other than that you’re setting FurnishComp to OriginatingOffice (which won’t affect the operation of the code), I don’t see anything wrong; and the code (modified only slightly to suit the fieldnames of the form I was using) worked fine for me.

Subject: RE: Embedded View Visibility Problem

That’s interesting. Culd it be a R5/R6 issue ??

My designer is an R5 but my users r all going to be on R6 client. So culd it be that the problem is with my designer but when my users use it there won’t be any issue ??

I wish i culd reasonout on my own.

Thanx once again,

Rashmi

Subject: You don’t appear to be setting ArtistName field.

Subject: RE: You don’t appear to be setting ArtistName field.

Actually it’s called Property on the form. Just wanted to be more clear hence used the label.

Hope u can help !?!?

Thanx,

Rashmi

Subject: RE: Embedded View Visibility Problem

Thanx Stan, That sounds feasible. Let me do it and get back to u.

Thanx once again,

rashmi

Subject: RE: Embedded View Visibility Problem

Just one question before i start the coding.

Does it mean that the backend document is first saved & then opened using EditDocument method of workspace ??

Thanx,

Rashmi