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
NaveenReddyNaveenReddy 

assignments

Can anyone please help me in solving below queries.

 

 

1.Add check boxes to a list of records, a  check box in the heading , when the header check box is cheked all the check boxes in the list are check and vice versa.

2.Create a site for a visual force page and change the position of the controls in page with site template.

3.Download data thru apex in excel format.

 

 

Its urgent please..

 

Thanks in advance

Abhi_TripathiAbhi_Tripathi

Hey,

 

Here is your first solution

 

http://wiki.developerforce.com/page/Wrapper_Class

gautam_singhgautam_singh

Hi ,


Here is the solution for each of your queris. Mark it Solution if it fits your needs. 

1.Add check boxes to a list of records,
A check box in the heading , when the header check box is cheked all the check boxes in the list are check and vice versa.


You need to create a Wrapper Class indeed ! It will show a list of records wherin you can add a column to show a checkbox with all of the records. You need to have a select all checkbox also as per the requirement you mentioned.
For creating a select all checkbox , you need to write a small script like that mentioned in these blog 1 and blog 2

 

2.Create a site for a visual force page and change the position of the controls in page with site template.

I assume you mean to create a Force.com Site Page and not a complete Site.com functionality.
If Yes, then follow this process.

1. Click Sites and register your domain.
2. Create one Site Page and assign the Visualforce Page to it with suitable permissions.

Also , " change the position of the controls in page with site template." this line went over my mind. Please elaborate..

 

3.Download data thru apex in excel format.

I have done the process either way .. ie.. updated Salesforce Records via Excel. Check my blog here, if you are into re-engineering the flow and finding a suitable process for you.

If you are into apex2excel check this beautiful blog and video in which you collect your data into apex controller and give it a view via Visualforce and Get Data in Excel. 

Conceptually, you can use the contenttype attribute in the <apex:page> to convert any visualforce page render as Excel contenttype="application/vnd.ms-excel#MyFile.xls;charset=UTF-8 .

All you have to do is format the data in visualforce page as per your criteria using apex and then render the page as excel sheet using the content type attribute. Click here for more details.

 

Hope this fulfills your requirement. 


Important :

Click on the Star Icon aside if this post provides you with useful information and if this is what you where looking for then please mark it as a solution for others benefits.

Thank You