PDA

Ver la Versión Completa : Base de datos interna???


paladincubano
28-11-2007, 11:12:19
Hola, siempre he programando con bases de datos, SQL, Access, etc.
Ahora me encuentro disenando un sistema que no requiere base de datos por su sencillez, pero a la hora de hacer reportes, yo uso RAVE, me gusta mucho, yo tengo todos los resultados que deseo mostrar en el reporte en TStrings. Pero nunca he sabido como linkiar esos valores al RAVE, no he probado con los parametros pero dudo que sea asi. Hay alguna forma de llevar esos datos a una base de datos virtual en memoria para poder enlazar con RAVE???
Gracias por su atencion.

paladincubano
28-11-2007, 12:01:52
A ver, creo que puse mal la pregunta.
Lo unico que necesito es la forma de pasarles TStrings al Rave (no 1x1 en parametros por supuesto)
Alguna forma de en el Direct view data pasarle un TStrings como si fuera un dataset vamos.
gracias

duilioisola
28-11-2007, 12:13:14
Con un TClientDataSet tengo entendido que puedes hacer una tabla en memoria.

Quizás la solución sea crearla con lo que tnegas en el TStrings, mostrar el reporte y vaciarlo/destruirlo.

Del help de Delphi 6

TClientDataSet implements a database-independent dataset.

Unit

DBClient

Description

TClientDataSet represents an in-memory dataset. A client dataset can be used as

- A fully-functional, standalone, file-based dataset for single-tiered database applications. When used in this manner, the client dataset represents the data stored in a dedicated file on the user’s hard disk.
- A local in-memory buffer of the records from another dataset. The other (source) dataset can reside in the same form or data module as the client dataset (for example, when the client dataset provides navigation and editing support for the data from a unidirectional dataset). The source dataset can also reside on a separate system when the client dataset supports the client portion of a multi-tiered database application.

Note: The two functions described above are not mutually exclusive. An application can be designed to support the option of working with data off-line, using the “briefcase” model. On site, the application uses TClientDataSet to communicate with the database server associated with a source dataset. When a user works off site, the client dataset writes a snapshot of the data to the hard disk. The application works with this snapshot off site, with the client dataset acting as a file-based dataset in a single-tiered application.

When a client dataset represents the data from another dataset, it communicates with that dataset through a dataset provider. The client dataset communicates with this provider through the IAppServer interface. When the provider is in the same form or data module as the client dataset, the IAppServer interface is implemented by a hidden object that is created for you. When used in a client application as part of a multi-tiered application, the client dataset passes all calls to the provider through a remote data module’s IAppServer interface.

paladincubano
28-11-2007, 14:12:36
Gracias, voy a probarlo a ver que sucede.

neter.com
27-06-2008, 16:19:44
Oye por que no pruebas con System Center?? creo que podría resolver tú problema sin bronca alguna

gatosoft
27-06-2008, 21:41:04
Puedes utilizar el componente RxMemoryData de las RX...

Es similar a un TClientDataset, solo que no hay conexion con BD.... y el sistema lo reconoce como un Dataset normal, lo que quiere decir que lo puedes asociar a un Datasource

saludos,

:D