On Saturday, July 20, 2013 9:43:44 AM UTC-4, Gareth Thiveux wrote:
> Hi,
>
> What do you mean by "locally uploaded files" ? Are you talking about files uploaded through the uplod file widget ? You would like a kind of preview of the files you've just uploaded through this widget ?
>
> If so, below or next to your file upload widget, you should add an hidden HTML widget and set its id as id_files_preview for example.
> Then create an hidden Javascript widget (that you can put wherever you want in your webform, at the bottom of it for example) that listens to the variable of your file upload widget (let's call this variable file_upload_var).
>
>
> Finally put the following code into your JS widget :
>
> var preview_html_files ="";
> for(f=0;f<JSON.parse(RMPApplication.get("file_upload_var")).length;f++){
> var preview_html_files = preview_html_files + "<img src="+JSON.parse(RMPApplication.get("file_upload_var"))[f].url+" alt='File preview' title='File preview' width='400px' onClick='window.open(\""+JSON.parse(RMPApplication.get("file_upload_var"))[f].url+"\",\"_blank\");'><br>"
>
> }
>
> id_files_preview.setHtml(preview_html_files);
> id_files_preview.setVisible(true);
>
>
>
> Hope that's what you wanted.
>
>
>
>
> Regards,
>
>
>
>
>
> Gareth THIVEUX
>
>
> Pre-Sales Consultant / Consultant Avant-Vente
>
> Fujitsu RunMyProcess
>
> 22 rue Chauchat, 75009 Paris - France (GMT+1)
>
> website : Fujitsu RunMyProcess
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace
>
>
>
>
>
>
> Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
>
> Be environmentally friendly: do not print this email unless it is entirely necessary.
>
>
>
>
>
> 2013/7/19 <
bestfri...@gmail.com>
>
> is it possible to read locally uploaded files and display file content in front screen in RMP.
>
>
>
> Could you please help to resolve this issue?
>
>
>
>
>
> thanks alot in advance
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to
supportforum...@runmyprocess.com.
>
> To post to this group, send email to
suppor...@runmyprocess.com.
>
> Visit this group at
http://groups.google.com/a/runmyprocess.com/group/supportforum/.
>
> For more options, visit
https://groups.google.com/a/runmyprocess.com/groups/opt_out.
I tried the same steps but it is not working .
Please find the screenshots for reference.
COuld you please advice did i miss anything?
Thanks alot in advance