First time here? Check out the FAQ!
In the database I am making, I have a table "documents" and a table "categories". These two are joined to a third--"documentcategories"--by a primary-foreign key relationship.
On the data-entry form, I want to have a series of checkboxes, one for each category. When the user checks one, I want to add a record to the "documentcategories" table, associating the current documentID with that particular categoryID.
My question: Is this possible to do entirely in the form, or do I have to use a macro? Is it possible to do even with a macro? If so, how would I go about it?
Any help on this is appreciated. -AnthonyP
I believe you might only be able to do that in a macro associated with the object. I know Libreoffice uses UNO for extensions, and possibly for macros as well. You might want to look into that.
There is also some interesting looking posts on this forum that may be of some help:
http://user.services.openoffice.org/en/forum/viewforum.php?f=20
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-08-13 17:04:43 +0200
Seen: 653 times
Last updated: Aug 13 '12
How to get a popup OK-dialog window show up, upon posting from form to table in libreoffice base?
Insert into table using macro in base [closed]
FORM to TABLE connection in Base
base: insert from one table into other table
Styles and Formatting are a mess - back to MS Word (and I so wish I didn't have to)
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
to use SQL in an event-handler macro:
Sub Main(event as object) dim Form,Connection,SQL as object Form = Event.Source.Model.Parent Connection=Form.ActiveConnection SQL=Connection.createStatement() SQL.executeQuery("querey goes here") End Sub
Anthony P ( 2012-08-17 18:15:36 +0200 )edit