-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
6Questions
-
6Replies
API access to User table
-David
- dkraun
- November 16, 2008
- Like
- 0
- Continue reading or reply
multiple managed packages in a development org?
- dkraun
- July 23, 2008
- Like
- 0
- Continue reading or reply
How to add Histories relatedList to a custom visualforce page
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
- dkraun
- July 15, 2008
- Like
- 0
- Continue reading or reply
running javascript when the body is done loading
- dkraun
- July 09, 2008
- Like
- 0
- Continue reading or reply
rerendering inputField components by rerendering the parent object does not work
<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.
- dkraun
- July 07, 2008
- Like
- 0
- Continue reading or reply
problem with rerendering a pageBlockSection
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.
- dkraun
- June 29, 2008
- Like
- 0
- Continue reading or reply
SAML SSO startURL and logoutURL not working
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
- nishant
- October 14, 2008
- Like
- 0
- Continue reading or reply
How to add Histories relatedList to a custom visualforce page
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
- dkraun
- July 15, 2008
- Like
- 0
- Continue reading or reply
Not able to pass the list of objects to javascript from the controller.
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.
- The Knight
- July 11, 2008
- Like
- 0
- Continue reading or reply
Visualforce relatedlist error - not a valid child relationship name
<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.
- GerhardNewman2
- July 01, 2008
- Like
- 0
- Continue reading or reply
relatedList of custom objects
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. |
- Luke@PCA
- December 17, 2007
- Like
- 0
- Continue reading or reply