In my database I am using the @dialogbox function to open a second window where the contents of the currently openend document is shown with another form.I would now like to achieve the same with the web interface. But I did not find any information how I have to compose the URL to open a document with a specific form.
Subject: URL to view document with a specific form
Hi - you can do this by setting the Form Formula property of a view to the form you want to display the document with (assuming the view contains your document). You would then open the document with the URL syntax:
http://server/viewname/DocumentUNIDorKey?opendocument.
Hope this helps.
Subject: RE: URL to view document with a specific form
Hello Paul,
and thanks for your quick answer. I have tried your idea but without success (this is the first time I try to do something with Javascript in Notes).
In my case I am already in the document and not in the view. I have a button in the action bar to open a smaller window with another view on the currently opened document.
I have used the following code:
var sDialogOptions = “dialogHeight:490px; dialogWidth:375px; resizable: no; status: no; help: no”;
document.forms[0].Form.value = “PRTRACK”;
window.showModalDialog(“?OpenDocument”, null, sDialogOptions);
The statement where I try to set the “Form” variable to a new value fails. It is even not possible to read the content of this variable. What am I doing wrong?
Subject: RE: URL to view document with a specific form
Hi - this is because you are using a pre-written function to open a dialog box, and there is no parameter to specify the view portion of the URL.
You need to write your own function to open modal window. You can do this using the window.open() method, and passing the URL in the format I gave you before. Have a look on Google to see the arguments of the window.open() method.