You need to sign in to do that
Don't have an account?
GerhardNewman2
Thanks!
Message Edited by GerhardNewman2 on 05-29-2008 06:05 AM
How to work with dynamic images in visualforce?
I am wanting to have a custom object with a url field. The url will reference a static image.
My question is how can I implement an edit facility on my custom object so that the images can be added/edited?
My custom object works fine displaying images that I manually uploaded into static resources, where I then manually pasted the url into the records. But how can I make this work automatically?
I can't find anything telling me how to upload files through code.....
My question is how can I implement an edit facility on my custom object so that the images can be added/edited?
My custom object works fine displaying images that I manually uploaded into static resources, where I then manually pasted the url into the records. But how can I make this work automatically?
I can't find anything telling me how to upload files through code.....
BTW, Jasons Employee App is roughly what I am trying to do http://wiki.apexdevnet.com/index.php/Visualforce_Employee_App
However this sample app does not have the edit function. Maybe its just not shown in the public demo??
However this sample app does not have the edit function. Maybe its just not shown in the public demo??
Thanks!
Message Edited by GerhardNewman2 on 05-29-2008 06:05 AM
you would like to edit the details, and upload a new picture?
since i didn't see a way to do it in vf, i wrote a php page and embedded it in my vf page using an iframe tag. the iframe url included the serverUrl, sessionId, and the id of the current record i was editing in vf so that my php page could call back into sfdc and write the binary value (the uploaded image) into the relevant sobject. that worked well.
(demo) jason