Ask Your Question

add search button in form

asked 2016-06-30 11:41:54 +0200

avshu gravatar image

updated 2019-05-05 10:29:54 +0200

ratrace gravatar image

i have made a form in base so i want to make the search button that i would be able to seach any data in future kindly tell me the option how to make this!?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-06-30 13:53:31 +0200

pierre-yves samyn gravatar image


By default the navigation bar already includes this tool (the first tool in the toolbar). If you have not disabled this bar you already have this function (you can (dis)enable the navigation bar in Form properties▸Data tab).

If you really want to add a button on the form you can record a search in a macro and then assign the macro to the button. The generated macro is something like:

sub Search
dim document   as object
dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("")
dispatcher.executeDispatch(document, ".uno:RecSearch", "", 0, Array())

end sub

Note: you have to enable ToolsOptionsLibreOfficeAdvancedEnable macro recording if you want to recreate the macro above.


edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-06-30 11:41:54 +0200

Seen: 1,136 times

Last updated: Jun 30 '16