API参考>客户端>页面脚本API


PageWindow




方法摘要
voidexecuteQuery(String queryUid, Object condition, int startNo, int count, String cbEventName)
           获取查询结果数据集
     参数:
        queryUid (类型:String)   查询定义的UID
        condition (类型:Object)   查询条件对象,对象的属性表示查询条件的值
        startNo (类型:int)   查询结果的起始行数
        count (类型:int)   查询结果的返回行数
        cbEventName (类型:String)   回调事件名称,在回调事件中通过result参数获取返回结果
 
voidfindEntity(String entityName, int entityId, int cbEventName)
           获取查询结果数据集
     参数:
        entityName (类型:String)   实体定义名称
        entityId (类型:int)   实体ID
        cbEventName (类型:int)   回调事件名称
 
voidfireCustomerEvent(String eventName, Object args)
           触发在表单中的客户自定义事件
     参数:
        eventName (类型:String)   事件名称
        args (类型:Object)   事件参数
 
voidfireRemoteEvent(String entityName, String eventName, Object eventArgs, String cbEventName)
           调用实体自定义扩展服务事件
     参数:
        entityName (类型:String)   实体名称
        eventName (类型:String)   自定义服务事件名称
        eventArgs (类型:Object)   服务事件调用参数
        cbEventName (类型:String)   回调事件名称,在回调事件中通过result参数获取返回结果
 
ObjectgetExpressionValue(String exp)
           获取表达式的值
     参数:
        exp (类型:String)   表达式
 
ObjectgetScriptHost(String host)
           获取脚本对象
     参数:
        host (类型:String)   脚本对象的引用表达式

      return: 脚本对象
ObjectinvokeExp(String compName, String funcName, Array args)
           调用页面中指定组件的表达式函数
     参数:
        compName (类型:String)   页面组件名称
        funcName (类型:String)   表达式函数名称
        args (类型:Array)   函数调用参数,必须与函数定义中的参数顺序一致