Dear all,
As you know, the feature for Form Formula is used to open a document with other form.
Thus I have used this feature to open a document by using a simple form, that contain less information, in order to make the document opened more fast.
BTW, I also have a action button inside the simple form, which is used to switch the document to the original form.
However, that action button cannot be worked after our client upgraded to R6.
The following is the code for this button.
Sub Click(Source As Button)
Dim thisWorkspace As New NotesUIWorkspace
Dim thisUIDoc As NotesUIDocument
Dim thisDoc As NotesDocument
'get current UIDoc
Set thisUIDoc = thisWorkspace.CurrentDocument
Set thisDoc = thisUIDoc.Document
'close UIDoc
thisUIDoc.Close
'open the origin document again with original form
Set thisUIDoc = thisWorkspace.EditDocument(False, thisDoc)
End Sub
My company has just upgraded part of our client to R6. So I need to concern about the coexistence issue.
Can anyone tell me which area is gotten problem or this is a bug in R6.
Thanks a lot! 
Subject: Simple Form
Try to put this -@If(@IsNewDoc; @Return(Form); “”)
- in your Form Formula and tell me if it worked after this.
By the way. Search for “form formula” in the designer help. It gives you the reason why.
cti
Subject: RE: Simple Form
Thanks Christian,
Actually, my form formula in the view is as follow:
@If(@IsNewDoc;@Return(Form);“Simple Form”)
All the document selected inside this view must be an old document rather than new document. Besides, the reason why I use form formula is want to open the document with a simple form in order to make it opened faster than using original form.
So I would like to ask any ideas on:
- Open document by using ‘Form A’, and provide a function, inside ‘Form A’, to switch it back to ‘Form B’.
-
Form A - Simple Form
-
Form B - Original Form
Actually, I have found a solution on this problem is to compose a new document in the QueryOpenDocument event of the view and put a ‘Continue = False’ syntax after compose the document. Then then action button in my previous post will be worked.
However, user cannot use ‘Enter’ and ‘Back Space’ key to go to next and previous document.
Regards,
Dennis Hung