我在使用DataRequest方法从中间层取数据的时候,何以出现"datapacket contains no meta data"错误

解决方案 »

  1.   

    GetRecordOption constantsDelphi syntax:
    const
      MetaDataOption: Integer = byte(grMetaData);The GetRecordOption constants are integer constant versions of TGetRecordOption values. They are used to represent the Options parameter in the AS_GetRecords method. MetaDataOption: The data packet includes metadata as well as record values.
      

  2.   

    可以在客户端的 ClientDataSet 添加永久字段。或者在调用 IAppServer 的 AS_GetRecords 方法时,把 MetaDataOption 传给 Options 参数。没有源代码,不好做其他判断,你自己调试看看。