• bg_richard
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 9
    Replies

Have added custom buttons to my custom object list view and to a related list on the page layout for another object. All works fine.

 

However, when there are more than 5 items in the related list and the user can click the "Go to List" link no buttons appear on the list page. Can't be the first to get this problem, any suggestions ?

We intermittently get errors displayed in the following format when our VF pages are rendered 

 

"The element type "div" should be terminated by the matching end-tag "</div>". at line 39"

 

We thought this was as side effect of having development mode on for our DE but it happens with DE off and it's still happening after deploying to a Test Edition. We also see warnings for paragraph tags too but less frequently.

 

This can't be our code as it also happens on the Page Editor  and we don't use our own base HTML on pages where the warning occurs.

 

Surely someone else has had this ? 

Message Edited by bg_richard on 08-22-2009 09:03 AM

When our managed package is deployed to a customer org and we enable Debug for a user we are not seeing any of the System.Debug() output from statements in our managed package.

 

Looking at the Debug log for the user we see the following at the top of the trace:

 

*** Log filter in effect. Executing code from installed managed application (<package prefix>)

Anyone know how to get round this?

As discussed in Ideas (http://ideas.salesforce.com/article/show/69729) here's a solution we have used for clients to enable customisation of the Clone button on Opportunities. This can be used to selectively choose which fields to copy and set default values:

 

For full details and the code to clone opportunity Line Items please contact me directly. We will be re-writing this in VisualForce over the coming months to make it futureproof.

 

Steps to Implement - Admins only

1. Setup -> Customize -> Opportunity -> Buttons and Links

2. Create new custom button called Clone, behaviour is Execute Javascript, Display Type Detail Page Button.

3. Paste in the code below and edit to match your requirements.

4. Remember to add the new button to the Opportunity page layout(s) and hide the original Clone button.

4. Test!

 

// Copyright 2008 BrightGen Ltd - All Rights Reserved try{ {!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} // ** EDIT THIS QUERY TO LIST THE FIELDS YOU WANT TO COPY ** var result = sforce.connection.query("Select o.Type, o.StageName, o.Product_Type__c, o.Planned_Opportunity__c, o.MarketSector__c, o.CampaignId, o.Business_Unit__c, o.Amount, o.AccountId From Opportunity o WHERE o.Id = '{!Opportunity.Id}'"); var newOpp = result.getArray("records"); // Reset the Opp Id and reset fields to default values newOpp[0].Id = ''; newOpp[0].Name = "Clone {!Opportunity.Name}"; // ** EDIT THESE FIELDS TO SET DEFAULT ANY VALUES ** newOpp[0].StageName = "1. Prospecting"; newOpp[0].CloseDate = new Date(2099, 0, 1); var saveResult = sforce.connection.create(newOpp); if (saveResult[0].getBoolean("success")) { newOpp[0].id = saveResult[0].id; alert("Opportunity cloned without line items"); } else { alert("Failed to create clone: " + saveResult[0]); } // Refresh the page to display the new oppportunity window.location = newOpp[0].id; } catch (err) { alert (err.description ); }

 

 
Message Edited by bg_richard on 02-05-2009 07:11 AM

We're using multi-currency and I want to create a validation rule (and workflow) that is based on Opportunity Amount in the base currency of the Org, not the Opportunity Amount. On a report I can list the Total Order Value (Converted) but as this field is not visible in the Validation Rule page and the only way I can see to do this currently is to create a new field and populate from Apex using the appropriate currency record. This would need to be recalculated everytime the Opp is saved, which is too late w.r.t. Validation.

 

Has anyone else found a better way to get the Total Order Value Converted used on the Reports in a Validation or Worklfow Rule ?

We're building an application on the Force.Com Platform as a Service (i.e. we're an ISV) and are in debate as to whether the Contact object is worth using, or whether we should rely only on purely custom objects.
 
From my Data Modelling experience I say that if the Contact object is a superset of all the attributes of our 'Contractor' object, then we should use Contacts with a custom record type of Contractor .My development team say no, this is too bloated and it would be better for their web services calls to simply have a custom object instead. The same goes for our Company object in our logical data model.
 
What's the general opinion on this, does using the standard Contacts and Accounts objects have benefits over using completely custom objects ? Other than the limits on Custom Objects/Fields/Relationships why else would you re-use them  ?
 
Discuss.

We intermittently get errors displayed in the following format when our VF pages are rendered 

 

"The element type "div" should be terminated by the matching end-tag "</div>". at line 39"

 

We thought this was as side effect of having development mode on for our DE but it happens with DE off and it's still happening after deploying to a Test Edition. We also see warnings for paragraph tags too but less frequently.

 

