Can't create document via URL

I am trying to create a document using the standard URL format of “http://servername/db/myform?CreateDocument”; however, instead of creating the “my form” document, my URL creates a document of another form name (let’s call it “displayform”). “Displayform” is actually used to display documents created with “myform” in several views, but I’m not sure why it’s pulling up in the create mode. Any ideas?

Subject: Can’t create document via URL

try ?OpenForm

Subject: RE: Can’t create document via URL

Why? Data posted with ?CreateDocument is saved as a document immediately, firing the $$Return (if present). ?Open form brings the user to a UI form presentation, which must then be submitted – again. That sort of defeats the purpose of creating an HTML form on the host object (page, $$ViewTemplate, what have you), doesn’t it?

Is there a form formula in your default view?

Subject: RE: Can’t create document via URL

What Stan says makes perfect sense as to why it’s opening the way it is; I believe that once the document is saved, it’s displayed with the other form; this is someone else’s (extremely irrational and complicated) code, so that’s why I’m not 100% certain. To answer your question, no, the default view does not have a form formula – some of the views do, but not the default.

Stan, any idea why I lose my session authentication when I do “?openform”? FYI, this is happening w/ a frameset – my guess is one frame doesn’t have my session info, any way I can resolve that?

Subject: RE: Can’t create document via URL

that works, but it logs me out so @Username becomes Anonymous – any ideas?