oracle forms, open dialog box

I have used GET_FILE_NAME(File_Filter=> 'All Files |*.*|'); in my button to open a dialog but nothing is happening.

DECLARE
      filename VARCHAR2(2000);
BEGIN
    filename := GET_FILE_NAME(File_Filter=> 'All Files |*.*|');
end;
Godfrey TsamaesiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Helena Markováprogrammer-analystCommented:
In web forms you have to use webutil.pll library. There is CLIENT_GET_FILE_NAME function there. In the Forms on-line help you can read more in a WebUtil User's Guide.
As an addition-GET_FILE_NAME opens dialog in application server, so you cannot see it on your PC.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Godfrey TsamaesiAuthor Commented:
Thanks Helena for your reply, i did try to use CLIENT_GET_FILE_NAME however i  get error 'CLIENT_GET_FILE_NAME must be declared ' when  i compile my form. See screen shot attached.
0
Helena Markováprogrammer-analystCommented:
I don't see screen with error. Have you attached webutil.pll library to your form without path to it ?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Godfrey TsamaesiAuthor Commented:
Hi below is the peace of code i have. Yes i attached webutil.pll library to form without path to it.

Declare
      w_file_name varchar2(2000);
Begin
      w_file_name := CLIENT_GET_FILE_NAME ('D1', null, 'All Files (*.*)|*.*|',null,open_file,true);
                                    
End;
Forms_11g.PNG
Forms_11g.PNG
0
Helena Markováprogrammer-analystCommented:
Is webutil.pll in the same directory as *.fmb files are ?
0
Godfrey TsamaesiAuthor Commented:
I  have put them i'm getting a different error when i deploy my forms to the server '
Compilation errors have occurred.' but when i compile locally there are no errors.
0
Helena Markováprogrammer-analystCommented:
Also on server put webutil.pll to the same diractory as *.fmb files.If you use some *.olb libraries put them to that directory, too.
0
Helena Markováprogrammer-analystCommented:
Webutill library is the solution.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.