function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GreenhornGreenhorn 

Dynamic binding to input field

 

Hi,

I am trying to create my own filters on objects like opportunity, account, etc. to show records as a filtered list by the criteria selected by the user.

 

                                                            1.Fields    -     2.Operator    -     3.Value

 

Purpose is to show all fields of an object in a first drop down. Middle drop down shows the operators. And third drop down shows the value (as shown above).

This is exactly same as the filter conditions in reports.

  • If the value in first drop down is of type pick list, all corresponding values in pick list are displayed in third drop down i.e. Value
  • If the value in first drop down is of type Boolean, true and false should be displayed.

How to dynamically bind these values to third input field (Value) so that appropriate popup/suggestion is available for the user(e.g. datepicker if the selected field is of type date )?

 

Thanks.

 

Hengky IlawanHengky Ilawan

Hi,

 

If you use <apex:inputField>, the corresponding type of form element will be automatically displayed.

 

Regards,

Hengky