Dialog Box not open with GET_FILE_NAME Oracle Form

2019-07-14 00:37发布

I have oracle database 11g with oracle forms and reports 11g. I created browse button to open CSV File from computer or laptop directory

enter image description here

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.

1条回答
Anthone
2楼-- · 2019-07-14 01:27

Your code works on Forms 6i provided you have properly attached the .olb and .pll files for webutil, but for Oracle Fusion Middleware 11g the method GET_FILE_NAME should be replaced with CLIENT_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|');

查看更多
登录 后发表回答