Ask Your Question
1

BaseTools getDataSource (solved)

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

Pansmanser gravatar image

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

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 close merge delete

Comments

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 +0100 )edit

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

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

Some of what is here might be useful to you.

EasyTrieve gravatar imageEasyTrieve ( 2017-02-22 23:43:58 +0100 )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 +0100 )edit

1 Answer

Sort by » oldest newest most voted
2

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

Ratslinger gravatar image

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

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

Comments

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 +0100 )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 +0100 )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 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 462 times

Last updated: Feb 23 '17