Can I dynamically change the objects in the where cause based on the other objects values.
Example:
Where clause
Type : Order / Sale ( type values )
and
Order Date between ---- and
Sale Date between ----- and
In the above, Iets say we have total 3 objects Type, Order Date , Sale Date. So if the user picks
Type: Order then it should pick Order Date as next object and ignore Sale Date.
and similarly if the user picks
Type: Sale then it should pick Sale Date as next object and ignore Order Date.