• danlat
  • NEWBIE
  • 55 Points
  • Member since 2009

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 24
    Replies

Hi All,

 

Does anyone know how to output the day text part? ie for 1st, it would be 'st', 2nd 'nd', etc. It doesnt seem possible with Java date formatting: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html

 

Thanks in advance.

 

Message Edited by danlat on 03-18-2010 08:21 AM

 

Hi All,

 

Suddenly, all my tests are failing when I do Force.com > Run Tests.

 

They are throwing an ApexPagesGenericException but I do not know why.

 

I have not made any changes and all tests ran fine yesterday? Tests are even failing on a class I have not worked on for ages?


I can save filles however so I do not think it is a Security Token problem, and the tests run fine from my Sandbox. please see log below:(chopped down a lot but does show exception thrown) 

 

 

Debug Log:



15:09:16.671|CUMULATIVE_LIMIT_USAGE_END

15:09:16.671|CODE_UNIT_FINISHED
15:09:16.671|EXECUTION_FINISHED
15:09:16.673|EXECUTION_STARTED
15:09:16.673|CODE_UNIT_STARTED|[EXTERNAL]L4LControllerExtensionOppTestMethods.testGenerateAndAttachCoverLetters
15:09:16.674|DML_BEGIN|[95,9]|Op:Insert|Type:Opportunity|Rows:1
15:09:16.721|CODE_UNIT_STARTED|[EXTERNAL]Validation:Opportunity:null
15:09:16.721|VALIDATION_RULE|Legal_Services_Step_3_ENG_and_SCO
15:09:16.721|VALIDATION_FORMULA|AND(( Possession_order__c )=false , OR(ISPICKVAL(Service__c , "Tenant eviction-step 3"), ISPICKVAL(Service__c , "Scotland eviction step 3")) )|Possession_order__c=0 , Service__c=null
15:09:16.721|VALIDATION_PASS
15:09:16.721|CODE_UNIT_FINISHED
15:09:16.848|CODE_UNIT_STARTED|[EXTERNAL]Workflow:Opportunity
15:09:16.997|WF_RULE_EVAL_BEGIN|Assignment
15:09:16.997|WF_RULE_EVAL_BEGIN|Response
15:09:16.997|WF_RULE_EVAL_BEGIN|Workflow
15:09:16.997|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Landlord Grants|01Q200000006XXo|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Landlords Grants]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Debt Management|01Q200000006XXL|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Debt Management]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Guarantees|01Q200000006cWO|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Guarantees]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Commercial|01Q200000006XXZ|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Commercial Evictions]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Tenants Contents Insurance|01Q200000006XXt|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.053|WF_RULE_FILTER|[Opportunity : Type equals Tenants Contents Insurance]
15:09:17.053|WF_RULE_EVAL_VALUE|null
15:09:17.053|WF_CRITERIA_END|false
15:09:17.053|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Tenant referencing Basic Opp|01Q20000000LP1m|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.054|WF_RULE_FILTER|[Opportunity : Type equals Tenant Referencing Basic]
15:09:17.054|WF_RULE_EVAL_VALUE|null
15:09:17.054|WF_CRITERIA_END|false
15:09:17.054|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Basic|01Q200000006XXP|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.054|WF_RULE_FILTER|[Opportunity : Type equals Basic Layout]
15:09:17.054|WF_RULE_EVAL_VALUE|null
15:09:17.054|WF_CRITERIA_END|false
15:09:17.054|WF_CRITERIA_BEGIN[Opportunity: TestOpp 006T00000057JzD]|RT Tenant Referencing|01Q200000006XXp|ON_CREATE_OR_TRIGGERING_UPDATE
15:09:17.054|WF_RULE_FILTER|[Opportunity : Type equals Tenant referencing]
15:09:17.054|WF_RULE_EVAL_VALUE|null
15:09:17.054|WF_CRITERIA_END|false
15:09:17.054|WF_SPOOL_ACTION_BEGIN|Workflow
15:09:17.054|WF_ACTION|: None
15:09:17.054|WF_RULE_EVAL_BEGIN|Escalation
15:09:17.054|WF_RULE_EVAL_END
15:09:17.054|WF_TIME_TRIGGERS_BEGIN
15:09:17.058|WF_ACTIONS_END| None
15:09:17.058|CODE_UNIT_FINISHED
15:09:17.058|DML_END|[95,9]|
15:09:17.058|SOQL_EXECUTE_BEGIN|[96,27]|Aggregations:0|SELECT Name FROM Opportunity WHERE Id = :o.Id
15:09:17.069|SOQL_EXECUTE_END|[96,27]|Rows:1|Duration:11
15:09:17.217|EXCEPTION_THROWN|[271,18]|System.VisualforceException: core.apexpages.exceptions.ApexPagesGenericException:
15:09:17.217|FATAL_ERROR|System.VisualforceException: core.apexpages.exceptions.ApexPagesGenericException:

