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

VisualForce_Task_1
Please Help Me With Code.
I want to create a page in which,
we use <apex:inputField> or <apex:inputText> for FirstName, LastName, DateOfBirth,Gender(PickList).
There will be a button on page, after insert value in each field and clicking on button, next page will get display, wich will show list of output. which we have entered in inputField or input text.
please give me a code using following methods,
PageReference Px = page.PageName;
Px.getParameters().put();
ApexPages.currentPage().getParameters().get();
I want to create a page in which,
we use <apex:inputField> or <apex:inputText> for FirstName, LastName, DateOfBirth,Gender(PickList).
There will be a button on page, after insert value in each field and clicking on button, next page will get display, wich will show list of output. which we have entered in inputField or input text.
please give me a code using following methods,
PageReference Px = page.PageName;
Px.getParameters().put();
ApexPages.currentPage().getParameters().get();
<<<<----First vf page --->>>>>
<<<<<<------ Rerender page ---->>>>>>
<<<<<<------ Apex class---- >>>>>
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
ContactEdit Class Is Missing Here, Can You Please Provide it too
<<<<<<------ Rerender apex class---->>>>>>
public class ContactEdit {
public boolean editSection {get;set;}
Contact currentRecord;
public ContactEdit(ApexPages.StandardController controller)
{
this.currentRecord = (Contact)controller.getRecord();
currentRecord = [SELECT Id, LastName FROM Contact WHERE Id = :currentRecord.Id];
System.debug('name'+currentRecord);
}
public PageReference EdittheSection()
{
try {
Update(currentRecord);
editSection = true;
}
catch(System.DMLException e) {
ApexPages.addMessages(e);
return null;
}
return null;
}
}
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi