• PBS_IC786
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 39
    Questions
  • 47
    Replies

Does anyone else find that they are getting a number of Package Upload and Package Installation Errors since the Spring09 release? Seems like ever since then we have been plagued by all sorts of issues that force us to go to Salesforce Support to get them resolved.

 

It has probably happened to us about 5 times now where we get an error like this:

If this error persists, contact Salesforce Support through your normal channels and reference number:  xxxxxxxxx-xxx (-xxxxxxxxx)

 

If we are doing something wrong, salesforce won't tell us and it's really making us look bad when we can't follow through with customers because of some unknown error that we apparently can't fix on our own. Then we have to wait a week to get it resolved.

 

Just wondering if this is a problem anyone else has been having since Spring 09, or if it's something directly related to the way in which we build and deploy these packages. (or maybe both)

We recently noticed a new checkbox when packaging our native managed package which shows an option to select if multi currency is required in the installing org.  Unfortunately, this checkbox is already checked and grayed out so I am not able to uncheck it.  The issue is that we have customers that do not have multi currency enabled but we also have customers that do.  This was never a problem in the past but ever since 4/24/2009, this new checkbox does not allow customers with multi currency disabled to install new releases of our package.

Please help...

 

Thanks

Code:
<apex:page controller="cMainMenu" sidebar="false" showheader="false" standardstylesheets="false">
<style>
body .h1 {
font-size:14;
font-weight: bold;
font-family:Arial;
}
</style>
<h1>Visualforce Test</h1><br/><hr/>
</apex:page>


what is wrong with this picture?  I do not get an error but the text "Visualforce Test" does not come up in Arial font at the size I specified so how can I control the style of the text contained in the <h1> tag?"
Is there any way to build an Apex Trigger/Class using CurrencyISOCode in a multi-currency org, such that it can be packaged for AppExchange but the currencyISOCode will be ignored in a non-multi-currency org where that field is not available?

I guess it will need some sort of dynamic Apex capabilities to determine the schema and behave accordingly.

Presently, it seems that Multi-currency becomes a pre-requisite for installing the package. Presumably this would mean two packages - one for multi-currency and one without - and ultimately two appexchange listings?
    Hello,

I have a before update trigger on Contract that sets the associated Account status to Active when the Contract is activated.  The business goal is to keep these values in sync.

I have written the below test method, but I am only able to obtain 57% test coverage, because an insert statement is failing in the method.

Here is the error:

20080202002751.821:Class.TriggerTests.testContractTrigger: line 22, column 17: Insert failed. First exception on row 0; first error: FAILED_ACTIVATION, null: [Status]

Our hunch is that the insert fails because of some special back-end logic around Contract status, which appears to be locked in some way by the platform. 

However, I am not certain if and how to bypass this logic (if that's the issue) for the test.

Here is the test method.  The failure occurs at the attempt to insert relatedCon.

Any suggestions would be appreciated:

public class TriggerTests {
   
    public static testmethod void testContractTrigger (  ) {
       
         //Insert Account for test
         Account testAcc = new Account( Name = 'Test For Contract');
             try{
                 insert testAcc;
             }
             catch (DmlException e) {
                 System.debug(e.getMessage());
             }
        // Obtain reference to new related Contract
        Contract relatedCon = new Contract (AccountId = testAcc.Id, ContractTerm = 12, Name = 'Test', Status = 'Draft');      
       
            try{
                 insert relatedCon;
                 System.debug(relatedCon);
             }
             catch (DmlException e) {
                 System.debug(e.getMessage());
             }   
            
    // This is the Contract that will change as part of the test     
    // field values should cause the trigger to fire
    Contract updatedCon = new Contract(Id = relatedCon.Id, Status = 'Activated' );
   
    // update in database
    try{
                // this should fire the after update trigger   
                 update updatedCon;
             }
             catch (DmlException e) {
                 System.debug(e.getMessage());
             }   


    // Iterate through acct objects, make sure trigger set status to active   
    for ( Account a : [select Name, Id, AccountStatus__c from Account where Id = :testAcc.Id ] ) 
        System.debug(a.Name + ' ' + a.AccountStatus__c);
        //System.assertEquals( 'Active' , a.AccountStatus__c );
    }
   
    Here is the trigger:

trigger setAcctActive on Contract (before update) {

// Create a list of accounts to update
List<Account> acctList = new List<Account>();

for (Contract contract : Trigger.new) {

  // If the contract has been activated...
  if (contract.Status == 'Activated') {

    Account a = new Account(Id = contract.AccountId);
    // ... set the associated Account as active
    a.AccountStatus__c = 'Active';

    acctList.add ( a );

   }
  // update the database with the account status changes
  update acctList;
}
}


Message Edited by David Greenberg on 02-01-2008 04:49 PM
This may sound like a dumb question but I will break it into multiple parts in order to make answering it somewhat easier?!?

1) How can I change the backgroud color for my VF page?
2) Are stylesheets the only way to control the look and feel of the page? If so, then where and how can I edit stylesheets to get what I need?
3) Does salesforce have any sample stylesheets which I can view/edit to get the page to look how I want?  If so, once I find out where they are, how can I edit them and upload back into my VF application to get desired behavior?

