You need to sign in to do that
Don't have an account?
Satya413
Display Case Records based on selected close Date in VF Page
Hi All,
I am trying to display the case records that are closed on a particular date in VF Page. My inputfield does not allow me to select the closed date. Below is my code. Any help is appreciated.
VF Page:
<apex:page controller="caseclosedetails" showHeader="false">
<apex:form >
<apex:pageblock >
<apex:inputField value="{!ca.closeddate}" />
<apex:commandButton value="Submit" action="{!getdata}"/>
</apex:pageblock>
</apex:form>
</apex:page>
Controller:
public class caseclosedetails {
public case ca {get; set;}
public caseclosedetails() {
case c = new case();
}
public void getdata(){
}
}
Thank you,
Satya
I am trying to display the case records that are closed on a particular date in VF Page. My inputfield does not allow me to select the closed date. Below is my code. Any help is appreciated.
VF Page:
<apex:page controller="caseclosedetails" showHeader="false">
<apex:form >
<apex:pageblock >
<apex:inputField value="{!ca.closeddate}" />
<apex:commandButton value="Submit" action="{!getdata}"/>
</apex:pageblock>
</apex:form>
</apex:page>
Controller:
public class caseclosedetails {
public case ca {get; set;}
public caseclosedetails() {
case c = new case();
}
public void getdata(){
}
}
Thank you,
Satya
Do one thing create a custom field with dataType Date and time and use that in input field will allow you to select the date .
Let me know if it helps .
Thanks for your reply. I have created a custom object 'closedate__c' and it worked. However, it is displaying the current date as default. Below is the screenshot. Think I am half way through.
Thank you,
Satya