I have oracle database 11g with oracle forms and reports 11g. I created browse button to open CSV File from computer or laptop directory
I am using this code on trigger when-button-press:
declare
filename varchar2(500);
begin
filename := GET_FILE_NAME(File_Filter=> ‘CSV Files
(*.Csv)|*.Csv|’);
:block2.FILE_NAME:= filename;
end;
When I pressed the button then did not open dialog box.
Your code works on
Forms 6i
provided you have properly attached the.olb
and.pll
files forwebutil
, but forOracle Fusion Middleware 11g
the methodGET_FILE_NAME
should be replaced withCLIENT_GET_FILE_NAME
to search in your local file system instead of application server as below ::block2.FILE_NAME := CLIENT_GET_FILE_NAME(File_Filter=> 'CSV Files (*.Csv)|*.Csv|');