Home » Developer & Programmer » Forms » WebUtil File_Open_Dialog with multiple file types (Forms 10g)
WebUtil File_Open_Dialog with multiple file types [message #552681] Fri, 27 April 2012 05:07
AndrewV
Messages: 6
Registered: April 2011
Location: United Kingdom
Junior Member
Hi.

I need to call the WebUtil File_Open_Dialog funtion with multiple file types but I can't figure out how to do this with a single filter.

This works:

:NEW_ATTACHMENT.FILEPATH := WebUtil_File.File_Open_Dialog(
directory_name => null,
file_filter => 'PDF Files (.pdf) |*.PDF|Microsoft Word Documents (.doc) |*.DOC|Microsoft Excel Spreadsheets (.xls) |*.xls',
title => 'Please selelct a file');


...but this gives users a drop-down menu where they have to select one of the supported file types before they can see it. What I want to have is a single 'Supported file types' filter which allows users to select ANY of the file types. I thought the syntax might be something like this but it doesn't work.

:NEW_ATTACHMENT.FILEPATH := WebUtil_File.File_Open_Dialog(
directory_name => null,
file_filter => 'Supported file types|*.PDF;*.DOC;*.XLS;*.JPG;*.GIF;*.PNG;*.XML',
title => 'Please selelct a file');


Is this sort of thing possible?

Thanks,
Andrew

[Updated on: Fri, 27 April 2012 07:58]

Report message to a moderator

Previous Topic: location and save button
Next Topic: Update first then save the form
Goto Forum:
  


Current Time: Fri Jul 05 22:13:38 CDT 2024