• yoganand19
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 3
    Replies
Hi all,

I've spent the majority of my day trying to find a solution for this issue and I'm having no luck. I'm still a bit of a beginner so bare with me.

I have a VisualForce page on a Communities site that is designed to list the standard Attachment object records from the community $Users related contact. This page is intended to list the Description of the attachment as well as a link to download it. I have a supporting controller that runs a Select query to retrieve the contacts attachments.

Here is a snippet from the page:
<apex:repeat var="doc" value="{!candidate.Attachments}">
                        <li>
                            <h4><apex:outputText value="{!doc.Description}"/></h4>
                            <div class="doc-h">
                            <apex:outputLink value="{!URLFOR($Action.Attachment.Download, doc.Id)}" target="_blank">
                                &nbsp;
                            </apex:outputLink>
                            </div>
                        </li>
                </apex:repeat>

This renders exactly how I would like it to render, and correctly displays the description and the link. However, if I browse to one of many of the links generated by {!URLFOR($Action.Attachment.Download, doc.Id)}, I receive an "Insufficient Privileges" error. I've tried hardcoding the URL and ID and receive the same error.

It generates a link like this: {community site}/servlet/servlet.FileDownload?retURL=%2Fcandidates%2Fapex%2FSupportingDocuments&file=00PN0000000ZZUBMA4

I would have expected that this is profile related, but it doesn't seem to be the case. This is what I've attempted to do to resolve this issue so far:
* Ensure that the community user's profiles has full RCED access to the Account and Contact objects and their fields.
* Ensured that the Site Guest User profile has full RCED access to the Account and Contact objects and their fields.
* Confirmed that share settings and OWD were set to public read/write for the Attachment objects parent (so Account and Contact).
* Read somewhere to try using the 15 digit ID rather than the 18 Digit, to no avail.
* Tried using traditional <a href="">Links</a> instead of apex:OutputLink.

Funnily enough, on the same page with the same user,  I have functionality that allows the user to upload an attachment (which creates an Attachment record against the sites related contact) and this works perfectly.

I've seen a few similar posts such as  here (https://developer.salesforce.com/forums?id=906F000000099hpIAA)  and here (https://developer.salesforce.com/forums?id=906F00000008y5hIAA) but I'm still having no luck. If anybody has experienced something like this before and knows of a possible solution (even if it seems far fetched) then I'd love to hear it!

Cheers,

Dion

All,

 

I need to make a bar chart that has data grouped within each series, so that each "bar" in the chart is combination of multiple data points.  I am able to do this using Google Charts, but providing the information with a clean legend is problematic, so I am investigating the use of Google Visualizations.

 

An example of the type of the Google Chart, without legends for the subdata making up the bars:

 

I stumbled upon the codeshare library for Google Visualizations (http://wiki.developerforce.com/index.php/Google_Visualizations).

 

I was wondering if anyone had used the ColumnChart component and related code to create this type of Chart?  It looks possible, just wanted a quick sanity check before I invest in a lot of time on it.

 

 

Thanks,

 

David

Hey all

 

I'm try to build an interface that is dual purpose record viewer / editor. I'm running into the problem of not being able to go to the next page if some records aren't passing validation (though they are not edited). The data pre-dates the validation rules, so when you view them, you can't move to the next page.

 

Does the setcontroller automatically try to save records when you call next() ?