Class.L4LControllerExtensionOpp.attachCoverLettersToOpp: line 271, column 18
Class.L4LControllerExtensionOppTestMethods.testGenerateAndAttachCoverLetters: line 99, column 9
External entry point
15:09:17.217|CUMULATIVE_LIMIT_USAGE
15:09:17.217|LIMIT_USAGE_FOR_NS|(default)|
Number of SOQL queries: 1 out of 100
Number of query rows: 1 out of 500
Number of SOSL queries: 0 out of 20
Number of DML statements: 1 out of 100
Number of DML rows: 1 out of 500
Number of script statements: 37 out of 200000
Maximum heap size: 0 out of 1000000
Number of callouts: 0 out of 10
Number of Email Invocations: 0 out of 10
Number of fields describes: 0 out of 10
Number of record type describes: 0 out of 10
Number of child relationships describes: 0 out of 10
Number of picklist describes: 0 out of 10
Number of future calls: 0 out of 10
Number of find similar calls: 0 out of 10
Number of System.runAs() invocations: 0 out of 20

15:09:17.217|CUMULATIVE_LIMIT_USAGE_END

 

 

Thanks for any help.

Message Edited by danlat on 01-25-2010 07:19 AM
Message Edited by danlat on 01-25-2010 07:21 AM

Hi all,

 

I would like to to create a custom home page component note type, just like the standard component "Messages & alerts".

I was wondering if this is possible; if yes, how to and does this require any coding?

 

 

Thanks very much in advance.

 

 

Greetings from a beginning SFDC-admin.

Hi All,

 

My scenario is thus:

 

1. I create a Contact.

2. Click New Opportunity button in the related lists sectionof the Contact.

3. Save Opportunity.

4. Opportuntity now shows up on related list of contact.

 

Now, does anyone know of a way to show the contact details such as Name, Address, etc of the Contact on the Opportunity details page? ( not a look-up )

 

This is so when we are viewing an Opportunity we dont have to goto the Contact record to see the Contacts details associated with the Opportunity.

 

I was thinking of a before insert Trigger on the Opportunity but I cant get access to page params this way. (conid)

 

Thanks for any help.

Message Edited by danlat on 01-21-2010 02:40 AM

