-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
7Questions
-
10Replies
Weird Behavior - Getting and Setting Query String Parameters on a Single Page
<apex:page standardController="Account">According to the tutorial, "
<apex:pageBlock title="Hello {!$User.FirstName}!">
You are displaying contacts from the {!account.name} account.
Click a contact's name to view his or her details.
</apex:pageBlock>
<apex:pageBlock title="Contacts">
<apex:form>
<apex:dataTable value="{!account.Contacts}" var="contact" cellPadding="4" border="1">
<apex:column>
<apex:commandLink>
{!contact.Name}
<apex:param name="cid" value="{!contact.id}"/>
</apex:commandLink>
</apex:column>
</apex:dataTable>
</apex:form>
</apex:pageBlock>
<apex:detail subject="{!$CurrentPage.parameters.cid}" relatedList="false" title="false"/>
</apex:page>
After saving this markup, refresh your browser with the id query string parameter but without the cid parameter in the URL. Initially the contact detail page is not rendered, but when you click a contact name the page renders the appropriate detail view."
However, refreshing the page using just the id query string parameter does render the Contact Detail page.
Also, in this case I have two contacts in the form section. Clicking on the other contact still renders the page with the first contact. I've copied this code into my page verbatim, and it's not working as advertised. I sent a message to the Developer's Guide writers with no response. Am I copying and pasting the code incorrectly, or is there a glitch in the example??
Thanks in advance
-
- VeMan1542
- June 19, 2008
- Like
- 0
- Continue reading or reply
ANT deploy problems
<project name="LeadCleaner2" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<!-- Deploy to server -->
<target name="deploy">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="12.0"
baseDir=".">
<runTests>
<class>LeadCleaner2</class>
</runTests>
</sf:compileAndTest>
</target>
<!-- Cleans up above. (Deletes can be combined with compiles.) -->
<target name="delete">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="12.0">
<deleteClass>LeadCleaner2</deleteClass>
<deleteTrigger>LeadCleaner2</deleteTrigger>
</sf:compileAndTest>
</target>
</project>
What am I doing wrong, and how is it the LeadCleaner project in the build.xml file doesn't reference the LeadCleaner2 class and trigger?
-
- VeMan1542
- May 28, 2008
- Like
- 0
- Continue reading or reply
Any kind of Tool for Converting 15-character IDs into 18 character IDs???
-
- VeMan1542
- March 27, 2008
- Like
- 0
- Continue reading or reply
Accessing Opportunity Contact Role information using APEX (for Triggers)
for(Opportunity newOpp : Trigger.New){
if (newOpp.RecordTypeID == '012500000009EaPAAU'){
if((newOpp.Probability > 20) && (newOpp.ContactID == null)) {
newOpp.StageName = 'Research';}}
if((newOpp.Probability > 20) && (newOpp.ContactID == null)) {
newOpp.StageName = 'Qualified Lead';}}
for(Opportunity oldOpp : Trigger.Old){
if (oldOpp.RecordTypeID == '012500000009EaPAAU'){
if((oldOpp.Probability > 20) && (oldOpp.ContactID == null)) {
oldOpp.StageName = 'Research';}}
if((oldOpp.Probability > 20) && (oldOpp.ContactID == null)) {
oldOpp.StageName = 'Qualified Lead';}}
}
}
-
- VeMan1542
- January 04, 2008
- Like
- 0
- Continue reading or reply
Trigger on Web2Case-sourced Cases for checking and modifying the ContactID
Case.ContactID = "";
}
}
-
- VeMan1542
- December 19, 2007
- Like
- 0
- Continue reading or reply
Error Installing the APEX Toolkit for Eclipse
I was able to download an update for Eclipse that contained this plugin, and added it from the zip file in my download folder to the plugins folder where Eclipse has been installed, but it's still not reading it, even after restarting Eclipse.
The Toolkit is unsupported by Salesforce, so I may be SOL, but any help from you folks would be great.
By the way, I only have access to the Callisto site, not Europa (or at least it doesn't appear as a selection).
Thanks
VM
-
- VeMan1542
- October 26, 2007
- Like
- 0
- Continue reading or reply
Creating Renewal Opportunities from Assets
I was wondering if there is an easy way to create a "Create Renewal" button on the asset that would put all of the relevant information into the appropriate fields in a new Opportunity record, as opposed to extracting the Assets to Excel and inserting the information as new Renewal Opportunities?
Thanks
-
- VeMan1542
- October 25, 2007
- Like
- 0
- Continue reading or reply
ANT deploy problems
<project name="LeadCleaner2" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<!-- Deploy to server -->
<target name="deploy">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="12.0"
baseDir=".">
<runTests>
<class>LeadCleaner2</class>
</runTests>
</sf:compileAndTest>
</target>
<!-- Cleans up above. (Deletes can be combined with compiles.) -->
<target name="delete">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="12.0">
<deleteClass>LeadCleaner2</deleteClass>
<deleteTrigger>LeadCleaner2</deleteTrigger>
</sf:compileAndTest>
</target>
</project>
What am I doing wrong, and how is it the LeadCleaner project in the build.xml file doesn't reference the LeadCleaner2 class and trigger?
- VeMan1542
- May 28, 2008
- Like
- 0
- Continue reading or reply
Any kind of Tool for Converting 15-character IDs into 18 character IDs???
- VeMan1542
- March 27, 2008
- Like
- 0
- Continue reading or reply
Accessing Opportunity Contact Role information using APEX (for Triggers)
for(Opportunity newOpp : Trigger.New){
if (newOpp.RecordTypeID == '012500000009EaPAAU'){
if((newOpp.Probability > 20) && (newOpp.ContactID == null)) {
newOpp.StageName = 'Research';}}
if((newOpp.Probability > 20) && (newOpp.ContactID == null)) {
newOpp.StageName = 'Qualified Lead';}}
for(Opportunity oldOpp : Trigger.Old){
if (oldOpp.RecordTypeID == '012500000009EaPAAU'){
if((oldOpp.Probability > 20) && (oldOpp.ContactID == null)) {
oldOpp.StageName = 'Research';}}
if((oldOpp.Probability > 20) && (oldOpp.ContactID == null)) {
oldOpp.StageName = 'Qualified Lead';}}
}
}
- VeMan1542
- January 04, 2008
- Like
- 0
- Continue reading or reply
Trigger on Web2Case-sourced Cases for checking and modifying the ContactID
Case.ContactID = "";
}
}
- VeMan1542
- December 19, 2007
- Like
- 0
- Continue reading or reply
Creating Email Template and want to include contact - need help
- Lady_Pirate
- November 13, 2007
- Like
- 0
- Continue reading or reply
Error Installing the APEX Toolkit for Eclipse
I was able to download an update for Eclipse that contained this plugin, and added it from the zip file in my download folder to the plugins folder where Eclipse has been installed, but it's still not reading it, even after restarting Eclipse.
The Toolkit is unsupported by Salesforce, so I may be SOL, but any help from you folks would be great.
By the way, I only have access to the Callisto site, not Europa (or at least it doesn't appear as a selection).
Thanks
VM
- VeMan1542
- October 26, 2007
- Like
- 0
- Continue reading or reply
Creating Renewal Opportunities from Assets
I was wondering if there is an easy way to create a "Create Renewal" button on the asset that would put all of the relevant information into the appropriate fields in a new Opportunity record, as opposed to extracting the Assets to Excel and inserting the information as new Renewal Opportunities?
Thanks
- VeMan1542
- October 25, 2007
- Like
- 0
- Continue reading or reply