You need to sign in to do that
Don't have an account?
Declan
Apex class
I am trying to design a UI for a custom object .
The steps involved are 1.Create a new opportunity 2.Create a new custom object(Reference__c) within opportunity 3.Select Custom object from a lookupfield (Test_Service_Item__c) within Reference. It is the fields in the (Test_Service_Item__c) that the UI is for.
My VF code is :
<apex:page standardController="Test_Service_Item__c" >
<apex:pageMessages ></apex:pageMessages>
<apex:pageBlock id="thePageBlock" >
<apex:pageBlockSection title="test" columns="1" >
<apex:form >
<apex:inputfield value="{!Test_Service_Item__c.Reference__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.name}"/>
<apex:inputfield value="{!Test_Service_Item__c.Customer_OnSite__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Required_Item__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Show_Price_On_Quote__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Include_in_Quote__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Overall_Sort_Order__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Price__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Answer__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Sort_Order__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Std_Sort_Order__c}"/>
<apex:commandButton action="{!save}" value="save"/>
</apex:form>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
This is dispalying the fields but they are blank. Do i need Apex class to have the values of the object appearing in VF page?
The steps involved are 1.Create a new opportunity 2.Create a new custom object(Reference__c) within opportunity 3.Select Custom object from a lookupfield (Test_Service_Item__c) within Reference. It is the fields in the (Test_Service_Item__c) that the UI is for.
My VF code is :
<apex:page standardController="Test_Service_Item__c" >
<apex:pageMessages ></apex:pageMessages>
<apex:pageBlock id="thePageBlock" >
<apex:pageBlockSection title="test" columns="1" >
<apex:form >
<apex:inputfield value="{!Test_Service_Item__c.Reference__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.name}"/>
<apex:inputfield value="{!Test_Service_Item__c.Customer_OnSite__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Required_Item__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Show_Price_On_Quote__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Include_in_Quote__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Overall_Sort_Order__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Price__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Answer__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Sort_Order__c}"/>
<apex:inputfield value="{!Test_Service_Item__c.Std_Sort_Order__c}"/>
<apex:commandButton action="{!save}" value="save"/>
</apex:form>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
This is dispalying the fields but they are blank. Do i need Apex class to have the values of the object appearing in VF page?
https://base_url/apex/TestServiceItem?id=15_or_18_digit_id_of_record
Thanks,
Amit
Can you please rephrase your question? I didn't get your exact requirement.
Sorry if again you required something different and I comes up diffrent.
Thanks,
Amit
1) https://developer.salesforce.com/forums/?id=906F000000099LEIAY
2) http://stackoverflow.com/questions/13180857/displaying-values-related-to-a-lookup-field
Thanks,
Amit
I tried this for you by taking example of Account(i.e. yours Opportunity) and Contacts(i.e yours Test_Service_Item__c). Please update this by taking your objects:
Let me know if it works for you.
Thanks,
Amit
Thanks,
Amit