Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Using ?Open instead of ?OpenForm or ?OpenView - BEWARE

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#QuestionMarkOpen or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/QuestionMarkOpen


Weird functionality I have just found when using ?open instead of ?openform in coding.





A web database had a standard web interface with the "New Document" setting as DBURL+"/main?open".

This worked fine on the development and live server, all versions 6.5.2 .

I replicated the database to a server in the US, and ?open decide to open the navigator instead of the form.

 

In the help titled "Domino URL Commands", ?open is allowed as implicit, ie Notes guesses whether you mean ?openform,

?openview or whatever.

Action can be explicit or implicit. Examples of explicit actions include ?OpenDatabase, ?OpenView, ?OpenDocument, ?OpenForm, and ?EditDocument. Examples of implicit actions include ?Open, ?Edit, and ?Delete. If you do not specify an action, Domino defaults to the ?Open action.

The last bit says that if you don't put anything, the server resolves to ?Open .  So DBURL+"/Main" resolves to DBURL+"/Main?open"

So why is it a different result for the US server?

Why is ?open resolved to ?opennavigator instead of ?openform .

How does notes resolve this, I decided to guess on which is the oldest design element with that name.

In the US version the Navigator had been "added" 15 seconds earlier.

I copied, cut and replaced the navigator to make the form older. This then worked.

 

So ?open opens the oldest element of that name, and Added date is what is used.

This is fair, there has to be a way of doing it, but, surely replication needs to add elements in the same order as they were created in the database, to keep this consistent with the other databases?

Moral of story do not have 2 design elements of different types with the same name AND don't use ?open, use the full explicit command ?OpenForm , ?OpenView etc.

 

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Web Services Platform Architecture: Soap, WSDL, WS-Policy, WS-Addressing, WS-Bpel, WS-Reliable Messaging and More by Francisco Curbera, Frank Leymann, Tony Storey, Donald Ferguson, Sanjiva Weerawarana
Other books claim to present the complete Web services platform architecture, but this is the first one I've seen that really does. The authors have been intimately involved in the creation of the architecture. Who better to write this book?
See at: Amazon.co.uk | Amazon.com |