Dialog box with Image Preview

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
  

Poston Wed, 20 Jul 2016 3:01 pm

Guys, I'm uploading image files in forms, use the client_get_file_name function of the webutil, but the dialog box that opens, doesn't make the preview of the selected image, is there any to do this? At least for windows environment.

Thank you.
diegomichelon

Poston Wed, 20 Jul 2016 4:11 pm

Guys, After much searching, I found the solution in http://forms.pjc.bean.over-blog.com/art ... 72251.html Att.

Annex:
imagefilechooser.zip
DOWNLOAD_Image_File_Chooser
(206.87 KiB) Downloaded 130 times
[img]http%20://fdtool%20.%20free%20.%20fr/forms-pjc-bean/ImageFileChooser/ImageFileChooser_fichiers/.%20image001%20jpg[/img]
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 the 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.



Code: Select all
: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
diegomichelon

Poston Wed, 20 Jul 2016 5:54 pm

Show ... Thanks for sharing with us!!!
tiago_pimenta
Location: Barretos / SP



Return to Forms

Who is online

Users browsing this forum: No registered users and 2 guests