Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
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!
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!!
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.
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
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