• SkyPlanner
  • NEWBIE
  • 25 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies

We an after-insert/after-update trigger that works fine when new Opportunity Team Members are added through a custom Visualforce Page or when they are edited directly in the Opportunity Team related list of the Opportunity. Now, the problem is that the trigger does not get executed when a new Opportunity Team Member is added using the standard functionlity of click the "Edit All" button of the Opportunity Team related list.

 

We have check the logs and actually no degub log gets registered. Is very wierd that the after-insert trigger is not fired using the standard functionality executed by this page

 

/ui/opportunity/OpportunitySalesTeamEdit/e?oppid=<opportunity id>

 

Any advise on this?

 

Thanks in advance.

I need to get the ListVIews for a particular object, then get all the fields that are contained in those lists so I can re-create those tables(list views) in a visual force page.

The same way you can get all the fields for an specific object using the metadata, I need to do it but for the list views related with an specific object.

 

I had found some info about the ListVIew Metadata but not a way to retrieve this info via apex code.

Sample code or any information will be highly appreciated.

 

Thanks in advance.

 

SkyPlanner Team

Hi all,

 

We are having a problem trying to list some records of a custom object. We have set a Site in a developer organization and also assigned the required permission to objects and fields in "Public Accesss Settings" for the object we need to list.  The visualforce page does list the records but with all the fields in blank. We did the same in a sandbox and everithing worked as expected. The only diference between the two approaches is the type of license being assigned to the guest user; in the developer organization es "Guest" and in the sandbox is "Guest User License".

 

Has someone run into this problem before? Is the type of license the one causing the problem? What can we do in order to develope the Site in the developer organization?

 

Thanks you very much.

 

SkyPlanner Team

I have a page that I've set for the site home page. The controller is querying a custom object (Interest Selections) to display a list of check boxes.

I've set the object access to read-only for the web site user profile (and even tested with full access writes). But the page fails to load when reading from this object.

VF Page:

 

<apex:page Controller="tempELeadImportController" id="ELeadImportPage" showheader="false" sidebar="false" >
 <apex:pageBlock title="Import Detail"  > 
  <apex:OutputText value="{!NewProspectStatus}" /> 
 </apex:pageBlock> 
 <apex:form id="ELeadImportForm" > 
   <!-- other items here that work --> 
   <apex:pageBlockSection showHeader="true" title="I'm interested in" columns="1" collapsible="false">
 
     <apex:selectCheckboxes id="Components" title="Components" value="{!SelectedComponents}" > 
     <apex:selectOptions value="{!ComponentSelections}"/> 
     </apex:selectCheckboxes> 

   </apex:pageBlockSection> 
  </apex:pageBlock> 
 </apex:form> 
</apex:page>

 

 

Apex controller where "ComponentSelections are being created:

global List<SelectOption> ComponentSelections
{
 get
 {
  set<string> componentNames = new set<string>();
    
    // Query the interest selection table to find all the components that are in there. - Note if there are more than 10k records this will break.
    AggregateResult[] validComponents = [SELECT i360__Component__c 
                                        FROM i360__Interest_Selection__c 
                                        WHERE i360__Component__c != null GROUP BY i360__Component__c];
    system.Debug(validComponents);
    for(AggregateResult ar : validComponents)
    {
        string component = (string) ar.get('i360__Component__c');
        componentNames.add(component);
    }
    List<SelectOption> Components = new List<SelectOption>();
    for (string src : componentNames)
    {
        SelectOption option = new SelectOption(src, src);
        Components.Add(option);
    }
    system.Debug(Components);
    return Components;       
  }
}

 

 Even when the web site user profile has FULL access to the "Interest Selections" object, the user cannot read those values. If I change the controller to "without sharing" [WHICH I KNOW IS NOT THE CORRECT FIX] then everything works. Therefore, there is something else stopping the access to these values.

 

 

Hi all,

 

We are having a problem trying to list some records of a custom object. We have set a Site in a developer organization and also assigned the required permission to objects and fields in "Public Accesss Settings" for the object we need to list.  The visualforce page does list the records but with all the fields in blank. We did the same in a sandbox and everithing worked as expected. The only diference between the two approaches is the type of license being assigned to the guest user; in the developer organization es "Guest" and in the sandbox is "Guest User License".

 

Has someone run into this problem before? Is the type of license the one causing the problem? What can we do in order to develope the Site in the developer organization?

 

Thanks you very much.

 

SkyPlanner Team

I am 99.9% sure I have set access control correctly. The page displays, but for some reason it will not display/render an <apex:inputField>. Nothing shows up at all. Doesn't throw an error, it just seems to be ignoring any and all <apex:inputField>'s. Any ideas? This is all under a testing dev org. Thank you!

  • July 09, 2010
  • Like
  • 0