Simplicty and flexibility!


DocumentOpen("MyForm","DT") -- Open in Designmode (Developer Only).
DocumentOpen("MyForm.frm","SYS") -- Open a system form.
DocumentOpen("Customers/?CustomerID=0005") -- Open with Filter.
DocumentOpen("Tablename","Table") -- Open Table in Form view.
DocumentOpen("Tablename","TableList") -- Open Table in List View (table view).

If DocName is not empty the specified document will be opened. If DocName is empty then a dialog will display with all documents.
DFW Action(s): Document Open -- Enter: Document Name extended to include extra argument with keyword "DT" to open Document in Design Time (Developer Only). extended to include extra argument with keyword "SYS" to open frm document (system form). It can take frm file name that will load the form from the program catalog, full path that can load an frm form anywhere on your computer and a filter that is added as a query string at the end prefixed by a /?. Ex. DocumentOpen(StringEscape("my\full\path\USERFORM.FRM/?Name=/'me/'"),"SYS") Filter added so you can open a document with preset filter. ex. DocumentOpen("Customers/?CustomerName=/'A*/'") will open Customers with the filter set to list all customers with customername starting with an A. Opening Table is added. 
9.0 Onwards  DocumentOpen with extra parameters added. At the moment it supports: DocumentOpen("DocName","window"), DocumentOpen("DocName","nooutput") (only without list records when using data-entry in this commit), DocumentOpen("DocName","export","filename") (only without data-entry in this commit), DocumentOpen("DocName","printer","printer 1..4 or the actual name or nothing for default printer") and DocumentOpen("DocName","pdf","filename").
DocumentOpen(name,"PDF", file). DocumentOpen(name, "preview") added. DocumentOpen(name, "printer", printername) now printer name can be "Application printer 1-4" or the name of the printer. Blank is default printer.

DE: added DocumentOpen("DQLName", "EMail", "pdfname.pdf", "EmailTo", "Subject" , "Body") will generate a pdf from the dql en send it using the emailsettings in ini file.

Prism: StringFind now supports extra paramters and not just 2.

DEOS("@emailsend" ... now supports attachments and you can skip from and it will use settings in ini.

Generating pdf, preview and email has a waiting function to make sure the pdf is generated before continue. It will time out after 5 seconds if pdf not generated properly.

SetCurrent("cutepdffilename","filename") extended to add app path if filename do not have : in position 2 of filename.


DocName: String

Mode: String -- "DT" Open in DesignTime.

Mode: String -- "SYS" Open system form
Mode: String -- "Table" -- Open Table in Form View
Mode: String -- "TableList" -- Open Table in List View.


Status : integer



See Also

On the forum about DocumentOpen


This is good, if you can make the form MODAL....If not, I do not see any use :-)...

Product: . Written by Jeyarajah Arulrajah 07/11/15 at 21:50:30


You don't see any point in DocumentOpen()?Anyway, DocumentOpen() has been around for donkeys years.... ;-) The new stuff is that you can open a Form in Design Mode.This might not be so useful for the average Application User, but very...

Product: Dataease [{8}]FIVE. Written by DataEase 08/11/15 at 12:48:55


What I meant to say was, DocumentOpen with mode...I do not see any use for myself.Unless if it comes with MODAL feature....

Product: Dataease [{8}]FIVE. Written by Jeyarajah Arulrajah 08/11/15 at 15:35:04

DocumentOpen with variable filter

How can i get a variable value (The value of a field in the current record) into the DocumentOpen statement?If I put a hardcoded value in it works fine but I cannot seem to insert a variable value into the statement.DocumentOpen("Process...

Product: Dataease [{8}]FIVE. Written by Peter Birney, PB Associates 12/07/19 at 17:55:46

Re:DocumentOpen with variable filter

Sorry for the late reply.&nbsp;DocumentOpen(concat("ProcessHistoryView/?BuildNumber=",FieldName"))&nbsp;DocumentOpen need a text string, so if you want it to be variable you need to build a text string that is variable the normal way.<...

Product: Dataease [{8}]FIVE. Written by DataEase 30/09/19 at 16:09:46

DEOS and Documentopen

I seem to be having issues getting DEOS and DocumentOpen to work how I assume they are supposed to!I have set this up on a simple button to test:setvar("VFile",DEOS("@Browseforfile","u:","*.pdf")) + alert(getvar("VFile")) + DocumentOpen...

Product: DataEase 9 Developer. Written by Paul Cheeseman 17/02/23 at 13:21:53

Documentopen() and creating PDF's

Using LE9 documentopen() to create a PDF and save it, I get two very different results.On the demo DB, It creates a PDF (file signature PDF-1.7) which opens fine.<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMcAAADtCAYAAAALMm...

Product: Dataease 9 Developer. Written by Paul Cheeseman 03/03/23 at 14:19:34

DocumentRun vs DocumentOpen

The problem with using DocumentOpen for this is that its a "fire and forget" command which can be overridden by other windows command and end the creation early.As DocumentOpen() has many other uses where the "default" POST feature is desireab...

Product: Dataease 9 Developer. Written by DataEase 03/03/23 at 15:39:22

Re:DocumentRun vs DocumentOpen

I see that.It doesnt, however, alter the resulting output, with the PS 3.0 output on one, but the desired PDF 1.7 output on the other. Its this that I really have to sort.Documentrun() will make it easier to work multiple instances like...

Product: Dataease 9 Developer. Written by Paul Cheeseman 03/03/23 at 15:45:31

Re:Re:DocumentRun vs DocumentOpen

Have you had any thoughts on this PS 3.0 creation instead of PDF 1.7 creation?Unfortunately it does stop us using that function....

Product: Dataease 9 Developer. Written by Paul Cheeseman 10/03/23 at 12:18:15

Re:Re:Re:DocumentRun vs DocumentOpen

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA6QAAAMqCAYAAACVBYx1AAAgAElEQVR4nOydeXhURda439vd2cnSYckGmIWouCQmYVEBRwibiOKGM4M6jIqonw4y6nwujMuoIM44nyPq/DCDg4jbDLhHFDCgiAuEEAjKFrMAgSQs2cnWy/390d1Jp9NrFgJ63ufhIX2r6tSpunW769xzqkpRVVVFEARBEARBEAR...

Product: Dataease 9 Developer. Written by DataEase 10/03/23 at 16:14:39

On the blog about DocumentOpen