アプリケーションの設計
注意 データベースのプロパティ [URL 参照を許可しない] を設定すると、これらの URL コマンドは無効にされます。
メモ 次に記載されている URL は例です。実在の Web サイトを示すものではありません。
Redirect
構文
http://Server/Dummy.nsf?Redirect&Name=notesserver&Id=To=encodedurl
それぞれの意味は次のとおりです。
http://mercury.com/dummy.nsf?Redirect&Name=Mister%2FHankey&Id=0525666D0060ABBF&To=%FAView%3FOpenView
メモ ?Logout コマンドでログアウトを強制すると、&RedirectTo パラメータを使用して別の Web サイトにリダイレクトできます。
OpenDatabase
http://Host/__DatabaseReplicaID.nsf?OpenDatabase
例
http://www.mercury.com/leads.nsf?OpenDatabase
http://www.mercury.com/sales/discussion.nsf?OpenDatabase
http://www.mercury.com/__852562F3007ABFD6.nsf?OpenDatabase
OpenView
http://Host/Database/ViewName?OpenView
http://Host/Database/ViewUniversalID?OpenView
http://Host/Database/$defaultview?OpenView
http://www.mercury.com/leads.nsf/By+Salesperson?OpenView
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F300702264?OpenView
http://www.mercury.com/leads.nsf/$defaultview?OpenView
OpenView の引数 (省略可能)
URL をより正確にするために、オプションの引数を付加します。特に指定がなければ、目的の結果を得るために次の引数のいずれかを組み合わせます。
Collapse=n
category はビューで表示されるカテゴリです。
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?OpenView&CollapseView
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?OpenView&ExpandView
http://www.mercury.com/leads.nsf/By+Category?OpenView&RestrictToCategory=pricing
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?OpenView&Start=3&Count=15
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?OpenView&StartKey=F
ReadViewEntries
このコマンドは、フォント、リストの区切り、日付フォーマット、HTML 設定、ビューテンプレート、フレームリダイレクトのような表示上の属性を指定せずに XML フォームのビューデータにアクセスするのに使用します。
メモ このコマンドではユーザーがアクセスできる文書のみが返されます。
http://Host/Database/ViewName?ReadViewEntries
http://Host/Database/ViewUniversalID?ReadViewEntries
http://Host/Database/$defaultview?ReadViewEntries
http://www.mercury.com/leads.nsf/By+Salesperson?ReadViewEntries
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F300702264?ReadViewEntries
http://www.mercury.com/leads.nsf/$defaultview?ReadViewEntries
ReadViewEntries の引数 (省略可能)
ResortDecending=column number
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?ReadViewEntries&CollapseView
http://www.mercury.com/leads.nsf/By+Category?ReadViewEntries&Endview=1&Count=3
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?ReadViewEntries&ExpandView
http://www.mercury.com/leads.nsf/By+Category?ReadViewEntries&NavigateReverse=1&Start=50
http://www.mercury.com/leads.nsf/By+Category?ReadViewEntries&outputformat=JSON
http://www.mercury.com/leads.nsf/By+Category?ReadViewEntries&PreFormat
http://www.mercury.com/leads.nsf/By+Category?ReadViewEntries&RestrictToCategory=pricing
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?ReadViewEntries&Start=3&Count=15
http://www.mercury.com/leads.nsf/DDC087A8ACE170F8852562F30070226400000196?ReadViewEntries&StartKey=F
http://www.mercury.com/leads.nsf/By+Department?ReadViewEntries&StartKey=312&KeyType=number
OpenAbout
OpenAbout コマンドを使用すると、「データベースについて」文書にアクセスできます。
http://Host/Database/$about?OpenAbout
http://www.mercury.com/leads.nsf/$about?OpenAbout
OpenHelp
OpenHelp コマンドを使用すると、「データベースの使い方」文書にアクセスできます。
http://Host/Database/$help?OpenHelp
http://www.mercury.com/leads.nsf/$help?OpenHelp
OpenIcon
OpenIcon コマンドを使用すると、データベースアイコンにアクセスできます。
http://Host/Database/$icon?OpenIcon
http://www.mercury.com/leads.nsf/$icon?OpenIcon
関連項目