Pessoal,
Estou fazendo o upload de arquivos de imagem no forms, utilizo a função client_get_file_name da webutil, mas a caixa de diálogo que abre, não faz o preview da imagem selecionada, existe alguma de fazer isso? Pelo menos para ambiente windows.
Obrigado.
Caixa de Dialogo com Preview da Imagem
-
- Rank: Estagiário Pleno
- Mensagens: 3
- Registrado em: Sex, 08 Jul 2016 1:04 pm
-
- Rank: Estagiário Pleno
- Mensagens: 3
- Registrado em: Sex, 08 Jul 2016 1:04 pm
Pessoal,
Após muito pesquisar, encontrei a solução em http://forms.pjc.bean.over-blog.com/art ... 72251.html
Att.
Anexo:
Após muito pesquisar, encontrei a solução em http://forms.pjc.bean.over-blog.com/art ... 72251.html
Att.
Anexo:
Forms configuration
Copy the GetImageFileName.jar file in the /forms/java directory
Sign the GetImageFileName.jar file with your own certificate
Edit the /forms/server/formsweb.cfg file to add the jar file to the archive_jinit variable
archive_jini=f90all_jinit.jar,……,GetImageFileName.jar
Registring the bean
- Open the form
- Add a javabean component to any block
- Register the bean (be sure that it is not in a When-New-Form-Instance trigger, or use a timer)
FBean.Register_Bean('BLOCK.BEAN_ITEM',1,'oracle.forms.fd.GetImageFileName');
Invoke the bean's GetFile() function
image_file_name := FBean.Invoke_char('BLOCK.BEAN_ITEM',1,'GetFile','"Dialog box title","start directory"');
e.g.
The sample dialog:BL1.File := FBean.Invoke_char('BL1.IMAGEPICKER',1,'GetFile','"Select an image file name","M:\"');
Download the imagefilechooser.zip file
Unzip the imagefilechooser.zip file
Copy the imagefilechooser.jar file in your /forms/java/ directory
Edit your /forms/server/formsweb.cfg file
Open the IMAGEFILECHOOSER.fmb module (Oracle Forms 9.0.2)
Compile all and run the module
- tiago_pimenta
- Rank: DBA Júnior
- Mensagens: 213
- Registrado em: Qua, 29 Jun 2011 9:49 am
- Localização: Barretos / SP
Show... Valeu por ter compartilhado com a gente !!!
-
- Informação
-
Quem está online
Usuários navegando neste fórum: Nenhum usuário registrado e 10 visitantes