• maxforce
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

IN my visual force i have one selectedlist..i am trying to connect that list to apex...how can i connect by using custom controller..

 

 i am giving some information

 

MY DETAILS::

 

sOBJECT NAME : BOOK__C

FILEDS NAME:  TEXT: AUTHOR,

                              CURRENCY: PRICE

                               PICKLIST: APEX,SAP,JAVA,C..

 

I WANT TO CONNECT THIS ALL DATA TO sOBJECT THROUGH MY VISUALFORCE...
I AM USING CUSTOMCONTROLLER APEX

HOW CAN I CONNECT VF--->>APEX----DATAMAODEL...THIS VALUES PLZ HELP ME THE CODE...PLZ....

I've been doing some work creating content in Visualforce that is rendered/opened in different formats (PDF, csv, excel etc). The few ways I have found to force rendering or download of the Visualforce page onload is to renderAs="PDF" or setting contenttype="text/csv" etc. The issue is during the load of the page, the page itself is saved using the naming convention of the Visualforce page, meaning you cannot specify the necessary extension. 

 

I was wondering if anyone had a workaround or any ideas to force the save of the page to a dynamic name and specify a file extension (for instance force a Visualforce page named Report with contenttype="application/csv" save as {dynamicname}.csv). 

 

My temporary work-around is having the file emailed as an attachment, as you can specify name of attachment and file extension dynamically in Visualforce templates. I would prefer the option to directly download rather then use this work-around. Anyone have any ideas?