I am trying to use @command([OpenView]; “viewname”; “keyvalue”) to go directly to a document withing a view. For example: @command([OpenView]; “Administrator”; “12345”) puts document 12345 in Administrator view at the top of the page. It works great. The problem is that I need the user to be able to select what ever document they are going after. In other words, I need the key value (12345) to be a variable.
I am using a web only application with hotspots. I’ve tried using InputBox and DialogBox and a dozen other iterations to make this work. Does anybody have any ideas?
Much appriciated
Subject: @command([OpenView]; “viewname”; “keyvalue”)
You can use a field name instead of a constant as the key value in your OpenView command. By populating that field using javascript or some other method, you can then issue:
@command([OpenView]; “Administrator”; unquotedFieldName)
Also, as an alternative, be aware that you can open an OpenView URL as described here:
http://www-12.lotus.com/ldd/doc/domino_notes/7.0/help7_designer.nsf/855dc7fcfd5fec9a85256b870069c0ab/63d772b44948d4848525704a003f6544?OpenDocument
Check the option argument named “StartKey”
As an example, you would have:
http://host/path/database.nsf/Administrator?OpenView&StartKey=12345