function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
I want to create standard new button for a custom object. Please tell me how can i do this.
Thanks..
Hi Mishra,
Do you want a New button in VF page for custom object or New button is not appearing for you when hitting the tab of that custom object, your question is bit confusing.
I created a visualforce tab and want to create the standard 'New' button inside that.
Please let me know how can this be implemented.
Thanks.
You should use a method for button action as follows.
public pageReference newAction(){ pageReference pg = new pageReference('/a03/e?'); return pg; }
Here 'a03' is first three digits of your custom object record's Id.
Hi Mishra,
Do you want a New button in VF page for custom object or New button is not appearing for you when hitting the tab of that custom object, your question is bit confusing.
I created a visualforce tab and want to create the standard 'New' button inside that.
Please let me know how can this be implemented.
Thanks.
You should use a method for button action as follows.
public pageReference newAction(){
pageReference pg = new pageReference('/a03/e?');
return pg;
}
Here 'a03' is first three digits of your custom object record's Id.