星空二开表单插件打开外部链接原创
13人赞赏了该文章
5,308次浏览
编辑于2020年06月30日 11:13:15
星空单据二开表单插件打开外部链接例如(python,缩进4个英文空格):
from Kingdee.BOS.JSON import * def ButtonClick(e): if(e.Key=='FBTN'): openUrlArg = JSONObject() openUrlArg['url']='https://xxx.xxx.xxx.xxx/xxx/...' openUrlArg['title']='outside link' openUrlArg['urltitle']='open outside link' this.View.AddAction("openUrlWindow", openUrlArg)
python星空插件常用Import:
import clr clr.AddReference("System") clr.AddReference("System.Core") clr.AddReference("Kingdee.BOS") clr.AddReference("Kingdee.BOS.Log") clr.AddReference("Kingdee.BOS.Core") clr.AddReference("Kingdee.BOS.DataEntity") clr.AddReference("Kingdee.BOS.Contracts") from Kingdee.BOS import * from Kingdee.BOS.JSON import * from Kingdee.BOS.Core import * from Kingdee.BOS.Core.Const import * from Kingdee.BOS.Core.Bill import * from Kingdee.BOS.Core.List import * from Kingdee.BOS.Log import * from System import * from System.Collections.Generic import * from System.Linq import *
赞 13
13人点赞
还没有人点赞,快来当第一个点赞的人吧!
打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!