Нужна помощь в создании полей date, button visual page

Нужна помощь в создании полей visual page


Вот что я сделал
%D0%91%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B91

Прикрепи код своей visualforce page и ее контроллера, чтобы разобраться что ты хочешь, а так почитай про apex:commandButton в своей visualforce для кнопки

Вот page

<apex:page controller="AppointmentsViewController">
    
    <style>
        body .bPageBlock .pbBody .alfa .pbSubheader{
            background-color:#FF000000;
        }
        body .bPageBlock .pbBody .alfa .pbSubheader h3{
            color:#000;
        }
    </style>
    
    

    
    
    <apex:form >
        <apex:pageBlock >
      
       Select a doctor
            <apex:selectList size="1">
                <apex:selectOptions value="{!doctorSelectOptionList}"/>
                
            </apex:selectList>

        </apex:pageBlock>
            
    </apex:form>    
    
    
    
   <apex:form >Working_Hours_Start
        <apex:pageBlock >
            
      <apex:outputText value="{0,date,yyyy/MM/dd}">
       <apex:param value="{!TODAY()}" />
</apex:outputText>
        </apex:pageBlock>
    </apex:form>  
    
    <apex:form >Working_Hours_End
        <apex:pageBlock >
            
      <apex:outputText value="{0,date,yyyy/MM/dd}">
       <apex:param value="{!TODAY()}" />
</apex:outputText>
        </apex:pageBlock>
    </apex:form>  
    
    <apex:form >
        <apex:pageBlock >
      
       Select a patient
            <apex:selectList size="1">
                <apex:selectOptions value="{!patientSelectOptionList}"/>
                
            </apex:selectList>
            
            
            
        </apex:pageBlock>

    </apex:form>    
    
       <apex:form >
        <apex:pageBlock >
            Appointment date
      <apex:inputField value="{!oppty.CloseDate}" style="width: 160px" />
        </apex:pageBlock>
    </apex:form>    
    
     <apex:form >
        <apex:pageBlock >
    <apex:pageBlockButtons >Add New Doctor
            <apex:commandButton style="width: 80px; height: 20px; padding-right: 50px"/>
            </apex:pageBlockButtons>
            </apex:pageBlock>
    </apex:form> 
    
    <apex:form >
        <apex:pageBlock >
            
      <apex:inputText style="width: 80px">Duration in minutes 
            </apex:inputText>
        </apex:pageBlock>
    </apex:form>   
    
    <apex:form >
        <apex:pageBlock >

            <apex:pageBlockSection title="Appointments Table">
            
                <apex:pageBlockTable value="{!tableList}" var="item">
                    <apex:column value="{!item.Name}"/>
                    <apex:column value="{!item.Doctor__c}"/>
                    <apex:column value="{!item.Patient__c}"/>
                    <apex:column value="{!item.Appointment_date__c}"/>
                    <apex:column value="{!item.Duration_in_minutes__c}"/>
                </apex:pageBlockTable>
                
            </apex:pageBlockSection>
            
        </apex:pageBlock>
    </apex:form>
    
    
    
</apex:page>

Вот controller

public class AppointmentsViewController {

    public String myText {get;set;}
    public List<Doctor__c> doctorList {get;set;}
    public List<SelectOption> doctorSelectOptionList {get;set;}
    public List<SelectOption> workingStartSelectOptionList {get;set;}
    public List<Patient__c> patientList {get;set;}
    public List<SelectOption> patientSelectOptionList {get;set;}
    public List<Appointment__c> tableList {get;set;}  
	public List<Doctor__c> doctorsList {get;set;}
    public List<SelectOption> doctorsSelectOptionList {get;set;}
    public Opportunity oppty {get; set;}
  
    
    
    
    public AppointmentsViewController () {
        myText = 'It is my test text';
        doctorList = [SELECT id, Name FROM Doctor__c ORDER BY Name ASC];       
        patientList = [SELECT id, Name FROM Patient__c ORDER BY Name ASC];
        doctorsList = [SELECT id, Name FROM Doctor__c ORDER BY Name ASC]; 
        oppty = new Opportunity();
 	 	doctorSelectOptionList = new List<SelectOption>();
        for (Doctor__c item: doctorList) {
            doctorSelectOptionList.add(new SelectOption(item.Id, item.Name));
        }

 	 	patientSelectOptionList = new List<SelectOption>();
        for (Patient__c item: patientList) {
            patientSelectOptionList.add(new SelectOption(item.Id, item.Name));
        }
         doctorsSelectOptionList = new List<SelectOption>();
        for (Doctor__c item: doctorsList) {
            doctorsSelectOptionList.add(new SelectOption(item.Id, item.Name));
        }
                
 	 	getTable();
        
        

}

    public void getTable () {
        tableList = [SELECT id, Name, Doctor__c, Patient__c, Appointment_date__c, Duration_in_minutes__c
                    FROM Appointment__c
                    ];
    }
    


}

Как по итогу реализовали поля?Как вывели время врача?