You need to sign in to do that
Don't have an account?
Shekar S 4
Custom Search button to fetch data in VF page
Hi Devs,
I have a requirement that i need a search button in my visualforcepage, and i have two Course master(Parent) object has Master detail relation ship with Training deal object(Child).
If i search Course_Name__c(Parent field) in search button it needs to display all the deals done in training_deal__c(Child) object.
Fileds in Course_Master__c object : Course_Name__c (Parent)
fields in Training_Deal__c object : Course_Master__c (MDR), Deal_Risk_Status__c,Discount__c,Email_of_student__c i want to show these fields if i search for Course_Name__c.
please help me with this and thanks in advance.
I have a requirement that i need a search button in my visualforcepage, and i have two Course master(Parent) object has Master detail relation ship with Training deal object(Child).
If i search Course_Name__c(Parent field) in search button it needs to display all the deals done in training_deal__c(Child) object.
Fileds in Course_Master__c object : Course_Name__c (Parent)
fields in Training_Deal__c object : Course_Master__c (MDR), Deal_Risk_Status__c,Discount__c,Email_of_student__c i want to show these fields if i search for Course_Name__c.
please help me with this and thanks in advance.
Check the below apex class and Visualforce page code to search all the deals done records from the training_deal__c object by searching the course name of the Course_master__c object.
Visualforce Page: Apex Class Code:
The above code also shows the error message "No Records Found" if there are no records of deals done for that particular course.
Please mark it as the Best answer if you find it useful.
Regards,
Sanjay Vinayak T