Hi everyone,
I have a list of images, and want to show it in columns (2, 3 or more.. which is displayed as same as gallery view ), been trying out but can not achieve it, only can show it row by row by <start:> and <> expressions.
For example, I have list of {image 1, image 2, image 3, image 4}, I want to show as below when creating pdf by automation. If anyone has experience with this kind of display, please kindly advise. Thank you.
Please post such queries in “Q&A” section.
Could you update if those images are from the same record or multiple records of a table?
or are those images (one per record ) from a child table?
Also if possible, could you share your existing template expression?
1 Like
Hi Suvrutt,
Sorry I didn’t notice the Q&A box…
Those images are multiple records of a table ( each row has 1 image ).
The example data would be as below for Table named “Bag” :
| ID |
Image |
Bag Name |
| 1 |
Image 1 |
Name 1 |
| 2 |
Image 2 |
Name 2 |
| 3 |
Image 3 |
Name 3 |
My template expression :
| Image |
<<START: Bag[ID]>> <<[Image]>> <<[Bag Name]>><> |
Result (not as expected)
| Image |
Image 1 Name 1 |
Image 2 Name 2 |
Image 3 Name 3 |
What I’m trying to achieve is :
Image 1 Name 1 |
Image 2 Name 2 |
Image 3 Name 3 |
Thank you. Please try something like below. Not very elegant but will work.
The below will work for up to six images. You may want to suitably adjust /add columns /rows, expressions.
<<START: LIST(INDEX(Bag[ID],1))>> <<[Image]>> <<[Bag Name]>><> |
<<START: LIST(INDEX(Bag[ID],2))>> <<[Image]>> <<[Bag Name]>><> |
<<START: LIST(INDEX(Bag[ID],3))>> <<[Image]>> <<[Bag Name]>><> |
<<START: LIST(INDEX(Bag[ID],4))>> <<[Image]>> <<[Bag Name]>><> |
<<START: LIST(INDEX(Bag[ID],5))>> <<[Image]>> <<[Bag Name]>><> |
<<START: LIST(INDEX(Bag[ID],6))>> <<[Image]>> <<[Bag Name]>><> |
1 Like
Hi Suvrutt,
What if I have like n images, not just 6 ?
Then I believe you should use Aleksi’s nice solution as it already caters to n number of images.
1 Like
Hi Suvrutt, noted and thank you for your help
Thanks Aleksi, I’m also asking another Aleksi for more details hhh, guess it’s you ^^