本文介绍了Delphi EMS FireDAC:无法打开数据集[FDMemTable]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Delphi中使用EMS(即将来的iOS应用程序)使用简单的客户端服务器应用程序。

I am working with a simple client server application using EMS(i.e: for future iOS application) in Delphi.

这个问题是我上一个问题的继续,但有不同的错误。

This question is the continuation of my previous question with a different error.

问题:现在,当我将参数从客户端传递到服务器时,出现了一个错误。

Problem: Now I have an error when I am passing parameter from client to server.

Project EMS_Test_Client_Project.exe raised exception class EFDException with message '[FireDAC][Comp][DS]-206. Cannot open dataset [FDMemTable]. A DataTable or a DataView must be supplied. Hint: if that is TFDMemTable, use CreateDataSet or CloneCursor to open dataset'.

在这里,我有一个TFDMemTable属性的 Image1 (DatSTableName: QRowParam )和Param,则会引发错误。

Hereby I have an Image1 of TFDMemTable properties (DatSTableName: QRowParam) with Param, which throws an error.

在这里,我有一个TFDMemTable属性(DatSTableName: QRows )的 Image2 参数。

Hereby I have an Image2 of TFDMemTable properties (DatSTableName: QRows) without Param, which works.

问题:
如果我使用的是从客户端到服务器的常规调用,则可以正常工作,并且我可以获取所有数据。在其中我使用了不带参数TFDQuery的 Image2 TFDMemTable。但是,如果我将参数从客户端传递到服务器,则客户端会出现错误,其中我将 Image1 TFDMemTable与参数TFDQuery一起使用。

Question:If I am using general call from client to server, it works and I got all the data. In which I have used Image2 TFDMemTable without param TFDQuery. But if I am passing a parameter from client to server, then I got an error on the client side in which I have used Image1 TFDMemTable with param TFDQuery.

有人可以建议我,从这个问题上我应该怎么做?

Can anyone suggest me, how should I proceed further from this issue?

谢谢。

推荐答案

我建议看一下产品随附的EMS / FireDAC演示。在客户端上,如果没有数据,则无法打开内存中的数据集。要在设计时打开它们,可以创建一个模板结构进行设计,使其与实际的字段结构相匹配。

I suggest to have a look to the EMS / FireDAC demo that ships with the product. On the client, if you don't have data you cannot open the in-memory datasets. To open them at design time you can create a "template" structure for design, matching the actual fields structure.

这篇关于Delphi EMS FireDAC:无法打开数据集[FDMemTable]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 10:23