Web Form Tip/Trick for /view/doc?EditDocument

Well after many hours of working on building a shopping cart app… I stumbled onto something that I never knew. I hope this helps someone else as well.

I like keeping my Notes forms and Web Forms seperate. The draw back is that you have to jump through hoops to Edit a document by key with the web form if the document was created using the notes form name.

I spent hours trying to find the cleanest way to get my document on the web into edit mode using the correct web form.

Anyway I learned that if you hide your notes form from the web. Then add the notes form name as an alias to the the web form name… BAMM! The browser will edit your document using the desired form. Yes there are URL commands that allow you to use a formname. But if you ever tried to get the job done using the

/view/keyvalue?EditDocument you will know what mess you can get into.

Maybe this was already common knowledge. But if not enjoy. You can have 2 views with the same name. But you can’t have 2 forms with the same name. Unless the duplicate name is an alias.

Subject: Web Form Tip/Trick for /view/doc?EditDocument

What are those “URL commands that allow you to use a formname” ?

Subject: Web Form Tip/Trick for /view/doc?EditDocument

There’s a better way still. Go ahead and give your forms the same name – there’s nothing stopping you – but then use the properties dialog from the forms view in designer to say which is for use in Notes, which for the Web:

Though as a general best practice, it’s not a bad idea to also give them different names and the same alias, since there are contexts where you may be presented with just a list of form names and need to select the right one based on that.

Subject: RE: Web Form Tip/Trick for /view/doc?EditDocument

For some reason my designer would allow me to create the forms with same names. I can do that for views but not forms. So thats why I figured I was onto something. I am using 6.0.0 so maybe there was an issue with that.