Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Desarrollo en Delphi para Android
Registrarse FAQ Miembros Calendario Guía de estilo Buscar Temas de Hoy Marcar Foros Como Leídos


Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 02-04-2014
dison dison is offline
Miembro
 
Registrado: nov 2004
Posts: 30
Poder: 0
dison Va por buen camino
ListView only display 200 records XE5, DataSnap - Android

I have a mobil app made with EX5 that connect to to a datasnap server, in the cliente I use TSqlServerMethod-DProvider-ClientDataset to retrieve a dataset from datasnap server.

I use a Listview conected to the clientdataset through LiveBindig

The problem is that when i open the tclientdataset it's recordcount is 500, but the ListView only show 200 items

some help is appreciated.

DP
Responder Con Cita
  #2  
Antiguo 02-04-2014
Avatar de Casimiro Notevi
Casimiro Notevi Casimiro Notevi is offline
Moderador
 
Registrado: sep 2004
Ubicación: En algún lugar.
Posts: 32.022
Poder: 10
Casimiro Notevi Tiene un aura espectacularCasimiro Notevi Tiene un aura espectacular
Por favor, escribe en español, aunque tengas que usar https://translate.google.es/?hl=es&tab=wT
Responder Con Cita
  #3  
Antiguo 02-04-2014
dison dison is offline
Miembro
 
Registrado: nov 2004
Posts: 30
Poder: 0
dison Va por buen camino
Tengo una APP movil hecha con XE5 que se conecta a un servidor DataSnap, en el cliente uso TSqlServerMethod-DSProvider-ClientDataset para conectarme a un dataset en el servidor de datasnap.

uso un ListView conectado al ClientDataset via livebinding

El problema es que el ClientDataset.recordcount muestra 500 registros, pero el ListView solo me muestra 200 registros

Gracias


DP
Responder Con Cita
  #4  
Antiguo 02-04-2014
Avatar de Al González
[Al González] Al González is offline
In .pas since 1991
 
Registrado: may 2003
Posts: 5.604
Poder: 29
Al González Es un diamante en brutoAl González Es un diamante en brutoAl González Es un diamante en brutoAl González Es un diamante en bruto
Creo que esto puede resolver el problema:
Cita:
Empezado por RRUZ
The LiveBindings components that can hold multiple records like the TCustomBindList, TCustomBindGridList, TCustomBindGridLink and TCustomLinkListControlToField had a property called BufferCount with a default value of -1. When the internal db enumerator (TBindScopeDBEnumerator) of the LiveBindings is initialized the value of this property (BufferCount) is checked and if his value is minor than 0, then a buffer of 200 elements is set. So to overcome this limitation you need to change the value of the BufferCount to a higher value or to the RecordCount value of your TDataSet.

Another alternative is set the AutoBufferCount property to true, which will set the internal BufferCount value to the number of records of the TDataSet.
Enlace.
Responder Con Cita
  #5  
Antiguo 02-04-2014
dison dison is offline
Miembro
 
Registrado: nov 2004
Posts: 30
Poder: 0
dison Va por buen camino
Gracias Al González

Probaré la solución esta noche.
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Datasnap y cliente android - Problema al conectar vicens22 Desarrollo en Delphi para Android 8 04-12-2013 11:13:28
records, TStringList and ClientDataSet elrayo76 Varios 2 16-07-2013 10:58:41
Añadiendo records paladincubano SQL 3 13-02-2009 15:05:04
Ordenar un array de records Feñiz OOP 7 04-02-2005 09:19:28
Records Isaac Varios 7 02-03-2004 18:38:31


La franja horaria es GMT +2. Ahora son las 13:15:45.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi