RTC Forums
November 23, 2024, 03:10:35 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
rtcclientdataset not bind with listview
Pages: [
1
]
« previous
next »
Print
Author
Topic: rtcclientdataset not bind with listview (Read 5608 times)
bebeantics
RTC License+
Posts: 29
rtcclientdataset not bind with listview
«
on:
March 27, 2018, 03:19:34 PM »
Hi
I have problems with rtcclientdataset, on android device.
How it is?
I have a function that returns a datasource
On the onresult site I wrote the following:
if (Data.isType=rtc_Function) and (Data.asFunction.FunctionName='getcomanda') then begin
if Result.isType = rtc_Dataset then begin
dt.rtcmemcom.asdataset := Result.asDataSet;
Result.Extract;
dt.rtcmemcom.Active := True;
end
else if result.isType=rtc_exception then
showmessage(result.asException);
end;
dt.rtcmemcom
get the values from the onresult.
The situation is this:
if I use fieldeditor to format the fields resulting from the function, I do not have records (tested with recordcount) when opening / activating rtcclientdataset. When I delete everything from the fieldeditor, I have records in rtcclientdataset (tested with recordcount) but I do not have fields to link (bind) to a listview.
I've been testing this problem all day, and I'm not finding a solution to solve it.
The invoked function returns a string field and three float fields
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: rtcclientdataset not bind with listview
«
Reply #1 on:
March 27, 2018, 04:11:41 PM »
What is "dt" and what is "dt.rtcmemcom"?
Logged
bebeantics
RTC License+
Posts: 29
Re: rtcclientdataset not bind with listview
«
Reply #2 on:
March 27, 2018, 04:13:44 PM »
dt is a datamodule
rtcmemocom is a trtcclientdataset
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: rtcclientdataset not bind with listview
«
Reply #3 on:
March 27, 2018, 04:19:25 PM »
"TRtcClientDataSet" is nothing more than a "TClientDataSet" component from Delphi, with a few additional properties and events for monitoring changes to records. Anything beyond that is from the "TClientDataSet" component. In other words, whatever works with a "TClientDataSet" component should also work with the "TRtcClientDataSet" component. You can find the complete implementation of the "TRtcClientDataSet" component in the "rtcDBCli.pas" unit.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...