1

My assumption is that <apex:inputfield> always requires SObject Field.

In the scenario where I am showing a list of SObject records {Record 1, Record 2,...Record N} using StandardSetController then how can I display a UI control (Eg: DatePicker) without it being bound to an underlying SObject field ?

I am assuming that I cannot use dummy fields in this scenario because it is a standardsetcontroller and always retrieves/displays a list of records.

Hope I am clear.

If not plz let know I will elaborate.

1 Answer 1

1
  1. You could add an extension to display the dummy record of any sObject of your choosing that has a date field.

  2. You can use a library like jQuery UI or Bootstrap or similar to display a datepicker

2
  • For "1". Can you plz expand ?. I assume that you mean for me to retrieve any SObject date field from any SObject record ?. For "2" I am unfamiliar with jQuery so I assuming from what you have said that it would be possible to display a DatePicker control using jQuery and bind it to a controller property instead of a SObject field ..am I right ?
    – Varun
    Commented Oct 26, 2014 at 16:37
  • Yes and Yes....
    – Eric
    Commented Oct 26, 2014 at 17:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .