You need to sign in to do that
Don't have an account?
sairam nama
help me in this
i've vf page where a pick list values as today,lastweek,lastmonth,next day etc and a field interview_date__c. i want to display records where interview date__c=today(or)lastweek. can any one solve this dinamically
my code is
counselor=[Select Name,Course_Fee__c,Feedback__c,Lead_Enquired_On__c,
Lead_Mobile_Number__c,Lead_Name__c,Status__c,Trainer_name__c,
Counselling_date__c from Counselling__c
where Counselling_date__c=:today];
it's working
but i want this as dinamic as
i take a string date and i want to give it as Counselling_date__c=:date....
help me in this case
thanks in advance
my code is
counselor=[Select Name,Course_Fee__c,Feedback__c,Lead_Enquired_On__c,
Lead_Mobile_Number__c,Lead_Name__c,Status__c,Trainer_name__c,
Counselling_date__c from Counselling__c
where Counselling_date__c=:today];
it's working
but i want this as dinamic as
i take a string date and i want to give it as Counselling_date__c=:date....
help me in this case
thanks in advance
In this case you need to write SOQL query in String and for excute query use List<sObject> sobjList = Database.query(string);
I created sample code for you. You can use this for your reference:
Hope this will help you.
Please let me know if it helped or you need any more assistance. Please mark this is as the solution if it solved your purpose.
Thanks,
Sohan Raj Gupta