Re: How can access to the database with ODBC
Antonio Carlos Rodriguez <[email protected]> Mon, 18 Nov 2002 19:32:43 +0100
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
mark kaplun wrote: > "Antonio Carlos Rodriguez" <[email protected]> wrote in message > news:[email protected]... > >>My name is Antonio Carlos RodrÃguez Vergara, from the Seville >>University at Spain, > > > Do you have a short name like all the brazilian football players ;-) ? > > >>and I'm trying to make a applicattion over Mozilla >>which must run in windows. I'm interested in database access, because >>when you put some widgets, such as trees or listboxes, its data is often >>coded in a common database structure (Oracle, Access, Sql >>server,MySql... etc). I have managed RDF and templates, and it looks >>good for it, but I have two problems: >> >> * How could I use the database (from ODBC or a concrete format) as a RDF >> datasource to use it with templates? > > > You will need to write an XPCOM component which will serve as a "bridge" > between mozilla RDF API and ODBC API. The complexity of this component will > probably depend on how flexible is your DB (i.e. can you assume fix users, > fixed tables, ...). > > >>OR How could I use connected ODBC >> database directly in XUL, forgetting RDF? >> > > > This will require writting an XPCOM commponent which expose the ODBC > interface as an XPCOM interface, then you will be able to manipulate the GUI > via the DOM interfaces. > > >> * If at last I can use a database as a RDF Datasource, where could I >> find (real) useful information to manage complex RDF dataformats in XUL? >> > > > What do you consider as complex? IMHO there are enough examples in the > mozilla source code. > > >> I am very interested in the second point. Please, help me.I need a >> component XPCOM to access to thedatabases which work in Windows. Because >> my proyect must run in Windows with a only machine(local machine). In >> this machine must have Mozilla and the database. This is a very >> important question, because I need information about the exposed later >> to end my studies. Thank you. >> > > > I know that there were several people which "promised" to write an XPCOM > ODBC component, but to the best of my knowledge none of them had delivered > anything by now :( > > Good luck, > Mark. > > Hello friend. Can you say some direction where find information? This is very important. I need a component to work on a database in Windows. Than you.