function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Static Resource - Dynamic Name



I would like the file reference within my URLFOR($Resource) to be dynamic -a variable set in my controller itself. Can this be done? I am trying to show dynamic images in a pdf based on record(some condition). 


 Same type question :


  In the above thread Andrew says

           " you can bundle the images into a zip, upload the zip as a static resource and then specify which element within the zip you want to show dynamically. "

         But in my case I have to add images future also and some time I have to delete images. In that case I have to zip all images once again.

        Is there any other way to get a images based on record