Hi, Frank --

On Mon, 05 May 2008 15:55:38 -0500, Frank Schönheit - Sun Microsystems Germany <[EMAIL PROTECTED]> wrote:

Hi Tamblyne,

Can someone tell me how the File Selection control is intended to be
used?  I know what it actually does, but since it can't be linked to a
data field, the only use I can see is to find a path to cut and paste into
another field.

This field originates from the time when OpenOffice.org was a browser

I had no idea OOo used to be a browser. Learned something new today -- thanks! :-D

... There's in fact no real use for this control in database documents,
as it is not data-aware. Of course you could add some macro magic to it,
which evaluates the user-entered path and does <whatever> with it.

I don't have the first clue how to write a macro. I want the path to be stored in a data field so I can have a form where you click a button and the selected file opens. I already have a macro for the "open the file" button that SKS posted somewhere. But I don't know how to get the path in there in the first place, aside from cutting and pasting it from the File Selection control, or, even worse, from the Windows file manager. Is there a better way to accomplish what I'm trying to do? For my own purposes, it's tedious but works for me. However, since I eventually want to share this DB with other researchers, I'd like the process to be a little "cleaner" for lack of a better word.

Even then, however, the control lacks desirable features such as specifying the list of extensions which it should browse for, auto-completion, and the like.

Since the "open file" macro I snagged specifies the program the file needs to be opened with, this is a problem, since it could be a graphic, PDF or even an OOo doc. I guess I need to look some more and try to find a macro that doesn't specify a program, but uses the system default for the file extension.

It's looking like what I want to do can't be done right now.  :-(

Thanks for the info!

Tam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to