How to (re)load a form in a sidebar panel?

I have created an app to upload and share large files over the network. Instead of sending attachments, files are being stored in a central repository and references to the containing document are being sent.

It works great, users select recipients, add a message and select and upload a file. File size is being checked via this procedure. Recipients receive a separate download URL and access code. The web interface is based upon the XPages framework.

To make it easier to create new documents the idea came up to provide the upload form in a  sidebar panel.

Not a problem, you would say but somehow. But then I am faced with the following question: how do I ‘reload’ the form in the panel?  The

@Command([Compose]; “”; “FormA”)

opens the form in a normal window pane (not within the sidebar panel window pane).

A similar attempt:

Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Call workspace.ComposeDocument( “”, “”, “FormB” )
End Sub

has the same effect.

And with

Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim ses As New NotesSession
Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
Call uidoc.Close
Set doc = New NotesDocument( ses.CurrentDatabase )
doc.form = “FormA”
Call ws.EditDocument(True, doc)
End Sub

I get the message:

Do you got any suggestions?

About these ads

Specialized in IBM Collaboration Services since 1997. Main focus is XPages and Connections development. Other interests: travelling, culture, skiing & cooking.

Tagged with: ,
Posted in development

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

I am Patrick Kwinten. I am a IBM Notes Domino Product Specialist since 1996. With this blog I am trying to give my contribution to the community.

The posts in this blog project my personal opinions, not the company I work for.

C U in Orlando


Follow my projects on OpenNTF. Below are some examples:

RSS Feed

Get every new post delivered to your Inbox.

Join 251 other followers

%d bloggers like this: