1
0
-1

Hi all,

I am trying to pass an image from form 1 to the second custom HTML img element with hash variable. I am getting the image name but the image is not being displayed I am not sure if this is being done properly. Would Like to get some guidance in this direction 


Thanks

    CommentAdd your comment...

    2 answers

    1.  
      3
      2
      1

      Hello! The id is not of the image but the one of the record of the table related to the form with which the image was loaded. Did I explain myself?

      If for example you have a simple process that writes in a single table (even if there are several forms) and in some of its forms you have the image element, the id is in fact the process id and you can find it in the hash variable #assignment. processId#

      In my case, c_vista_previa refers to the field in the DB that saves the image element. But really, as I mentioned before, the file name of the image you uploaded should be retrieved here, in your case through a flow variable.

      I have attached a small test application with the use case:  CAG APP_test_image-1-20200503191949.jwa

      Regards!

      1. Punam

        Hi,

        Thanks for the application app.

        I tried running the app but it doesn't work. Can you check it again?

        I tried to imitate the app and make another one but getting same prob   

        Thank you!!

      2. Punam

        Hi Camilo,

        I figured it has to be process.recordId But it still fetches image for only single or the first upload.
        Is there a way if I am upload two Images I need the id for two images
        Thanks.

      CommentAdd your comment...
    2.  
      3
      2
      1

      Hi. In the flow variable it will only save the name of the file. However for assembly of the reference in the IMG tag, the URL of the processed file and the form ID must be included. This is an SQL statement that assembles the tag, but it's the same idea:

      <img src="/jw/web/client/app/lider_gestion/11/form/download/bd_bordado/' || id || '/' || c_vista_previa || '.thumb.jpg." height="40%" width="40%" align="middle">'

      Be careful of the point that is added after the file extension! I think its inclusion is always necessary.



      1. Punam

        Hi Camilo,

        Can you guide me where to find the ||id|| for the image and what is the next thing added after that.

        Thank you

      CommentAdd your comment...