Skip to content

Instantly share code, notes, and snippets.

@mwelburn
Last active December 14, 2015 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwelburn/5154741 to your computer and use it in GitHub Desktop.
Save mwelburn/5154741 to your computer and use it in GitHub Desktop.
<apex:page controller="testLookup">
<apex:form >
<apex:pageBlock id="incomeBlock" mode="edit">
<apex:pageBlockSection columns="1">
<apex:pageBlockTable value="{!opptys}" var="t">
<apex:facet name="footer">
</apex:facet>
<apex:column headerValue="Id">
<apex:outputField value="{!t.Id}"/>
</apex:column>
<apex:column headerValue="Name">
<apex:inputField value="{!t.Name}"/>
</apex:column>
<apex:column headerValue="Account">
<apex:inputField value="{!t.AccountId}" required="false" onchange="actionChosen()"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:actionFunction name="actionChosen" reRender="incomeBlock">
</apex:actionFunction>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment