• Dave Stevenson
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
I have read lots of posts about this error message, and cannot figure this out. Here is the relevant of my class, including the constructors:
 
global class ParseSystemOverview {
    private String testContent;
    
    global void ParseSystemOverview() {
    }

    global void ParseSystemOverview(String tstContent) {
        // For use by unit tests - pass in sample content
        testContent = tstContent;
    }
}

And here is the client code:
 
@isTest private class ParseSystemOverviewTest {
    static testMethod void apiUsageTest() {
        String testPageContent = 'Hello there.';
        ParseSystemOverview parse = new ParseSystemOverview(testPageContent);
    }
}

The compiler error 'Constructor not defined: [ParseSystemOverview].(String)' occurs on line 4 o fmy unit test. Help please. And thanks.
 
Why is quicksave listed in the VisualForce Developer Guide under "Using Standard Controller Actions", but not under "StandardController Methods" in either the VisualForce Developer Guide or the Apex Developer Guide?
I added two custom fields to an object with history tracking, editStartTime and editStopTime. I want editStartTime to hold the time the 'Edit' (or 'New' or 'Clone') button was pressed for the object. When the 'Save' button is pressed, I can easily set editStopTime in an Apex trigger, but how do I get the editStartTime? 

The editStartTime will be cached in the object being edited, and will only be stored in the database if the edit is saved. If an edit is cancelled, the times will be discarded. I do not plan to display the start/stop fields on any page layout. Their values will only be visible in the field history section for a record.

I want the solution to work globally, both desktop and mobile, and from any page that has a 'Edit', 'Clone', 'New', or 'Save' button (I think that's all the standard buttons, did I miss any?) for this object.

I am new to salesforce, and my experience with other development environments gives me pre-conceived notions about how to do this that do not seem to match up with salesforce. I have been reading about custom buttons, controllers, page layouts, etc., and I should be able to follow the related tutorials. I'd like direction on which specific steps I should take to implement my requirements. For example:

Must I create a custom Edit button (and New, Clone), or is there a way to hook a small bit of code into the standard button, perhaps by customizing the controller?

If the start/stop values will only be displayed in the field history section, do I need to add or modify any page layouts?

Please list the steps of the simplest solution you would implement.

Thanks.
I have read lots of posts about this error message, and cannot figure this out. Here is the relevant of my class, including the constructors:
 
global class ParseSystemOverview {
    private String testContent;
    
    global void ParseSystemOverview() {
    }

    global void ParseSystemOverview(String tstContent) {
        // For use by unit tests - pass in sample content
        testContent = tstContent;
    }
}

And here is the client code:
 
@isTest private class ParseSystemOverviewTest {
    static testMethod void apiUsageTest() {
        String testPageContent = 'Hello there.';
        ParseSystemOverview parse = new ParseSystemOverview(testPageContent);
    }
}

The compiler error 'Constructor not defined: [ParseSystemOverview].(String)' occurs on line 4 o fmy unit test. Help please. And thanks.
 
Why is quicksave listed in the VisualForce Developer Guide under "Using Standard Controller Actions", but not under "StandardController Methods" in either the VisualForce Developer Guide or the Apex Developer Guide?
I added two custom fields to an object with history tracking, editStartTime and editStopTime. I want editStartTime to hold the time the 'Edit' (or 'New' or 'Clone') button was pressed for the object. When the 'Save' button is pressed, I can easily set editStopTime in an Apex trigger, but how do I get the editStartTime? 

The editStartTime will be cached in the object being edited, and will only be stored in the database if the edit is saved. If an edit is cancelled, the times will be discarded. I do not plan to display the start/stop fields on any page layout. Their values will only be visible in the field history section for a record.

I want the solution to work globally, both desktop and mobile, and from any page that has a 'Edit', 'Clone', 'New', or 'Save' button (I think that's all the standard buttons, did I miss any?) for this object.

I am new to salesforce, and my experience with other development environments gives me pre-conceived notions about how to do this that do not seem to match up with salesforce. I have been reading about custom buttons, controllers, page layouts, etc., and I should be able to follow the related tutorials. I'd like direction on which specific steps I should take to implement my requirements. For example:

Must I create a custom Edit button (and New, Clone), or is there a way to hook a small bit of code into the standard button, perhaps by customizing the controller?

If the start/stop values will only be displayed in the field history section, do I need to add or modify any page layouts?

Please list the steps of the simplest solution you would implement.

Thanks.