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
Ravi_SFDCRavi_SFDC 

Need help for Visual force Page

I am trying to create a Table in the dashboard, which contains 4 columns and the values are displayed priority wise. Please see the below screen shot.

User-added image

Can anyone tell me how can i do this using visual force page? Your help would be really appreciated. 

Sean McMickleSean McMickle
Hey there Vekata,

Use html table, you can find an example here :: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_intro

When you use the table, iterate through your records by using <apex:repeat>.  https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_repeat.htm

For example, if you had a list of accounts, and you wanted a table of first name and last names, it would look something like this ::
 
<table>
  <tr>
    <th>Account First Name</th>
    <th>Account Last Name</th>
  </tr>
  <apex:repeat var="account" value="{!accounts}">
  <tr>
      <td>{!account.FirstName}</td>
      <td>{!account.LastName}</td>
  </tr>
  </apex:repeat>
</table>

 

Good luck!

-Sean

Ravi_SFDCRavi_SFDC
Thank you Sean. This i have completed. What i am trying to do is try to create a visual force component and call the component in the visual force page using the attribute. So that i can be able to create the 3 tabular format as shown in the above attached image. For each record i should be able to create the same. Need help with regard to the same. Your help is really appreciated.