3 answers
- 10-1
Hi Zhen Jian Toh
Check out Image Datalist Formatter from Joget Marketplace.Add your comment... - 10-1
hi matthew king,
thanks for your answer, i'm to try this solution.
Add your comment... - 10-1
Hi Iman Maryadi
In Datalist>Source>Configure JDBC Datalist Binder, you can compose the SQL query example below (for MySQL) to display images in datalist listing, do ensure you tick "Yes" in column properties for "Render value as HTML". Do ensure that the:
- Path to the image download folder is correct
- The "fieldId" storing the image's filename is correct, example "c_Picture"
- Size the image height and width accordingly
- If the image needs to be a clickable link, add the required <a> tag in the CONCAT query
- Do amend to suit your database brand (SQL Server, Oracle etc.)
SELECT CONCAT("<img src='/jw/web/client/app/MyApp/latest/form/download/MyApp/",id,"/",c_Picture,".' height='100' width='100' align='middle' alt='",c_Desc,"'>","<br/>","<b>",c_AppName) AS AppName,
FROM app_fd_MyApp;
- Zhen Jian Toh
Hi Matthew, I try the code but it still shows error Fail to retrieve column list. Please check your configuration.
Add your comment...
Dear master,
How to show image icon in datalist builder?