You need to sign in to do that
Don't have an account?

What is this code doing
Hi All
I am trying to change the columns shown on a Page so I need to knwo how to refer to the fields the current ones are referenced like this
<th class="number">{!trnDiscount}</th>
So how do I add new fields
I am trying to change the columns shown on a Page so I need to knwo how to refer to the fields the current ones are referenced like this
<th class="number">{!trnDiscount}</th>
So how do I add new fields
trnDiscount is nothing just a vaiable in Controller which is bind on VF page. To bind any variable on VF page we need to write like
{! Vaiable_Name}
So it is {!trnDiscount}
I hope this will help you
All Answers
<Th> tag is used to create the table header and {!trnDiscount} will used to show the table header value.
Please check below link for more detail on table tag. I hope that will help you.
http://www.w3schools.com/tags/tag_th.asp
Please let us know if this will help you.
Thanks,
Amit Chaudhary
In the above code accounts is a public list variable, which gets the accounts using a soql query. As you can see Name and CreatedDate fields are added in the above example. You can add other fields similarly.
Hope this helps.
trnDiscount is nothing just a vaiable in Controller which is bind on VF page. To bind any variable on VF page we need to write like
{! Vaiable_Name}
So it is {!trnDiscount}
I hope this will help you
trnDiscount must be a public variable created in the controller the VF page is referencing.