This can't be our code as it also happens on the Page Editor  and we don't use our own base HTML on pages where the warning occurs.

 

Surely someone else has had this ? 

Message Edited by bg_richard on 08-22-2009 09:03 AM
I was wondering if anyone has had experience with this one. Is there a way to set the MIME type of an email sent via APEX? Additionally, I'll want to generate and attach an ICS file with meeting invite details. The ICS file is pretty much a txt file so that shouldn't be that tricky. Has anyone tried this before?
  • June 05, 2009
  • Like
  • 1

When our managed package is deployed to a customer org and we enable Debug for a user we are not seeing any of the System.Debug() output from statements in our managed package.

 

Looking at the Debug log for the user we see the following at the top of the trace:

 

*** Log filter in effect. Executing code from installed managed application (<package prefix>)

Anyone know how to get round this?

As discussed in Ideas (http://ideas.salesforce.com/article/show/69729) here's a solution we have used for clients to enable customisation of the Clone button on Opportunities. This can be used to selectively choose which fields to copy and set default values:

 

For full details and the code to clone opportunity Line Items please contact me directly. We will be re-writing this in VisualForce over the coming months to make it futureproof.

 

Steps to Implement - Admins only

1. Setup -> Customize -> Opportunity -> Buttons and Links

2. Create new custom button called Clone, behaviour is Execute Javascript, Display Type Detail Page Button.

3. Paste in the code below and edit to match your requirements.

4. Remember to add the new button to the Opportunity page layout(s) and hide the original Clone button.

4. Test!

 

// Copyright 2008 BrightGen Ltd - All Rights Reserved try{ {!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} // ** EDIT THIS QUERY TO LIST THE FIELDS YOU WANT TO COPY ** var result = sforce.connection.query("Select o.Type, o.StageName, o.Product_Type__c, o.Planned_Opportunity__c, o.MarketSector__c, o.CampaignId, o.Business_Unit__c, o.Amount, o.AccountId From Opportunity o WHERE o.Id = '{!Opportunity.Id}'"); var newOpp = result.getArray("records"); // Reset the Opp Id and reset fields to default values newOpp[0].Id = ''; newOpp[0].Name = "Clone {!Opportunity.Name}"; // ** EDIT THESE FIELDS TO SET DEFAULT ANY VALUES ** newOpp[0].StageName = "1. Prospecting"; newOpp[0].CloseDate = new Date(2099, 0, 1); var saveResult = sforce.connection.create(newOpp); if (saveResult[0].getBoolean("success")) { newOpp[0].id = saveResult[0].id; alert("Opportunity cloned without line items"); } else { alert("Failed to create clone: " + saveResult[0]); } // Refresh the page to display the new oppportunity window.location = newOpp[0].id; } catch (err) { alert (err.description ); }

 

 
Message Edited by bg_richard on 02-05-2009 07:11 AM

We're using multi-currency and I want to create a validation rule (and workflow) that is based on Opportunity Amount in the base currency of the Org, not the Opportunity Amount. On a report I can list the Total Order Value (Converted) but as this field is not visible in the Validation Rule page and the only way I can see to do this currently is to create a new field and populate from Apex using the appropriate currency record. This would need to be recalculated everytime the Opp is saved, which is too late w.r.t. Validation.

 

Has anyone else found a better way to get the Total Order Value Converted used on the Reports in a Validation or Worklfow Rule ?

Hi All,
 
I have a trigger on Opportunity (after insert and before update) and its working fine as expected. But i found that the trigger is not getting fired when we change the account owner and check the option to even change the opportunity owner. In this situation the opportunity owner is getting changed but the trigger functionality is not happening i.e. trigger is not getting fired. Please suggest.
 
Help is appreciated.
 
Regards,
Rani
  • July 25, 2008
  • Like
  • 0
Hello,

We're developing an application on Force.com platform that will require a number of document attachments for various objects. We will be needing storage space and capabilities in addition to the default storage that comes with Force.com license. Appreciate any suggestions regarding third party data storage providers that has worked for other Force.com applications.

Thanks
  • July 10, 2008
  • Like
  • 0
Hey all, I am in a trial version and I am trying to customize...any help would be great. I have created a number of custom fields that output a number into other custom fields depending on what you enter.
   i.e. If you chose "value-buyer" in the custom field "Decision Maker's Buyer Type", it would output a value of "1" in another custom field called "Buyer Type".
 
What I want to do is add up all of the numerical values that are output into custom fields. The idea is to set a target number, and if the sum goes above it then the prospect is "qualified" and if its below then the prospect is "not qualified"..
 
Is this possible???