(FAQ)动态扩展平台DEP,怎么写获取控件的脚本?
金蝶云社区-金蝶云社区
金蝶云社区
1人赞赏了该文章 2555次浏览 未经作者许可,禁止转载编辑于2015年03月02日 00:00:00
【问题】: (FAQ)动态扩展平台DEP,怎么写获取控件的脚本?
版本: 7.0.1
模块: 动态扩展平台
【答复】:
界面的控件可以通过get + 控件类型 ( 控件名 )的方式获得,比如获取单据分录的表格可以这样pluginCtx.getKDTable("kdtEntries")。 控件 示例 f7控件 pluginCtx.getKDBizPromptBox("name"); 容器控件 pluginCtx.getKDContainer("name"); textField控件 pluginCtx.getKDTextField("name"); KDTextArea控件 pluginCtx.getKDTextArea ("name"); KDPasswordField控件 pluginCtx.getKDPasswordField ("name"); KDFormattedTextField控件 pluginCtx.getKDFormattedTextField ("name"); KDDateTimeField控件 pluginCtx.getKDDateTimeField ("name"); KDCheckBox控件 pluginCtx.getKDCheckBox("name"); KDRadioButton控件 pluginCtx.getKDRadioButton ("name"); KDMenu控件 pluginCtx.getKDMenu("name"); KDMenuItem控件 pluginCtx.getKDMenuItem("name"); KDTree控件 pluginCtx.getKDTree("name"); KDTreeView控件 pluginCtx.getKDTreeView("name"); KDList控件 pluginCtx.getKDList("name"); KDTimePicker控件 pluginCtx.getKDTimePicker("name"); KDDatePicker控件 pluginCtx.getKDDatePicker ("name"); KDTabbedPane控件 pluginCtx.getKDTabbedPane ("name");