日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

Web端開發(fā)(公式語言2)

 昵稱4394 2006-01-17
WEB端開發(fā)(公式語言 2)

@command
Web 支持下面列出的 @command;此處未提及的 @command 不能用于 Web。應該了解,這些 @command 可能有些限制或在 Web 上的表現(xiàn)與在 Notes 客戶機中不同。
CalendarFormat
CalendarGoto
Compose
EditClear
EditDocument
EmptyTrash
FileCloseWindow
FileOpenDatabase
FileSave
Folder
MoveToTrash
NavigateNext
NavigateNextMain
NavigatePrev
NavigatePrevMain
OpenDocument
OpenFrameset
OpenHelpDocument
OpenNavigator
OpenPage
OpenView
RemoveFromFolder
ToolsRunMacro
ViewChange
ViewCollapse
ViewCollapseAll
ViewExpand
ViewExpandAll
ViewRefreshFields
ViewShowSearchBar
CalendarFormat
CalendarFormat @command 更改日歷視圖顯示的天數(shù)。Web 選項是:
@Command([CalendarFormat] ; \"1\"
@Command([CalendarFormat] ; \"2\"
@Command([CalendarFormat] ; \"7\"
@Command([CalendarFormat] ; \"14\"
@Command([CalendarFormat] ; \"30\"
@Command([CalendarFormat] ; \"365\"
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID?OpenView&Grid=n&Date=yyyy-mm-dd
CalendarGoto
CalendarGoto @command 轉(zhuǎn)至日歷視圖中的指定日期。以下樣例轉(zhuǎn)至今天的日期:
@Command([CalendarGoTo]; @Today)
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID?OpenView&Grid=n&Date=yyyy-mm-dd
Compose
Compose @command 新建文檔。
要在當前數(shù)據(jù)庫中創(chuàng)建主文檔,可僅指定 form 參數(shù)并在視圖、頁面或瀏覽器中執(zhí)行 Compose 命令。下面的樣例實現(xiàn)為一種視圖操作,基于“主文檔”表單創(chuàng)建主文檔。
@Command([Compose]; \"Main Document\"
要創(chuàng)建答復文檔,可如上所示指定 @command,但要在打開的文檔中執(zhí)行它。例如,如果以下代碼作為“主文檔”表單上的一種操作來實現(xiàn),則打開一個基于該表單的文檔并按下按鈕將創(chuàng)建一個答復文檔:
@Command([Compose]; \"Response Document\"
要在另一數(shù)據(jù)庫中創(chuàng)建主文檔,可指定 database 和 form 參數(shù)。由于瀏覽器不能訪問另一個服務器,必須將 server 指定為空字符串。以下樣例在“document examples.nsf”中基于該數(shù)據(jù)庫中的“Main Topic”表單創(chuàng)建新文檔。
@Command([Compose]; \"\" : \"document examples.nsf\"; \"Main Topic\"
這些 @command 相當于以下格式的 URL 命令:
http://host/database/view?OpenForm
http://host/database/form?OpenForm&ParentUNID=mainunid
EditClear
EditClear @command 刪除當前打開的文檔:
@Command([EditClear])
對于 Web 應用程序,可以只在表單中執(zhí)行該 @command。刪除之后,標有文本“已刪除”的文檔將替換當前文檔。
在 Notes 客戶機中,此 @command 標記文檔為要刪除或者刪除文本(取決于其中的設計元素)。
此 @command 相當于如下格式的 URL 命令:
http://host/database/view/universalID?DeleteDocument
EditDocument
EditDocument @command 切換文檔的“閱讀”和“編輯”模式。
@Command([EditDocument])
對于 Web 應用程序,不能使用 mode 和 previewpane 參數(shù)。
此 @command 相當于如下格式的 URL 命令:
http://host/database/view/universalID?EditDocument
EmptyTrash
EmptyTrash @command 刪除被標記為要刪除的文檔并刷新當前視圖。
@Command([EmptyTrash])
僅當“使用 Java 小程序”有效時,此 @command 才能用于 Web 上的視圖。
FileCloseWindow
在瀏覽器中,F(xiàn)ileCloseWindow @command 通過裝載另一頁來模擬關(guān)閉一個窗口,通常是前一頁顯示。
要提交一個打開之后進行編輯的文檔,可先發(fā)出 FileSave 命令,再發(fā)出 FileCloseWindow 命令??蓪⒃撁钭鳛橐环N表單操作或按鈕來實現(xiàn)。
@Command([FileSave]);
@Command([FileCloseWindow])
如果文檔不包含 $$Return 域,則瀏覽器顯示帶有“表單已處理”消息的頁。如果文檔包含 $$Return 域,則瀏覽器顯示其 HTML 或顯示一個鏈接。通常情況下,$$Return 是“顯示時計算”文本域。要返回創(chuàng)建或打開文檔的視圖,可將 $$Return 域的公式指定為包含在括號中的 OpenView URL 命令,例如:
db := @ReplaceSubstring(@ReplaceSubstring(@Subset(@DbName; -1);
\"\\\\\"; \"/\"; \" \"; \"+\";
\"[/\" + db + \"/Main+View?OpenView]\"
詳細信息,請參閱《Application Development with Domino Designer》中的“為 Web 定制‘表單已處理’確認信息”。
FileCloseWindow 不能用于 Web,除非在數(shù)據(jù)庫屬性中已設置了“當生成頁面時使用 JavaScript”。這是缺省設置。
FileOpenDatabase
在 Web 上,只能如下所示將 FileOpenDatabase @command 與 OpenDocument 一起使用。
FileSave
FileSave @command 保存當前文檔,該文檔必須處于打開以進行編輯的狀態(tài)。
關(guān)于將 FileSave 與 FileCloseWindow 一起使用以提交文檔的信息,請參閱 FileCloseWindow。
FileSave 不能用于 Web,除非在數(shù)據(jù)庫屬性中設置了“當生成頁面時使用 JavaScript”。這是缺省設置。
Folder
Folder @command 將所選文檔從一個視圖或文件夾拷貝或移動到另一個文件夾。以下樣例中第一個為拷貝,第二個為移動。
@Command([Folder]; \"Favorite Stuff\"; \"0\"
@Command([Folder]; \"Archive\"; \"1\"
只有當“在瀏覽器中使用小程序”對正在執(zhí)行的視圖或文件夾有效時,此 @command 才可用于 Web。
MoveToTrash
MoveToTrash @command 將視圖或文件夾中所選的文檔標記為刪除。
@Command([MoveToTrash])
只有當“在瀏覽器中使用小程序”對正在執(zhí)行的視圖或文件夾有效時,此 @command 才可用于 Web。
NavigateNext
NavigateNext @command 打開當前視圖或文件夾中的下一文檔。
@Command([NavigateNext])
對于 Web 應用程序,只可以在表單上使用此 @command;不能在視圖或文件夾中使用它。
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID?OpenDocument
NavigateNextMain
NavigateNextMain @command 打開當前視圖或文件夾中的下一個主文檔。
@Command([NavigateNextMain])
對于 Web 應用程序,只可以在表單上使用此 @command;不能在視圖或文件夾中使用它。
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID?OpenDocument
NavigatePrev
NavigatePrev @command 打開當前視圖或文件夾中的前一個文檔。
@Command([NavigatePrev])
對于 Web 應用程序,只可以在表單上使用此 @command;不能在視圖或文件夾中使用它。
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID?OpenDocument
NavigatePrevMain
NavigatePrevMain 命令打開當前視圖或文件夾中的前一個主文檔。
@Command([NavigatePrevMain])
對于 Web 應用程序,只可以在表單上使用此 @command;不能在視圖或文件夾中使用它。
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID?OpenDocument
OpenDocument
OpenDocument 命令與 OpenView 一起使用,打開當前數(shù)據(jù)庫中的現(xiàn)有文檔。視圖必須已排序且 OpenView 命令必須精確地指定關(guān)鍵字(除不必考慮大小寫外)。例如,以下代碼打開“主視圖”(第一個排序列包含值“one”)中的第一個文檔:
@Command([OpenView]; \"Main View\"; \"one\";
@Command([OpenDocument])
與 Notes 客戶機的不同存在于以下幾方面:
在 Notes 客戶機中,可以在沒有前述的 OpenView 或未指定關(guān)鍵字的情況下指定 OpenDocument 來打開視圖中的當前文檔。在 Web 上這樣做會失敗。
在 Notes 客戶機中,可以指定部分關(guān)鍵字,例如,指定“o”或“on”來代替“one”。在 Web 上關(guān)鍵字必須精確匹配。
對于 Web 應用程序,可以使用關(guān)鍵字“$first”來打開視圖中的第一個文檔:
@Command([OpenView]; \"Main View\"; \"$first\";
@Command([OpenDocument])
要以“編輯”模式打開文檔,可將 OpenDocument 的 writeOrReadOnly 參數(shù)指定為“1”。例如:
@Command([OpenView]; \"Main View\"; \"one\";
@Command([OpenDocument]; \"1\"
對于 Web 應用程序,不能使用 OpenDocument 的 UNID 和 width:height 參數(shù)。
OpenDocument 命令與 FileOpenDatabase 一起使用,可打開另一數(shù)據(jù)庫中的現(xiàn)有文檔。以下樣例打開“document examples.nsf”的“所有文檔”視圖中的第一個文檔:
@Command([FileOpenDatabase];
\"\" : \"document examples.nsf\"; \"All Documents\"; \"$first\";
@Command([OpenDocument])
這些 @command 相當于以下格式的 URL 命令:
http://host/database/view/key?OpenDocument
http://host/database/view/key?EditDocument
OpenFrameset
OpenFrameset @command 打開一個幀結(jié)構(gòu)集。
@Command([OpenFrameset]; \"WebToDoFS\"
此 @command 相當于如下格式的 URL 命令:
http://host/database/frameset?Op ... otesView&Src=source
OpenHelpDocument
OpenHelpDocument @command 打開“幫助”數(shù)據(jù)庫或指定數(shù)據(jù)庫中的指定文檔。以下樣例打開“Designer 幫助”的“搜索”視圖中的“OpenDocument”主題:
@Command([OpenHelpDocument]; [DesignerHelp]; \"Search\"; \"OpenDocument\"
此 @command 相當于如下格式的 URL 命令:
http://host/database/frameset?OpenFrameSet&Frame=Topic&Src=source
OpenNavigator
OpenNavigator @command 打開一個導航器。
@Command([OpenNavigator]; \"Main Navigator\"
在 Web 應用程序中不能使用 solo 參數(shù)。
此 @command 相當于如下格式的 URL 命令:
http://host/database/navigator?OpenNavigator
OpenPage
OpenPage @command 打開一個頁面。
@Command([OpenPage]; \"Page One\"
此 @command 相當于如下格式的 URL 命令:
http://host/database/page?OpenPage
OpenView
OpenView @command 打開當前數(shù)據(jù)庫中的一個視圖。例如,以下代碼打開“主視圖”:
@Command([OpenView]; \"Main View\"
如果指定了關(guān)鍵字,則視圖必須排序而且 OpenView 命令必須精確指定關(guān)鍵字(除不必考慮大小寫外)。在 Web 上,打開視圖時包含關(guān)鍵字的行位于頂部。以下代碼打開“主視圖”,且其第一行包含值“one”:
@Command([OpenView]; \"Main View\"; \"one\";
@Command([OpenDocument])
在 Notes 客戶機中,可以指定部分關(guān)鍵字,例如,指定“o”或“on”來代替“one”。在 Web 應用程序中,關(guān)鍵字必須精確匹配。
在 Web 應用程序中,用于關(guān)鍵字的“$first”是指第一行。
這些 @command 相當于以下格式的 URL 命令:
http://host/database/view?OpenView
http://host/database/view/OpenView?StartKey=one
RemoveFromFolder
RemoveFromFolder @command 從文件夾刪除所選文檔。
@Command([RemoveFromFolder])
只有當“在瀏覽器中使用小程序”對正在執(zhí)行的視圖或文件夾有效時,此 @command 才可用于 Web。
ToolsRunMacro
ToolsRunMacro @command 運行當前數(shù)據(jù)庫中的代理。例如,以下代碼運行代理“Status = open”:
@Command([ToolsRunMacro]; \"Status = open\"
代理在包含數(shù)據(jù)庫的 Domino 服務器上而不是在瀏覽器計算機上運行。請參閱“Web 代理”。
ViewChange
ViewChange @command 打開當前數(shù)據(jù)庫中的視圖。例如,以下代碼打開“主視圖”:
@Command([ViewChange]; \"Main View\"
在 Web 應用程序中,不能遺漏 view 參數(shù)。
此 @command 相當于如下格式的 URL 命令:
http://host/database/view/OpenView
ViewCollapse
ViewCollapse @command 折疊視圖中當前分類或當前主文檔下的所有內(nèi)容。
@Command([ViewCollapseAll])
僅當“使用 Java 小程序”有效時,此 @command 才能用于 Web 上的視圖。
ViewCollapseAll
ViewCollapseAll @command 折疊視圖使其只出現(xiàn)最高級別的分類名稱。
@Command([ViewCollapseAll])
此 @command 相當于如下格式的 URL 命令:
http://host/database/viewy/OpenView&Start=1&Count=30&CollapseView
ViewExpand
ViewExpand @command 展開視圖中當前分類或當前主文檔下的所有內(nèi)容。
@Command([ViewCollapseAll])
僅當“使用 Java 小程序”有效時此 @command 才能用于 Web 上的視圖。
ViewExpandAll
ViewExpandAll @command 展開視圖以顯示所有級別。
@Command([ViewExpandAll])
此 @command 相當于如下格式的 URL 命令:
http://host/database/By+Category ... Count=30&ExpandView
ViewRefreshFields
ViewRefreshFields @command 重新計算當前打開的文檔中所有計算域的值:
@Command([EditRefreshFields])
僅當“在瀏覽器中使用小程序”對正在執(zhí)行的視圖或文件夾有效時,此 @command 才可用于 Web。
ViewShowSearchBar
在 Web 應用程序中,ViewShowSearchBar @command 打開搜索視圖。
@Command([ViewSearchBar])
在 Notes 客戶機中,此 @command 切換視圖中搜索條的顯示。
此 @command 相當于如下格式的 URL 命令:
http://host/database/universalID/$searchForm?SearchView

    本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多