範例:建立浮動視窗

如果沒有現存的浮動視窗符合您的需求,您可以建立浮動視窗。 例如,您可以建立浮動視窗,以顯示失敗類別發生的組織。 您可以設計浮動視窗,並指定出現的欄位。

關於此作業

支援下列小組件類型:
  • recordhoversection
  • recordhoversectioncol
  • recordhoversectionrow
  • recordhovertextbox
  • recordhovermultiparttextbox

在跨國公司中,管理者指出,失敗類別報告為資產的部分組織似乎更頻繁地發生失敗。 管理者想要將游標移至失敗類別欄位上,以查看發生失敗的組織名稱。

您可以檢閱浮動說明清單,並判定任何浮動說明都不符合此實務範例,因此您可以建立失敗類別欄位的浮動說明。

程序

  1. 在 Application Designer中,選取 匯出系統 XML 動作並匯出 RECHOVERS.XML 檔案。
  2. 在文字編輯器中開啟 RECHOVERS.XML 檔案,並新增下列行:
    </recordhover>
    <recordhover id="fc_recordhover">
    	<recordhoversection id="fc_rhs_1" label="Failure Class Details">
    		<recordhoversectioncol id="fc_rhsc_1">
    			<recordhoversection id="fc_rhs_2">
    				<recordhovertextbox dataattribute="ORGID" id="fc_rh_1" label="Organization">
    			</recordhoversection>
    		</recordhoversectioncol>
    	</recordhoversection>
    </recordhover>
  3. 儲存 RECHOVERS.XML 檔案並匯入它。
  4. 開啟「資產」應用程式,按一下 失敗類別 ,然後選取 控制內容
  5. 進階 標籤中,指定 fc_recordhover 作為浮動視窗的 ID ,並儲存應用程式定義。