You need to sign in to do that
Don't have an account?
Naresh Kumar Mohan Thirukkovaluru
hi all, i am unable to redirect to detailed page of record after saving it & code for new,cancel.
public with sharing class bookclass {
public bookclass(){
name1=' ';
price1=null;
author1=' ';
edition1=null;
}
public String name1 { get; set; }
public decimal price1 { get; set; }
public String author1 { get; set; }
public decimal edition1 { get; set; }
public PageReference save() {
book__c bk = new book__c();
bk.name=name1;
bk.bookprice__C=price1;
bk.author__C=author1;
bk.edition__C=edition1;
insert bk;
return null;
}
public PageReference saveandnew() {
return null;
}
public PageReference cancel() {
return null;
}
}
public bookclass(){
name1=' ';
price1=null;
author1=' ';
edition1=null;
}
public String name1 { get; set; }
public decimal price1 { get; set; }
public String author1 { get; set; }
public decimal edition1 { get; set; }
public PageReference save() {
book__c bk = new book__c();
bk.name=name1;
bk.bookprice__C=price1;
bk.author__C=author1;
bk.edition__C=edition1;
insert bk;
return null;
}
public PageReference saveandnew() {
return null;
}
public PageReference cancel() {
return null;
}
}
thanks,
Ramesh
thanks,
Ramesh