I am trying to make customer portal but I am stuck on my way :(. I selected Customer Portal and created a new portal having name as "My Customer Portal" after that I explore the option and found some options under "Look and Feel section" when I hit search icon infront of header text box that shows me a popup which is total empty and there is an option for search. I am not getting the exact place where should I define that header so that it can be list down in that popup whcih allow me to select and set in Header text box. I did 2 things.

 

1: I uploaded my logo in static folder and some css.

2: I created a component having some HTML.

 

But again these two things are not listing in header findings.

 

Please anyone help me in this situation. Where should I define some HTML so That it will show in header and footer search dialoge for selection and also logo???

 

Please help me I am thanking you in advance.

 

BR,

 

Asif Ahmed Khan

Sr. Software Enginner

Palmchip Pvt. Ltd

 

Hi All,

 

How can I create a helper method in my test class to accomodate common code? It doesnt seem to be possible?

 

I have this:

 

 

private Opportunity setUpOpportunityToTest() { ... }

 but its gives me an error when I try to call it: using

setUpOpportunityToTest();

 or

this.setUpOpportunityToTest();

 

 ?

 

 

Thanks

Dan

 

 

Message Edited by danlat on 01-19-2010 04:09 AM
Message Edited by danlat on 01-19-2010 04:11 AM

Hi All,

 

Would anyone be so kind enough as to provide a simple example for testing an opportunity with an associated product.

 

My problem is setting up the object to test, so far I have this:

 

 

// ... creating an Opportunity omitted Product2 p2 = new Product2(Name='Test Product'); OpportunityLineItem oli = new OpportunityLineItem(ProductId=p2.Id, OpportunityId=o.Id);

 

 But this is giving me errors, Do I need to instantiate a PricebookEntry and do it that way?  Please help.

 

In the end what I want is an Opportunity with an attached product. I tried to keep my tests independent but its proving very hard in this instance.

 

The Opportunity Product is added via Salesforce.

 

Many Thanks For Any Help.

danlat

 

 

Hi All,

 

We have two partner users: User A, User B.

 

Say if User A creates an Account on their Partner Portal, is it possible to let User B see the same account when they log in to their Partner Portal? and as such make changes? I guess this revolves around data sharing?

 

Thanks for any advice.

In my visual force page I have the following line that display date : 1/21/2010 9:37 PM

<apex:outputField value="{!invitation.Account_group__r.Submission_Due_Date__c}"/>

 

 

I want to display date as : Jan 21, 2010 9.37 PM pst

 

Do I have to convert to string in my controller and display parsed data in visual force page?

or

Is there any format that I can give in my style(css) that will display date in the format I want?

 

Thanks

 

Hi All,

 

How do I get the "Save & Add Product" button for opportunities? Do I need to contact SF or can I do it through the app? I want to test this in Sandbox.

 

Many Thanks

Hi,

     i have staff page using User object internally(in controller staff= new User();).

    I would like to negate the value       staff.IsActive  and want to bind with inputfileld.

becouse in Staff form i have  a Lable InActive. and i can not changed that cos of UI specification.

 

   like

 ........

<tr>

<td class="clsPanelInputCheckboxTD">

 <apex:inputField value="{!staff.IsActive}" />

<apex:outputLabel styleClass="clsPanelCheckBoxLabel" value="{!$Label.inactive}" />

</td>

</tr>

</table>

</apex:outputPanel>

 

 

Could you please suggest me the way so I can bind Active user with Inactive Lable in UI.

Hi All,

 

I wonder if anyone can clear up the confusion that is the Salesforce PHP API kit. Why is there 2 versions?

 

One which you can get from Sourceforge name PHP5-1.0.6, and then there is one from developerforce named phptoolkit-13_1. And to further the confusion they both have totally different contents?

 

Which do I use? Why are there 2?

 

Thanks for any light?

Hi All,

 

I have created a custom profile for my partner protal, I have set the 'edit' (and convert) permission on Accounts, but when goto to convert a lead I get a Permission Required error saying I need "Edit Permission on Accounts" but I already have this? Is there somthing else I need to change/set.

 

Grateful for any help.

 

Thanks

Hi,
I have developed an application,prior to Friday when i used to do a build using Ant to any org Build got Successful but now i am facing a wierd situatution saying that Build Failed because of An error occurred on your page.
But Same code if i deploy from other Org it is getting Successful.

Any Help would be Great.

Regards,
Mohammed Junaid.
When prompted by the apex data loader I enter my salesforce.com username and password, but this message keeps appearing:

Error logging in to Salesforce. Please check your username and password.

When I login to salesforce.com with the same username and password it works.

Does anyone know why I can't login to the data loader?


Message Edited by Lkc037 on 12-11-2007 11:49 AM