Caixa de Dialogo com Preview da Imagem

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
Responder
diegomichelon
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Mensagens: 3
Registrado em: Sex, 08 Jul 2016 1:04 pm

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.
diegomichelon
Rank: Estagiário Pleno
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:
imagefilechooser.zip
DOWNLOAD_Image_File_Chooser
(206.87 KiB) Baixado 487 vezes
Imagem
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.


Selecionar tudo

 :BL1.File := FBean.Invoke_char('BL1.IMAGEPICKER',1,'GetFile','"Select an image file name","M:\"');
The sample dialog
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
Avatar do usuário
tiago_pimenta
Rank: DBA Júnior
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 !!!
Responder
  • Informação