[gnome-db] Re: What about GdaQuery?
- From: "Daniel Espinosa" <esodan gmail com>
- To: gnome-db-list gnome org
- Subject: [gnome-db] Re: What about GdaQuery?
- Date: Thu, 23 Mar 2006 08:17:42 -0600
2006/3/23, Daniel Espinosa <esodan gmail com>:
I'm trying to create a simple example to a Tutorial in the Wiki, and now I'm following the next steps:
1. Open a GnomeDbLoginDialog, then the user select the Data Source (in
the Tutorial, the SalesTest default source), the username and the
password (in SalesTest is leaving with out blanck by the user).
2. Uses the data from the point 1, to open the connection:
a) Create a Client
b) Creae a Connection with that client, using the DSN, username and password from the GnomeDbLoginDialog
c) Check if the connection is opened
3. Load the XML dict file and update it:
a) Try to open the default XML file: $HOME/.gda/DICT_<data source name>_default.xml
For SalesTest will be: $HOME/.gda/DICT_SalesTest_default.xml
b) If the load fails, set the file name using: gda_dict_set_xml_filename
c) Update the XML dict (in the example, to ensure
the integrity of the data, before show any data the program updates the
Dict)
Use the gda_dict_update_dmbs_data
I found that the route to the DICT XML file doesn't exist!, and know I'm getting the following message:
Implementation missing: database_sequences_update_list() in gda-dict-database.c line 1281
Implementation missing: database_constraints_update_list() in gda-dict-database.c line 1325
Why? What I need to use or manage the DICT XML, where is it stored by default?
4. Create a Query:
a) Create a Query with a SQL command using: gda_query_new_from_sql
And Now?
If I try to set the data returned by the Query to a GnomeDbGrid, I
found that Query isn't a GdaDataModel or isn't a GdaDataModel derived
Object, then I can't use: gnome_db_grid_new becouse it require a
GdaDataModel, How Can I Get One? Do I need a GdaCommand and run the
query, if it then What about GdaQuery?
Ok I found that you need to create a GdaDataModelQuery using the GdaQuery to get a GdaDataModel to use in GnomeDbGrid.
--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los cuates: LIBRE)
--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los cuates: LIBRE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]