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
Baba GBaba G 

Unable in populating Data in lightning !


                                   Basicaly I created a table in lighning and trying to populating data from from product object in that table
1- I created a applicatipn with name Pricebook and input following code in it-
<aura:application>
        <head>
    <style>
table {
    width:100%;
}
table, th, td {
    border: 1px solid white;
    border-collapse: collapse;
}
th, td {
    padding: 5px;
    text-align: center;
}
table#t01 tr:nth-child(even) {
    background-color: #eee;
}
table#t01 tr:nth-child(odd) {
   background-color:#fff;
}
table#t01 th    {
    background-color: SlateBlue ;
    color: white;
}
</style>
</head>
<body>
<table style="width:100%;background-color:#6C9EC4; border:outset ; border-color: #666;cellspacing:0;" >
        
         
  </table>    
   
<table id="t01" style="width:100%; border:outset ; border-color: #666">
<tr>
            <td width="25%" colspan="3" bgcolor="#6988D8" >Customer Name
            <input type="text"></input>
            </td>
            <td width="27%" colspan="3" bgcolor="#6988D8">
             Initial Setup Cost<input type="text"></input>
              <p>  Final Setup Cost
                <input type="text"></input>
              </p></td>
    </tr>
  <tr>
      <th>  </th>
    <th>Partner Cost Price</th>
    <th width="12%">Partner Sale Price</th>        
    <th width="14%">Discounts Allowed</th>
    <th width="10%">Turn Over Period</th>
    <th width="12%">Turn Over Volume</th>
  </tr>
    
  <tr>
    <td>Product A</td>
    <td></td>        
    <td></td>
      <td></td>
      <td></td>
      <td></td>
  </tr>
  <tr>
    <td>Product B</td>
    <td></td>        
    <td></td>
      <td></td>
      <td></td>
      <td></td>
  </tr>
  <tr>
    <td>Product C</td>
    <td></td>        
    <td></td>
      <td></td>
      <td></td>
      <td></td>
  </tr>
    <tr>
    <td>Product D</td>
    <td></td>        
    <td></td>
        <td></td>
        <td></td>
        <td></td>
  </tr>
    <tr>
    <td>Product E</td>
    <td></td>        
    <td></td>
        <td></td>
        <td></td>
        <td></td>
  </tr>
</table>
      
    </body>
    
</aura:application>

that showing following table-
User-added image

now when I'm trying to populate data in it it is showing blank,If possible thn please tell me steps that should I follow to  populaate it I'm totally new in it
ShashankShashank (Salesforce Developers) 
You should probably be fetching the data via a controller and then display it. Please refer to the lightning component developer for help: https://www.salesforce.com/us/developer/docs/lightning/lightning.pdf