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

select a row in a tablecontrol

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
19andrea19
General User
General User


Joined: 05 Apr 2007
Posts: 11

PostPosted: Thu May 17, 2007 1:22 am    Post subject: select a row in a tablecontrol Reply with quote

I 've, in a formular, a tablecontrol; then I've a button with a macro;
in this macro, with a sql query, I select a record in one of my database tables.
Now, I want that, when i push the button, in my formular's table the row results of the query became selected.
how can I do this?
Thanks
Back to top
View user's profile Send private message
DrewJensen
Super User
Super User


Joined: 06 Jul 2005
Posts: 2616
Location: Cumberland, MD

PostPosted: Thu May 17, 2007 4:12 am    Post subject: Reply with quote

If all you need if the current rows values, then you can just read those from the columns in the table grids data source ( dataform control )



You can also address this using the getxxxxx functions on the dataform

So either of these ways

TableGrid.Model.Parent.Columns(0).getDouble

or

TableGrid.Model.Parent.getDouble( 1 )
_________________
Blog - http://baseanswers.spaces.live.com/
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Sat May 19, 2007 8:13 pm    Post subject: Reply with quote

Hmm, I was wondering how to do that the other day... Thanks Drew..
_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API 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