+ Start a Discussion
asish1989asish1989 

New Standard Button is not working

Hi 

 

I am calling a salesforce standard page in a iframe, That means I am calling a standard salesforce page in a VF page by using iframe. I am able to hide the header and side bar of standard page, But when I am clicking on New standard button .It is not working . Do you know how will do it?

 

<apex:page>
<iframe height="500px" id="theIframe" name="theIframe" src="https://ap1.salesforce.com/001/o?isdtp=vw" width="100%" scrolling="false" frameborder = "true"/>
</apex:page>

 

Please help me

IshanIshan
Hi

use this you will get new functionality

<iframe height="500px" id="theIframe" name="theIframe" src="https://ap1.salesforce.com/001/o?isdtp=mn" width="100%" scrolling="true" frameborder = "true"/>

my suggestion is If you use the apex:detail component, you will get the all functionality.
asish1989asish1989

I appreciate your answer and I have already tried that, But that gives salesforce old look and feel. 

I understand by using <apex:detail> we can disply detail page record of particular object. I want to display home page of particular object without header and sidebar. is there any component you know for this?

IshanIshan

Hi Thanks for ur appreciation,

 

 

The <apex:detail> is for already created record. You can edit the already existing record in the <apex:detail> tag using inlineEdit attribute. But in your case create a new record, so you should create a new vfpage and overrise it on new button (button & links).

 

 

 

 

Chamil MadusankaChamil Madusanka
This code works. try this

<apex:
page >
<iframe height="500px" id="theIframe" name="theIframe" src="/001/o?isdtp=mn" width="100%" scrolling="false" frameborder = "true"/>
</apex:page>