跳到主要內容

XPage 紀錄 – IBM XPage Lab 實作 (一)

  跟著ibm的lab做XPage,與albert課程講義不同的是,lab是以一個ap建置所需要用的來製作,而albert所出的書是針對XPage整個元件使用詳細介紹,兩者搭配使用,能更快速的將XPage上手。

本次主要重點:
1.      自訂控制項使用
2.      學習"完整更新"畫面及"局部更新"畫面的差別
3.      XPage基礎元件 標籤、輸入框、按鈕、畫面使用


自訂控制項就像XPage的子表單(副套表),也很像是開發好的許多元件、插件依需求放到XPage中

練習一:開發新的自訂控制項


在自訂控制項中插入 核心控制項『標籤』並輸入計算公式


如上圖之標籤,可以輸入計算值,計算值部分目前XPage有提供許多程式函數
也有將Notes Formula Language寫成Javascript的方式,寫法和Client大同小異

製作完自定控制項後,請新增XPage頁面(參考筆記一),可以透過下列2方式加入自訂控制項



完成第一步驟,儲存並預覽。



練習項目二:『完整更新』畫面及『局部更新』畫面
完整更新:
注意:在lab 2中,都是針對自定控制項修改。依據lab2動作內容如下:


其中 compositeData 物件負責儲存(hold)所有針對自訂控制項的自訂內容定義,如下圖


預覽則如下:


局部更新
修改按鈕為局部更新




預覽







留言

這個網誌中的熱門文章

XPage 紀錄 – IBM XPage Lab 實作 (四)

本次重點在於,自動搜尋 (type-ahead) 功能,跟目前 Web 上輸入文字,自動帶出關鍵字方便使用者輸入。 1.開啟 profileForm 建立下拉 ( 組合框 ) 欄位的選項值↓ 點選該欄位,選下方『值』 à 先點『新增項目』出現未命名,在輸入選項值↑

安裝 Office 2003 Service Pack 3 後,特定檔案格式會被封鎖的資訊

安裝 Office 2003 Service Pack 3 後,特定檔案格式會被封鎖的資訊 檢視此文章適用的產品。 注意事項 重要 本文包含如何修改登錄的相關資訊。修改登錄之前,請務必將它備份起來,並了解在發生問題時如何還原登錄。如需有關如何備份、還原和修改登錄的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件: 256986 (http://support.microsoft.com/kb/256986/ ) 說明 Microsoft Windows 登錄 在此頁中 結論 簡介 其他相關資訊 Excel PowerPoint PowerPoint Word Corel Draw

Notes改 Internet Password

Internet Password Change application helps users in changing their Internet Password. This application is 'web browser only' application and is IE and Netscape browser complaint. The application gets the new password as input from the user and updates the Internet Password in his person document in the address book. Please note that this application is an enhancement over previous version available at:   http://www.notes.net/sandbox.nsf/ByDateNJ/6b3ac13c82ba68c885256b4f0074c89d?OpenDocument Use this version when "Use more secure Internet Passwords" option is enabled in the Domino Directory Profile. If the option is not enabled then using the previous version is advisable. Using the application: Step 1: Sign the database using an ID which can edit any person document in the names.nsf. Usually this will be the server administrator. Step 2: Open the "Change Password" form from anywhere on your Intranet. Sample Code -