I have a managed package installed in my org. It has a custom object as "gmod__Opportunity_Forecast__c ". It has a look up relation with "product" object and api name is give as "gmod__Product__c" and master-detail relationship with "Opportunity" object and api name is give as "gmod__Opportunity__c". It has a Visualforce page created on "Opportunity Object". So whenever record is created on opportunity object with product details, the product details gets appeared in the Visualforce page.
I have created a Custom Visual force page on "Quote"Object with the related objects such as Quoteline item, competitor etc.
Now the requirement is in custom visual force page, I would like to get the "gmod__Opportunity_Forecast__c" details displayed. So written a wrapper class.
The issue is when i query on gmod__Opportunity_Forecast__c, it doesn't retrieve the correct related record from the product.Instead it displays all the records of gmod__Opportunity_Forecast__c.
The product details which got displayed on "Opportunity" object visualforce page, the same product details should get displayed on custom visual force page on "Quote "object in gmod__Opportunity_Forecast__c section.
Any Suggestion PLZ.
Query Used is different ways but still displays all the gmod__Opportunity_Forecast__c records instead of related record.
First Query Used :retrives all the 40 records of gmod__Opportunity_Forecast__c
SELECT Id, gmod__Opportunity_Forecast__c.name,gmod__product__r.Name from gmod__Opportunity_Forecast__c where gmod__product__c!=null