Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<Contact> contactList;
- string nameT = Apexpages.currentPage().getParameters().get('nameT');
- string phoneT = Apexpages.currentPage().getParameters().get('phoneT');
- string emailT = Apexpages.currentPage().getParameters().get('emailT');
- system.debug(nameT + '//' + phoneT + '//' + emailT);
- Contact att = new Contact();
- att.lastname = nameT;
- att.phone = phoneT;
- att.email = emailT;
- // it returns
- contactList.add(att);'
- <apex:column>
- <apex:facet name="header">
- <apex:outputPanel >Name</apex:outputPanel>
- </apex:facet>
- <a id="clickFtn" href="javascript:void(0);" onclick="addRow('{!index}')">
- <input type="hidden" value="{!a.name}" id="contactName_{!index}"/>
- <input type="hidden" value="{!a.phone}" id="contactPhone_{!index}"/>
- <input type="hidden" value="{!a.email}" id="contactEmail_{!index}"/>
- {!a.Name}</a>
- <apex:variable var="index" value="{!index+1}"/>
- </apex:column>
- <apex:column id="contactPhone">
- <apex:facet name="header">
- <apex:outputPanel >Phone</apex:outputPanel>
- </apex:facet>
- {!a.Phone}
- </apex:column>
- <apex:column id="contactEmail">
- <apex:facet name="header">
- <apex:outputPanel >Email</apex:outputPanel>
- </apex:facet>
- {!a.Email}
- </apex:column>
- </apex:pageBlockTable>
- </apex:pageBlock>
- </apex:outputPanel>
Add Comment
Please, Sign In to add comment