• dkraun
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies
I am just getting into dynamic SOQL and have run into a problem with API access to the User table.  I am trying to select the field MyObject.CreatedBy.Name, but am getting the error that User is not accessible due to package restrictions.  This makes sense with an unrestricted pacakge, so I went to the package API restrictions to require access to the User table, but that table is not an option for package restrictions.  Any ideas?

-David
  • November 16, 2008
  • Like
  • 0
Is the plan to ever allow multiple managed packages in a development org?  It just seems strange that a new org (with a new, unique email address) is required every time a new app is developed.
Hi,

I need to add the field history from a custom object to a page, but am running into a lot of problems.  The related list displays with no problem when viewing the custom object through the salesforce custom object tab, but on my custom page it says that Histories is not a valid child relationship name for the entity.  I have checked the child relationships of my custom object and the History object that salesforce generates automatically when "Track Field History" is checked is listed with the name "Histories" as the child relationship name.  I have tried this on multiple custom objects (making them as simple as possible) and a relatedList on Histories just doesn't seem to be possible.  Has anyone been able to make this work?

-David
I am wondering if there is a way to simulate the functionality of <body onload=''> in a visualforce page.  I have tried setting window.onload to my javascript function, but this gets called before the page actually loads.  It seems like this is due to multiple documents being present in a visualforce page.  I also tried turning off development mode to remove the additional iframe, but there are still multiple documents in the page.  Any ideas?
I am working with custom pages that display a lot of inputFields like:

<apex:pageBlockSection>
      <apex:inputField value="myobj.x">
      <apex:inputField value="myobj.y">
      <apex:inputField value="myobj.z">
</apex:pageBlockSection>

What I've noticed is that when I change myobj in the controller, rerendering the pageBlockSection actually takes the values in the inputFields and overwrites my controller object with those values.  A quick fix for this is just rerendering each inputField individually, but is this really the way rerendering is intended to work?  Just a thought for future versions.
Hi,

I'm just curious if there are known issues with rerendering a pageBlockSection.  I am dealing with a section that has inputFields like:

<apex:pageBlockSection id="contactInfoSection" title="Contact Details">
                <apex:inputField id="contactFirstName" value="{!contact.FirstName__c}"/>
                <apex:inputField id="contactLastName" value="{!contact.LastName__c}"/>
                <apex:inputField id="contactEmail" value="{!contact.Email__c}"/>
                <apex:inputField id="contactPhoneNumber" value="{!contact.PhoneNumber__c}"/>
                <apex:inputField id="contactCompany" value="{!contact.Company__c}"/>
                <apex:inputField id="contactType" value="{!contact.Type__c}"/>
</apex:pageBlockSection>

Essentially, I have functionality to let the user choose the contact to work with, which updates the contact variable in my controller and then I rerender this section.  For some reason, using rerender="contactInfoSection" does not work (in fact, it seems to erase the changes I made in my controller as far as I can tell), but if I simply change it to rerender="contactFirstName, contactLastName, ..." then everything is fine, and all of the inputFields are rerendered correctly.  This is not a big issue since there is an easy workaround, but I am very confused as to why I can't just rerender the section.
Hello,

I've developed an application to implement SSO using SAML assertion. Earlier i used to post the startURL and logoutURL along-with the SAML assertion to the salesforce login page and after validation of the assertion I was redirected to the start page I had posted. Also when I logged out I was redirected to the logout URL I had posted while logging in. But it has stopped working for me now. Now even though I post these URL's I'm still redirected to the salesforce default start page and logout page. This feature is working for SSO using delegated authentication. Can someone please clarify if there has been changes with respect to support for these features for  SAML assertion based SSO.

Thanks
Nishant


Hi,

I need to add the field history from a custom object to a page, but am running into a lot of problems.  The related list displays with no problem when viewing the custom object through the salesforce custom object tab, but on my custom page it says that Histories is not a valid child relationship name for the entity.  I have checked the child relationships of my custom object and the History object that salesforce generates automatically when "Track Field History" is checked is listed with the name "Histories" as the child relationship name.  I have tried this on multiple custom objects (making them as simple as possible) and a relatedList on Histories just doesn't seem to be possible.  Has anyone been able to make this work?

-David

Hi,

    I am not able  to send the List of Objects to javascript to generate the bar or pie chart.

    Here is the scenario. There is an apex controller class 'Agents' in that there is a method gettopNAgents() which returns List of Objects(Agents) .

 I am calling this method  in <apex:Pageblocktable  id="table" value="{!topnAgents}" var="com">......</a..:pbt> component  to display all the agents with their respective commission. The data is getting displayed in the table properly but I am not able to send the List to the javascript. I tried calling onRowClick event on pageBlocktable component and oncomplete event on commandbutton component both were not working. 

In javascript I have used var m = document.getElementById(" {!$component.table}"),  var e = "{!topnAgents}"  both were not working. Can any one help me in this.

 

 

I am having trouble with one related list.
 
Code:
<apex:relatedlist list="affiliateClients__r" rendered="{!isAffiliate}"/>
<apex:relatedlist list="AffiliateOpportunities__r" rendered="{!isAffiliate}"/>
<apex:relatedlist list="contacts"/>
<apex:relatedlist list="clipfactorypo__r"/>
<apex:relatedlist list="openactivities"/>
<apex:relatedlist list="activityhistories"/>
<apex:relatedlist list="opportunities" rendered="{!isAffiliate}"/>

 The clipfactorypo__r related list gives an error.  I can't spot what I am doing wrong here.  I have successfully got the other related lists working, and I don't see what is so special about this one.  These are all child relationships off the Account object.  I have checked the name using apex explorer by looking in the Child Relationships branch of the Account object.
The only difference between AffiliateOpportunities__r and clipfactorypo__r as far as I can see is that the first is a related list to a standard object, and the second is to a custom object.
I have two custom objects, Setting and Customisation (British spelling). Customisation has a Master-Detail(Setting) field and
Child Relationship Name is Customisations. However
 
Code:
<apex:relatedList list="Customisations" title="Profiles" subject="{!SettingId}"/>

 Causes an error: 'Customisations' is not a valid child rationship name for entity Setting. The name right and I think I have the objects setup right. SettingId is the Id of the setting record I am using to store the information and the customisation record is related to the correct one. Seems to be moaning about the right object so I doubt its a custom controller problem.