I have a simple question that seems to be escaping me at the moment...
The typical way I use inline conditionals is: {!IF(booleanValue,"SOMECONTENT-IF VALUE IS TRUE", "SOMEOTHERCONTENT-IF VALUE IS FALSE")}
With the below conditional, how is it reading the second boolean value '00T'?
<apex:pageBlockTable value="{!list}" var="item">
<apex:column headerValue="Created By">
<apex:variable var="field" value="{!IF(BEGINS('00a', '00T'), 'Owner.Name', 'CreatedById')}" />
<apex:outputField value="{!item[field]}" />
</apex:column>
</apex:pageBlockTable>
UPDATE: I wasn't looking at the structure correctly. This is saying:
IF '00a' beings with '00T' then show Owner.Name. IF NOT show CreatedByID.
IF(false, ...)}
which just ultimately simplifies to'CreatedById'
.'00a'
begins with'00T'
, which is always false. Perhaps'00a'
was meant to beitem.Id
, but it's hard to tell.