Dialog Box not open with GET_FILE_NAME Oracle Forms

不问归期 提交于 2019-12-11 01:56:01

问题


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.


回答1:


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|');



来源:https://stackoverflow.com/questions/55140696/dialog-box-not-open-with-get-file-name-oracle-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!