RTC Forums
April 25, 2024, 07:22:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: rtcclientdataset not bind with listview  (Read 4228 times)
bebeantics
RTC License+
****
Posts: 29


« 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


« Reply #1 on: March 27, 2018, 04:11:41 PM »

What is "dt" and what is "dt.rtcmemcom"?
Logged
bebeantics
RTC License+
****
Posts: 29


« 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


« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 16 queries.