We're currently migrating from Ask to Discourse, read the details here

Ask Your Question

BaseTools getDataSource (solved) [closed]

asked 2017-02-20 14:06:45 +0200

Pansmanser gravatar image

updated 2017-02-23 12:34:58 +0200

Roberto Benitez refers to the BaseTools library including a useful-sounding method GetDataSource. I can't find out where the library is, how to load it, or how otherwise to access GetDataSource. Any help, please?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-09-25 14:25:45.020192


Please provide more information on your source. Don't see anything under LibreOffice Macros & Dialogs -> Tools. Sounds more like a Java method.

Ratslinger gravatar imageRatslinger ( 2017-02-20 16:57:55 +0200 )edit

Roberto Benitez refers to the Basetools library here, amongst other places: http://www.baseprogramming.com/BaseMa.... Another reference in the OO forum here:

Pansmanser gravatar imagePansmanser ( 2017-02-22 11:38:58 +0200 )edit

Some of what is here might be useful to you.

EasyTrieve gravatar imageEasyTrieve ( 2017-02-22 23:43:58 +0200 )edit

Thanks EastTrieve. I'm doing ok with Base and in fact Basic, but the question was about that one routine. I've got it cracked now, anyway.

Pansmanser gravatar imagePansmanser ( 2017-02-23 12:02:43 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-02-22 16:43:46 +0200

Ratslinger gravatar image

updated 2017-02-22 23:59:04 +0200

Your references are older and refer to OpenOffice v3.x. The referred to library is now the "Tools" library. However, you will not find anything useful there for accessing data. This is all done through (somewhat transparently) the UNO API.

For more information here are some useful documents:

Chapter 9 - LO Base Macros click here

Open Office Macros Explained (OOME) by Andrew Pitonyak - click here

Edit 2/22/2017:

You also referred to getDataSource in your question. This is actually part of the API and NOT in the "Tools" library. The com.sun.star.sdb.DataSource information can be seen here.

edit flag offensive delete link more


Thanks, Ratslinger, I should have realised that my references were old. I've worked around my question, but the getDataSource routine sounded like a simple way to do it, Andrew Pitonyak's books, by the way, are my 'Bible', indispensable guides! The chart in your last reference is very useful. Problem solved.

Pansmanser gravatar imagePansmanser ( 2017-02-23 12:09:41 +0200 )edit

(I can never work out how to mark as 'solved'. Shouldn't there be an easy way to do this?)

Pansmanser gravatar imagePansmanser ( 2017-02-23 12:34:09 +0200 )edit

@Pansmanser By clicking the check mark (as you have - thank you) it is marked answered. There is no "solved" but you can "Close" the question if you wish - bottom right of your original question.

Ratslinger gravatar imageRatslinger ( 2017-02-23 14:16:14 +0200 )edit

Question Tools

1 follower


Asked: 2017-02-20 14:06:45 +0200

Seen: 641 times

Last updated: Feb 23 '17