f1lam3ntx0

CList-VF

Mar 20th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1.  
  2.  
  3. <apex:page controller="clist" showHeader="true" sidebar="true">
  4. <apex:form>
  5. <apex:pageBlock title="List of Contacts: {!total_size}" mode="inlineEdit">
  6. <apex:pageBlockTable value="{!ct}" var="c" id="ct">
  7. <apex:column>
  8. <apex:outputLink title="" value="/{!c.id}/e?retURL=/apex/{!$CurrentPage.Name}" style="font-weight:bold">Edit</apex:outputLink>
  9. &nbsp;|&nbsp;
  10. <apex:commandlink value="Delete" action="{!DeleteContact}">
  11. <apex:param name="cId" value="{!c.Id}" assignTo="{!cId}" />
  12. </apex:commandlink>
  13. </apex:column>
  14. <apex:column value="{!c.Id}" />
  15. <apex:column value="{!c.FirstName}" />
  16. <apex:column value="{!c.LastName}" />
  17. <apex:column value="{!c.Email}" />
  18. <apex:column value="{!c.AccountId}" />
  19. <apex:column value="{!c.Phone}" />
  20. </apex:pageBlockTable>
  21. <apex:pageBlockButtons>
  22. <apex:commandButton value="save" action="{!save1}" />
  23. <apex:commandButton action="{!Previous}" value="previousPage" disabled="{!disablePrevious}" />
  24. <apex:commandButton action="{!Next}" value="Nextpage" disabled="{!disableNext}" />
  25. <apex:commandButton action="{!Last}" value="Last" disabled="{!disableNext}" />
  26. </apex:pageBlockButtons>
  27. <br/><br/>
  28. <apex:pageBlockSection id="task1">
  29. First Name
  30. <apex:inputText value="{!firstName}" />
  31. Last Name
  32. <apex:inputText value="{!lastName}" />
  33. Phone
  34. <apex:inputText value="{!phone}" />
  35. Email:
  36. <apex:inputText value="{!email}" />
  37. <apex:commandButton value="save" action="{!save}" />
  38. </apex:pageBlockSection>
  39. <apex:pageBlock>
  40. <apex:commandButton value="{!Pagect}" />
  41. <apex:commandButton value="{!TotalPages}" />
  42. </apex:pageBlock>
  43. </apex:pageBlock>
  44. </apex:form>
  45. </apex:page>
Add Comment
Please, Sign In to add comment