I’m working on some existing code and have been tasked with trying to figure out a solution. Here’s the quick synopsis:
The user opens a contact in our CRM application. That opens a frameset in which the contact form opens up in the top frame, and in the bottom frame, we show a form with an embedded view from another database, whereby we pass the values for “Embedded Selection” and “View Single Category”.
Here’s essentially the code that performs that:
Set iDoc = New NotesDocument(thatDB)
With iDoc
.form = "dspView"
.dspKey = strKey
.dspView = strView
End With
Call uiws.SetTargetFrame(“BodyView”)
Call iDoc.Save(True, False)
Set uidoc = uiws.EditDocument(True, idoc)
(the strKey and strView variables are what pass to the embedded selection and the view single category).
The thing I’m trying to figure out, if it’s possible, is why I have to save the document for it to display? If I don’t save it, it gives me an “Unable to find Document Window” error. I’ve tried ComputeWithForm…no luck…I’m guessing the hangup is that we’re passing those view values on the fly?
As it is now, it works, but it creates hundreds of these “dspView” forms daily, which we have to delete with an agent nightly. I was hoping that there might be a way to show this without the save to save us a lot of overhead.
Thanks much, and let me know if you need more info…