You need to sign in to do that
Don't have an account?
Richa_Learning
Link VF page to Object
Hi,
this is Class:
public with sharing class ideaExtension {
Private final Idea idea;
public ideaExtension(ApexPages.StandardController stdController) {
this.idea = (Idea)stdController.getRecord();
}
}
This is Page:
<apex:page standardController="idea">
<apex:form >
<apex:pageBlock title="New Idea">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Idea Details" columns="1">
<apex:inputField style="width:250px" value="{!idea.title}"/>
<apex:inputField required="true" style="width:600px" value="{!idea.body}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
When I click on Idea object,i still see the Old Idea Page layout. How do it enforce this page?
thanks,
Richa
this is Class:
public with sharing class ideaExtension {
Private final Idea idea;
public ideaExtension(ApexPages.StandardController stdController) {
this.idea = (Idea)stdController.getRecord();
}
}
This is Page:
<apex:page standardController="idea">
<apex:form >
<apex:pageBlock title="New Idea">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Idea Details" columns="1">
<apex:inputField style="width:250px" value="{!idea.title}"/>
<apex:inputField required="true" style="width:600px" value="{!idea.body}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
When I click on Idea object,i still see the Old Idea Page layout. How do it enforce this page?
thanks,
Richa
If you want to link Vf page to your above code, create the Visualforce Tab.
Setup->Create->Tabs->Visualforce Tab , here you can attach your VF page to the tab.
Thanks,
Pratik
Mark as Best Answer if link solves your purpose.
You can keep the zone active and can set where you want to show that zone (internal, portal or community). You can go to Zone, click on Edit besides Zone name and change the setting.
If you have only one zone, then only that zone will be reflected in ideas tab.
Hope this will help.
Thanks,
Pratik