You need to sign in to do that
Don't have an account?

How to add inline edit to VF page and pagination function?
How to add inline edit to VF page and pagination function? (for Title,Email and Birthdate)
Thanks!
Thanks!
<apex:page Controller="AccContact"> <apex:form > <apex:pageBlock > <apex:pageBlockTable value="{!acclst}" var="a"> <apex:column headerValue="Name"> <apex:commandLink action="{!selacc}"> <apex:param name="conlst" value="{!a.id}"/> <apex:outputText value="{!a.name}"/> </apex:commandlink> </apex:column> <!--accounts--> </apex:pageBlockTable> <apex:pageBlockTable value="{!accconts1}" var="a"> <apex:column headerValue="Account Name" value="{!a.Name}"/> <!--contacts--> <apex:column headerValue="List contacts"> <apex:pageBlockTable value="{!a.contacts}" var="c"> <apex:column headerValue="Title"> <apex:outputText value="{!c.title}"></apex:outputText> </apex:column> <apex:column headerValue="First Name"> <apex:outputText value="{!c.firstname}"></apex:outputText> </apex:column> <apex:column headerValue="Last Name"> <apex:outputText value="{!c.lastname}"></apex:outputText> </apex:column> <apex:column headerValue="Email"> <apex:outputText value="{!c.email}"></apex:outputText> </apex:column> <apex:column headerValue="Birthdate"> <apex:outputText value="{!c.birthdate}"></apex:outputText> </apex:column> </apex:pageBlockTable> <!-- End contact--> </apex:column> </apex:pageBlockTable><!--end account--> </apex:pageBlock> </apex:form> </apex:page>
public with sharing class AccContact { public list<contact> conlst { get; set; } // public contact c { get; set; } /* public void getSelacc() { }*/ public list<account> accconts1 { get; set; } public PageReference selacc() { string getid=apexpages.currentpage().getparameters().get('conlst'); accconts1=[select id,name,(select id,lastname,firstname,email,title,birthdate from contacts) from account where id=:getid ]; system.debug(accconts1); return null; } public List<Account> acclst { get; set; } public AccContact (){ acclst=[select id,name from account ]; system.debug(acclst); } }
Please Refer This link also...
Regards,
Soundar
All Answers
Please refer the below link for know more about inline edit. Defenitely You will be get a good idea after read this link.
Regards,
Soundar
Please Refer This link also...
Regards,
Soundar