Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. private List<Contact> contactList;
  2.  
  3. string nameT = Apexpages.currentPage().getParameters().get('nameT');
  4. string phoneT = Apexpages.currentPage().getParameters().get('phoneT');
  5. string emailT = Apexpages.currentPage().getParameters().get('emailT');
  6.  
  7. system.debug(nameT + '//' + phoneT + '//' + emailT);
  8.  
  9.  
  10. Contact att = new Contact();
  11.  
  12. att.lastname = nameT;
  13. att.phone = phoneT;
  14. att.email = emailT;
  15. // it returns
  16.  
  17. contactList.add(att);'
  18.  
  19. <apex:column>
  20. <apex:facet name="header">
  21. <apex:outputPanel >Name</apex:outputPanel>
  22. </apex:facet>
  23. <a id="clickFtn" href="javascript:void(0);" onclick="addRow('{!index}')">
  24. <input type="hidden" value="{!a.name}" id="contactName_{!index}"/>
  25. <input type="hidden" value="{!a.phone}" id="contactPhone_{!index}"/>
  26. <input type="hidden" value="{!a.email}" id="contactEmail_{!index}"/>
  27. {!a.Name}</a>
  28. <apex:variable var="index" value="{!index+1}"/>
  29. </apex:column>
  30. <apex:column id="contactPhone">
  31. <apex:facet name="header">
  32. <apex:outputPanel >Phone</apex:outputPanel>
  33. </apex:facet>
  34. {!a.Phone}
  35. </apex:column>
  36. <apex:column id="contactEmail">
  37. <apex:facet name="header">
  38. <apex:outputPanel >Email</apex:outputPanel>
  39. </apex:facet>
  40. {!a.Email}
  41. </apex:column>
  42.  
  43. </apex:pageBlockTable>
  44. </apex:pageBlock>
  45. </apex:outputPanel>
Add Comment
Please, Sign In to add comment