You need to sign in to do that
Don't have an account?

Opportunities without Opportunity Partner related records?
Hi,
I have been charged with creating a report that displays only opportunities that do not have opportunity partner related records; however, I do not see the Opportunity Partner related table as an option when creating custom report types and I do not see how custom report types allow you to create a type that returns only records in the parent that have no children?
Is there a way to do this in a simple report? If it is not then how can I create a SOQL that can do it? If I have a SOQL that can do it I can use it in code to populate a custom table then use that custom table in a report?
Any ideas?
Hi,
You can create a checkbox feild in the Opportunity and make it checked(with the help of Apex), if the Opportunity has partners.
Then you can run the report based on this checkbox ( your criteria will be checkbox is unchecked)
Hope this solves. If so, Please mark the solution as solved.
Thanks
All Answers
Hi,
You can create a checkbox feild in the Opportunity and make it checked(with the help of Apex), if the Opportunity has partners.
Then you can run the report based on this checkbox ( your criteria will be checkbox is unchecked)
Hope this solves. If so, Please mark the solution as solved.
Thanks
you can also use a partner opportunity report with a select criteria of partner = null and that should do the trick without apex....
Hi Quiquepr,
Your solution is not clear to me! Can you please elaborate on how you would use an Opportunity with Partner Repor type (Standard) to do this? Or do you mean create custom Report Type of Opportunity with or without Partner and use that in my report and set the partner to null? I believe I tried this months ago and the results were unexpected!
If you could give more detail on your approach I would be grateful.
The reporting engine doesn't support exception reports (currently) and thus the standard "Opportunities WITH partners" report can not be coerced into "Opportunities withOUT partners".
Here's a jump start on some Apex with a Visualforce page:
CONTROLLER:
PAGE:
This may be another great way to go; however, I tried the code including a critera to only show the last 365 days of opportunities and I received the following error message when trying to access the page.
Collection size 1,201 exceeds maximum size of 1,000.
Any ideas how to work around this limitation?
I wanted to say thank you for this solution. It is ironic that you sent it on 08/24/10 and I just put the solution that was previously suggested in to production that day. I never liked the solution of putting a custom checkbox on the opportunity and the process checking that field if partners do not exist for that opportunity because it modifies the record with my name (I am the job submitter) and the date too. I had to create another custom text field and combine the oringal last modified by person and date/time so we know who last changed the record from the screen.
Long story short, I am keeping the code you submitted for future use and as starter snippet; however, it would be nice to know how to get passed the limitation of 1200 rows. Like you haven't helped enough. LOL
You're welcome.
If you need to present users with this information in a usable manner, you'll need to present them with a paginated interface to the result set. Fortunately we have support for this with the StandardSetController class. You can read more about that in the Visualforce developer guide but to get you started I've carved out the following modified example:
CONTROLLER:
PAGE:
I leave it to you to add previous, page numbers, etc. :smileyhappy:
Hope that helps.
I appreciate the hints and the nudges but this grasshopper needs another nudge! :smileyvery-happy:
I am new to SFDC and steadily learning but VF pages are the newest ground.
This is what I have so far but I am thinking I need code behind those actions? Not how to get that going. I will keep looking but how is it looking so far?
Trying to teach you how to fish here, your username being "Eager-2-Learn" tells me you are up for it :smileywink:
I've changed the sample a bit to make things easier (and demonstrate better ways of doing a couple things). I leave the rest to you. My suggestion for where to start is to look at the documentation for the ApexPages.StandardSetController class in the Visualforce developer guide.
CONTROLLER:
PAGE:
I have it working but I am better that there is a better option at the footer than using the panelGrid? In addition, it would be a great if I could get the View combo box to appear at the header area so the user can view all opp, my opps, etc. Is this possible with Visual Force? I have not found anything in the header element that would do this!
I truly appreciate your help.
<apex:page controller="OpportunityWithoutPartners_controller" tabStyle="Opportunity" readonly="true">
it goes up to 10000 records on a page.