OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

OOoBase and composite types

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
pierdeux
Power User
Power User


Joined: 08 Mar 2006
Posts: 51

PostPosted: Wed Mar 08, 2006 8:15 pm    Post subject: OOoBase and composite types Reply with quote

I am using OOoBase as a client front-end of a PostrgreSQL (8.1.2) server. The driver between the two is the PostgreSQL JDBC driver.

A column in one of my tables in PostgreSQL is a composite type made up of two components: (date, integer). I know that the JDBC driver is capable of handling these. But OOoBase only sees these columns as "object types". I am presuming that OOoBase knows nothing about composite types (at least, I have read nothing that led me to believe anything else...).

I am not too familiar with the different ways by which a form can query or update table information. For instance, I've noticed that the "list box" object could handle data in six ways: Valuelist, Table, Query, SQL, SQL [Native] and Tablefields. But so far I've only used the Valuelist technique.

So, I am wondering:

Is there a way, through some SQL magic, to query the two components of my composite type and have them appear separately in two different form fields in OOoBase: a date field and an integer field?

Can I keep the link between these two fields and the original composite type, so that a change in those fields will make its way to an updated value in the composite type of the database?


I'd even be willing to use internal functions and triggers! (But I'd rather not change the structure of my tables: their structures correspond to the structure of the problem at hand, and I'd rather the software adapted to that than the structure adapting to the software!)

(My initial thought had been to create a view in which the composite types appeared as separate columns, but of course that's no use since views are not updateable in PostgreSQL!)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group