• Declan
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 11
    Replies
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?
Hi

I am having trouble with my VF page. I cant view related list until after i have clicked save. Is there any way i can view and edit the fields on the related lists before i click save?

<apex:page StandardController="opportunity"   >
<apex:pageMessages ></apex:pageMessages>
<b> Hello {!$User.FirstName}</b>

<apex:form >

<apex:pageBlock >
<apex:pageblocksection title="Fields for Quote" columns="2">
<apex:inputfield Value="{!opportunity.ownerid}"/>
<apex:inputfield Value="{!opportunity.name}"/>
<apex:inputfield Value="{!opportunity.Enquiry_Number__c}"/>

</apex:pageblocksection>
<apex:commandButton action="{!save}" value="save" />  
    </apex:pageBlock>

</apex:form>
  <apex:relatedList list="Reference__r"/>
</apex:page>
Hi,

I am trying to create a simple userface that will allow me to update fields on a custom object which will then update the database.

I am new to VF so any help would be appreciated.

This is what i have so far.
Apex class:
public with sharing class Declan3 {

    public Declan3(ApexPages.StandardController controller) {

    }


   


   public class reference {
        public Reference__c ref {get; set;}
        public List<Test_Service_Item__c> items { get; set; }
        
        public reference(Reference__c ref, List<Test_Service_Item__c> items) {
            this.ref = ref;
            this.items = items;
        }
    }

}

And VF Page:
<apex:page standardController="Test_Service_Item__c" extensions="Declan3" >
<apex:pageMessages ></apex:pageMessages>
    <apex:pageBlock id="thePageBlock" >
        <apex:pageBlockSection title="test" columns="1">
        <apex:form >
      
        <apex:outputfield value="{!Test_Service_Item__c.id}"/>
        
        <apex:inputfield value="{!Test_Service_Item__c.Quantity__c}"  />
        <apex:inputfield value="{!Test_Service_Item__c.Reference_Standard_Link__c}" />    
        <apex:commandButton action="{!save}" value="save"/>     
        
         </apex:form>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

The fields are blank and if i try input information and click save i am getting the following error. "Error:
Reference: Required fields are missing: [Reference]"


 
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?
Hi

I am having trouble with my VF page. I cant view related list until after i have clicked save. Is there any way i can view and edit the fields on the related lists before i click save?

<apex:page StandardController="opportunity"   >
<apex:pageMessages ></apex:pageMessages>
<b> Hello {!$User.FirstName}</b>

<apex:form >

<apex:pageBlock >
<apex:pageblocksection title="Fields for Quote" columns="2">
<apex:inputfield Value="{!opportunity.ownerid}"/>
<apex:inputfield Value="{!opportunity.name}"/>
<apex:inputfield Value="{!opportunity.Enquiry_Number__c}"/>

</apex:pageblocksection>
<apex:commandButton action="{!save}" value="save" />  
    </apex:pageBlock>

</apex:form>
  <apex:relatedList list="Reference__r"/>
</apex:page>
Hi,

I am trying to create a simple userface that will allow me to update fields on a custom object which will then update the database.

I am new to VF so any help would be appreciated.

This is what i have so far.
Apex class:
public with sharing class Declan3 {

    public Declan3(ApexPages.StandardController controller) {

    }


   


   public class reference {
        public Reference__c ref {get; set;}
        public List<Test_Service_Item__c> items { get; set; }
        
        public reference(Reference__c ref, List<Test_Service_Item__c> items) {
            this.ref = ref;
            this.items = items;
        }
    }

}

And VF Page:
<apex:page standardController="Test_Service_Item__c" extensions="Declan3" >
<apex:pageMessages ></apex:pageMessages>
    <apex:pageBlock id="thePageBlock" >
        <apex:pageBlockSection title="test" columns="1">
        <apex:form >
      
        <apex:outputfield value="{!Test_Service_Item__c.id}"/>
        
        <apex:inputfield value="{!Test_Service_Item__c.Quantity__c}"  />
        <apex:inputfield value="{!Test_Service_Item__c.Reference_Standard_Link__c}" />    
        <apex:commandButton action="{!save}" value="save"/>     
        
         </apex:form>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>

The fields are blank and if i try input information and click save i am getting the following error. "Error:
Reference: Required fields are missing: [Reference]"


 
hi all,

I urgently need to edit/delete a post made by me on this discussion forum...But its not allowing me to do so and pops up
saying that 'you cant delete this question as others are interested in it'.
There are no likes and no comments on it still i am unable  to delete it
Any help would be highly appreciated

Its very urgent,
Thanks,