[Solved] URL in Push Button

Creating and using forms
Post Reply
Nocton
Volunteer
Posts: 533
Joined: Fri Nov 05, 2010 10:27 am
Location: UK

[Solved] URL in Push Button

Post by Nocton »

I have a URL in a Push Button linked to a spreadsheet.
I enter Rankings.ods as the spreadsheet name, but after the push button is activated and the spreadsheet opened the entry changes to 'Path/Rankings.ods'. As I should like to run the program on another computer where it may be located in a different folder so that Path may be different, how can I enter Rankings.ods so that it always looks in the current folder, i.e. the folder where the Base application is located?
Last edited by Nocton on Mon Jul 31, 2017 10:24 am, edited 1 time in total.
OpenOffice 4.1.12 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: URL in Push Button

Post by Villeroy »

menu:Tools>Options>Load/Save>General "Save URLs relatively to file system"
With this option checked, the path is stored relatively even though it is shown as an absolute path. The button should do the right thing after you moved both documents to another path.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Nocton
Volunteer
Posts: 533
Joined: Fri Nov 05, 2010 10:27 am
Location: UK

Re: URL in Push Button

Post by Nocton »

Thanks, Villeroy. That's how I have it.
OpenOffice 4.1.12 on Windows 10
Post Reply