You need to sign in to do that
Don't have an account?
Charles McDowell
apex:param values not updating
I am new to Salesforce. I am trying to get detail to show when I click the link. I check to see if parameters are passed and no values are updated can someone tell me what is wrong. thanks
<apex:page standardController="Account" recordSetVar="acts" sidebar="False" >
<apex:form >
<apex:pageBlock title="Accounts" >
<apex:pageBlockSection >
<apex:pageBlockTable value="{!acts}" var="a">
<apex:column >
<apex:commandLink value="{!a.name}" reRender="relView"/>
<apex:param name="AccountID" value="{!a.ID}"/>
<apex:param name="Name" value="{!a.Name}"/>
</apex:column>
<apex:column value="{!a.ID}" />
<apex:column value="{!a.Industry}" />
</apex:pageBlockTable>
<apex:pageBlock title="Account Detail" ID="relView">
{!$CurrentPage.parameters.AccountID}<br/>
{!$CurrentPage.parameters.Name}
</apex:pageBlock>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:page standardController="Account" recordSetVar="acts" sidebar="False" >
<apex:form >
<apex:pageBlock title="Accounts" >
<apex:pageBlockSection >
<apex:pageBlockTable value="{!acts}" var="a">
<apex:column >
<apex:commandLink value="{!a.name}" reRender="relView"/>
<apex:param name="AccountID" value="{!a.ID}"/>
<apex:param name="Name" value="{!a.Name}"/>
</apex:column>
<apex:column value="{!a.ID}" />
<apex:column value="{!a.Industry}" />
</apex:pageBlockTable>
<apex:pageBlock title="Account Detail" ID="relView">
{!$CurrentPage.parameters.AccountID}<br/>
{!$CurrentPage.parameters.Name}
</apex:pageBlock>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:commandLink value="{!a.name}" reRender="relView">
<apex:param name="AccountID" value="{!a.ID}"/>
<apex:param name="Name" value="{!a.Name}"/>
</apex:commandLink>
Hope this helps.