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
VisualForceVisualForce 

Static Resource - Dynamic Name

Hi..

 

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 : http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=9386

 

  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