This aspect of visualforce has been really frustrating so far as I am not a CSS expert and am used to the regular old HTML and javascript page manipulation. 

For example, I have a datatable component which uses the styleclass of "list" but if I remove the styleclass then it looks all dumb.  If I leave styleclass out, I cannot specify the columnwidths without an internal server error from salesforce.  I simply want a neat looking table with a column containing an input field.  Right now my column with the input field is huge compared to my other 2 columns and I cannot find an easy way to control this.

Maybe I am missing something big here and that is why I could be asking a stupid question but either way someone please advise...Any help is greatly appreciated...

Thanks
Hi.  In the past I had no problems at all with the Apex toolkit for Eclipse.  In wanting to use the latest API and tools, I decided (stupidly) to use the new Force.com plugin for Eclipse 3.3.x.x. 

Now the fun part.  When I create a new project and hook up to our org's sandbox, I get a list of folders and one that contains our s-controls, triggers and classes (src>unpackaged).  My question to anyone who can help:  first, is this the project layout for everyone as well?  I see folders for various app exchange items we placed up there months ago, and some other fodlers that I don't understand the point of.  Why are they in the IDE?  And second, and the biggest headache at the moment....why arean't all of the s-controls in our sandbox being listed?   Maybe 25% of the controls are available and the same is true for the triggers. 

I've tried to get an answer from our premire support rep to no avail.  This is really messing our team up as we're in development on some items and now have to edit in a text editor and then copy and save in the UI.  That gets pretty old over the course of a day or week.

Any hlope would be greatly appreciated.  Thanks,
Bryan

Hello,
I'm trying to update an Account record by using an Opportunity "after update" trigger.
I want to update the Account record, which has the same id as the id of the Opportunity Account Name.
My code is as follows:
 
trigger changeAccountToActive on Opportunity (after update) {
Opportunity[] opp = trigger.new;
Account[] acct;

acct = [select id, Active__c from Account where id = :opp[0].Account.id];
//acct = [select id, Active__c from Account where Site = :opp[0].NextStep];
if (acct.size()>0)
{
  if (opp[0].status__c == 'Full Payment')
  {
  acct[0].Active__c = 'Yes';
  }
  update acct[0];
}
}
 
I used some debug printing code and I realised that the code doesn't get the lookup field value, but it does get the values of other fields. If I use the code in comments, where the "where" statement works on another opportunity field, it works...
 
Does anyone have an idea???
Thanks.


Message Edited by NM on 01-19-2008 10:57 PM

Message Edited by NM on 01-19-2008 11:00 PM
Is it possible to customize the home page of a standard/custom object with dashboards easily?
Is it possible to do a window.open and launch another Scontrol from within an Scontrol?
hi
 
 i have one doubt,pls anyone clarify me as early as possible.my doubt is every object(like cae) has some standard fields(like subject,Description,Priority,etc) ,when i create the pagelayout  automatically these fields are coming but no way to remove the fields from the layout but these are unwanted for me.how can i void these fields in my layout.this seems to be small doubt but in many cases giving the problem.
 
 
Regards,
madhu
I have created an example list view button and when I click it, I am getting a javascript error:

" A problem with the OnClick Javascript for this button or link was encountered: Expected ';'

The button code is quite simple:

newArray = {!GETRECORDIDS($ObjectType.Task)};
alert(newArray);

This list button works in Contacts and the Activity List View records, BUT NOT for Accounts.  The only thing non-standard is that I am using record types with the accounts.  I have added the button to all list views for all record type layouts.  I am using IE6. 

I think this might be a bug...

Any ideas?

Thanks,

BKM
Assuming the structure for a queryresult is different in Flex (not sure if it is?), how can I get to the values stored within the objects which the queryresult brings back.

Specifically, I have a query which is bringing back 3 columns and 1 record.  2 out of the 3 columns are actually relationship objects with multiple records contained within them.  I need to get the values in the fields of these relationship objects in order to do processing with them...

This pseudo format is returning blank when I can see the data in the apex explorer-

queryresult.records[0].relationshipobject[0].customfieldname

Any help is greatly appreciated...
Is there any way to get access to a merge field within the flex code?

I have a grid on one of my custom object detail pages and I need to know in my flex code what the id of the custom object's page is, so I can show the proper information in the grid...

Any ideas? thoughts?

Thanks in advance...
2 questions as I am new to Actionscript and Flex:

1) How can I make data in a flex datagrid show up as a hyperlink if I am using an Arraycollection to populate the grid?

2) Is there any way in Flex/actionscript to combine multiple datasets (various custom objects related to 1 common custom object) and display them in a specified order?

Any help is greatly appreciated...

Thanks