function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sandipmsandipm 

overriding standard button in custom object tab

Hi, 

   I am overriding standard button 'New', on my custom objects tab to Visual force page as I wanted some

customization for creating new object. It works fine.

 

but when I package everything and install it in other organization, overriding is gone. They see standard page which comes up after clicking New button.

 

I want this overriding to be permanent or packaged. so when other user installs package, 'New' button should point to VF page.

 

Is there any way to do by making changes to  Metadata object?
 

 

regards,

Sandip 

 

shillyershillyer

Packaging Button Overrides will be available in the Spring '10 release. If you wanted to though, you can use the metadata API, see here.

 

Hope that helps,

Sati

sandipmsandipm

thanks shillyer...

 

as per metadata api link, I created a webline but it is creating new custom button but not actually

overriding existing standard new button. 

 

following is metadata I tried adding into customName.object

 

    <webLinks>

        <fullName>New</fullName>

        <availability>online</availability>

        <displayType>button</displayType>

        <hasScrollbars>true</hasScrollbars>

        <height>600</height>

        <isResizable>true</isResizable>

        <linkType>page</linkType>

        <masterLabel>New</masterLabel>

        <openType>newWindow</openType>

        <page>NewPage</page>

        <position>none</position>

        <protected>false</protected>

    </webLinks> 

 

 

thanks

Sandip