Skip to main content
Pratima Shrivastav (Slalom) a posé une question dans #Visualforce
Hi all.. I have a custom object and tab  called merchandise in my warehouse app. I want to override this with a vf page which is as below. But i dont see any option in my salesforce org as they have for standard objects. Please help me.Here is my vf code

<apex:page controller="merchandiseCont">

  <apex:pageBlock >

    <apex:pageBlockTable value="{!mer}" var="m">

        <apex:column value="{!m.name}"/>

        <apex:column value="{!m.Price__c}"/>

        <apex:column value="{!m.Quantity__c}"/>

    </apex:pageBlockTable>

  </apex:pageBlock>

</apex:page>

____________Controller____________

public with sharing class merchandiseCont {

    public List<merchandise__c> mer{get; set;}

    public merchandiseCont(){

        mer=[select name, price__c, quantity__c from merchandise__c order by price__c];

    }

}
1 réponse
0/9000