• Brian Oconnell
  • NEWBIE
  • 15 Points
  • Member since 2014
  • Salesforce Analyst
  • White Pine Diamonds

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies
Doing Trailhead exercise here: https://developer.salesforce.com/en/trailhead/force_com_programmatic_beginner/apex_database/apex_database_intro

This is my code:
 
public class StringArrayTest {
    public static generateStringArray(Integer x) {
        List<String> stringList = new List<String>();
        for (integer n=0; n<x; n++) {
            stringList.add('Test '+n);
        }
        return stringList;
    }
}
I get the error message "Constructors cannot be static" on line 2, but I can not find anywhere an example of a public static method that returns a value.  How can I fix this?

Thank you,
Brian
 
The page: https://na7.salesforce.com/apexpages/apexcomponents.apexp is pretty good, but it doesn't list all the options that can be used with each component.  Is there a complete list somewhere?  

For example, the component "apex:panelGrid" can take the options id, columns, and what else?

Please do not reply with http://www.salesforce.com/us/developer/docs/pages/

Thank you.
What is the Best Data Schema for tracking attendance or hours worked?

Should there be an object with a record for each day, with fields for in and out times? But then data entry involves creating new records for each day?
Or records automatically created for every day of the year and then only times or checkboxes filled in?
Should this hypoethetical Time object be in a master-detail relationship to the Student/Worker/etc object?
Or any other arrangements?

I would appreciate any examples that you may be using.

Thank you!
Doing Trailhead exercise here: https://developer.salesforce.com/en/trailhead/force_com_programmatic_beginner/apex_database/apex_database_intro

This is my code:
 
public class StringArrayTest {
    public static generateStringArray(Integer x) {
        List<String> stringList = new List<String>();
        for (integer n=0; n<x; n++) {
            stringList.add('Test '+n);
        }
        return stringList;
    }
}
I get the error message "Constructors cannot be static" on line 2, but I can not find anywhere an example of a public static method that returns a value.  How can I fix this?

Thank you,
Brian
 
Where can I download SFO?
Hello,

Yesterday I started receiving a very vague error message when trying to save a new copy of a Flow.  This is with no changes to the Flow at all since the last succesful change - just getting a fresh copy saved before I start making any changes.  The error message reads "Eror - We're sorry, but a serious error occurred.  Please don't close the Cloud Flow Designer window.  Contact Salesforce Customer Support as soon as possible."  Screenshot below

I've contacted SFDC support and they told me I needed to post this here...

User-added image
Doing Trailhead exercise here: https://developer.salesforce.com/en/trailhead/force_com_programmatic_beginner/apex_database/apex_database_intro

This is my code:
 
public class StringArrayTest {
    public static generateStringArray(Integer x) {
        List<String> stringList = new List<String>();
        for (integer n=0; n<x; n++) {
            stringList.add('Test '+n);
        }
        return stringList;
    }
}
I get the error message "Constructors cannot be static" on line 2, but I can not find anywhere an example of a public static method that returns a value.  How can I fix this?

Thank you,
Brian