AppML 參考 - API
AppML 方法
方法 | 描述 |
---|---|
new AppML() | 建立一個新的 AppML 物件 |
appml("name") | 返回具有指定名稱的 appml 物件 |
displayMessage(text) | 顯示指定的訊息 |
getData() | 獲取應用程式資料 |
run() | 執行應用程式物件 |
setError(no, description) | 設定指定錯誤和錯誤描述 |
AppML 屬性
屬性 | 描述 |
---|---|
appName | 應用程式名稱(容器 ID) |
container | 應用程式容器元素 |
controller | 應用程式控制器 |
data | 應用程式資料物件 |
dataSource | 應用程式資料來源 |
displayType | 應用程式型別(“form”或“list”) |
message | 應用程式訊息物件 |
error | 應用程式錯誤物件 |
資料物件屬性
屬性 | 描述 |
---|---|
data.model | 應用程式資料模型 |
data.records | 應用程式記錄(資料) |
AppML 表單方法
方法 | 描述 |
---|---|
newRecord() | 重置當前表單 |
saveRecord() | 儲存當前記錄 |
deleteRecord() | 刪除當前記錄 |
closeForm() | 關閉當前表單 |
AppML 過濾器屬性
方法 | 描述 |
---|---|
orderBys | 排序欄位名稱陣列 |
orderByDirections | 排序方向陣列 |
queryFields | 查詢欄位名稱陣列 |
queryValues | 查詢值陣列 |
queryTypes | 查詢型別陣列 |