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

Reference index of list
I need to be able to reference the index of a certain value in Visualforce, not the label. Here is an example:
In the example above there is usually a label of the object for "Name" that would get pulled in. However, I had to build a custom list in my controller which doesn't have labels for each index value. I need something like:
Nothing I try is working. How can I just call the index place of the value in the list instead of calling it by a label?
Thanks!
<apex:pageBlockTable value="{!allData}" var="d" id="theTable"> <apex:column > <apex:facet name="header">Contact Name</apex:facet> <apex:outputText value="{!d.Name}"/> </apex:column> <apex:pageBlockTable
In the example above there is usually a label of the object for "Name" that would get pulled in. However, I had to build a custom list in my controller which doesn't have labels for each index value. I need something like:
<apex:pageBlockTable value="{!allData}" var="d" id="theTable"> <apex:column > <apex:facet name="header">Contact Name</apex:facet> <apex:outputText value="{!d.[index#]}"/> </apex:column> <apex:pageBlockTable
Nothing I try is working. How can I just call the index place of the value in the list instead of calling it by a label?
Thanks!
Are you looking for something like this? --Akram
Why?
Controller
VF Page