-
APL函數(shù)代碼開(kāi)放場(chǎng)景-UI事件Java接口說(shuō)明 packagefx.custom.apl.example.ui_event;importcom.fxiaoke.functions.FunctionContext;importcom.fxiaoke.functions.Fx;importcom.fxiaoke.functions.client.DebugHelper;importcom.fxiaoke.functions.model.Remind;importcom.fxiaoke.functions.template.IUIEventAction;
-
APL函數(shù)代碼開(kāi)放場(chǎng)景-UI事件Groovy代碼示例 一、數(shù)據(jù)更新事件-函數(shù)編寫(xiě)模板:(1)在新建/編輯頁(yè),當(dāng)某一字段修改(值改變且失焦)時(shí),觸發(fā)自定義函數(shù)來(lái)更新主對(duì)象或從對(duì)象的數(shù)據(jù)Groovy:// 獲取當(dāng)前頁(yè)面標(biāo)識(shí) Add:新建頁(yè)面,Edit:編輯頁(yè)面context.actionPage//新建UIEvent事件UIEvent event = UIEvent.build(context) { //把字段設(shè)置為只讀、隱藏、必填