• DNLZ
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies

Hi,

 

I've got a question relating to Events. When i create an event and add invitees is it possible to edit the mail template that salesforce sends to the attendees? And is it possible to edit the "respond" page? Where an invitee is send to after he clicks the url thats located in the email?

 

Thanks,

Daniël

  • June 26, 2012
  • Like
  • 0

Hi,

 

I've got a question relating to a controller extension i made for a visualforce page. The goal was to show related activities(Events and Tasks) from child objects on the master object detail page. This worked out all good, but i was wondering is there a best practise for writing tests?

 

This is the code for the controller extension. I obscured my customObjects so i know about the weird custom object names :)

 

public class getRelatedActivities {
    private List<Event> events;
    private List<Task> tasks;
    private Opportunity opportunity; 

    public getRelatedActivities(ApexPages.StandardController controller) {
        this.opportunity = (Opportunity)controller.getRecord();
    }


    public List<Event> getEvents() {
        List<Aobj__c> aObjecten = new List<Aobj__c>{};
        aObjecten = [Select Id from Aobj__c WHERE Zopd__c = :opportunity.id];
        
        List<Id> aObjectIds = new List<Id>{};

         for(Aobj__c aobj: aObjecten){
            aObjectIds.add(aobj.id);
        }         

        events = [SELECT Id, Location, StartDateTime, Subject, EndDateTime FROM Event WHERE WhatId IN :aObjectIds AND EndDateTime > TODAY];
        return events;
    }
}

 So what is the best practise of testing this?

 

Thanks

  • June 25, 2012
  • Like
  • 0

The title says it all, i created a visualforce page with some javascript in it:

 

<apex:page standardController="Aangebodenobject__c">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
       <script type="text/javascript">
        var $_org = jQuery.noConflict();
        $_org("#CF00NU0000002waYc").change(function(object){
            $_org("#Name").val($_org("#CF00NU0000002waYc").val());
        })
    </script>
</apex:page>

This bit of JS is used to populate the name field when a lookup object is selected pretty straight forward. So i added this as a Visualforce page to the edit layout but when i check the source this page isn't rendered ?! What am i doing wrong any tips?

 

Thanks,

Daniël

  • June 21, 2012
  • Like
  • 0

Hi,

 

I've got 2 custom objects(let's assume they are named A and B) in my developer org. They are "linked" to each other via a lookup relationship and the thing I want to achieve is as follows:

 

B has a lookup to A so A has a related list of B objects. The thing I want to do now is display all the tasks and events that are scheduled on B on a "custom related list" on the A object.

 

I'm assuming that I can pull this off with some visualforce with a controller extension. But the question is how, and is this possible ?

 

I can break this down in 5 easy steps.

 

  1. Get all the B objects that are associated with A.
  2. In turn loop trough the B objects and get all their events and tasks.
  3. Store the events/tasks in some kind of array.
  4. Supply the array to a apex detail page / related list like element.
  5. Am I on the right track with this?

 

Thanks,

Daniël

  • June 20, 2012
  • Like
  • 0

Hi,

 

I've got a question relating to Events. When i create an event and add invitees is it possible to edit the mail template that salesforce sends to the attendees? And is it possible to edit the "respond" page? Where an invitee is send to after he clicks the url thats located in the email?

 

Thanks,

Daniël

  • June 26, 2012
  • Like
  • 0

Hi,

 

I've got a question relating to a controller extension i made for a visualforce page. The goal was to show related activities(Events and Tasks) from child objects on the master object detail page. This worked out all good, but i was wondering is there a best practise for writing tests?

 

This is the code for the controller extension. I obscured my customObjects so i know about the weird custom object names :)

 

public class getRelatedActivities {
    private List<Event> events;
    private List<Task> tasks;
    private Opportunity opportunity; 

    public getRelatedActivities(ApexPages.StandardController controller) {
        this.opportunity = (Opportunity)controller.getRecord();
    }


    public List<Event> getEvents() {
        List<Aobj__c> aObjecten = new List<Aobj__c>{};
        aObjecten = [Select Id from Aobj__c WHERE Zopd__c = :opportunity.id];
        
        List<Id> aObjectIds = new List<Id>{};

         for(Aobj__c aobj: aObjecten){
            aObjectIds.add(aobj.id);
        }         

        events = [SELECT Id, Location, StartDateTime, Subject, EndDateTime FROM Event WHERE WhatId IN :aObjectIds AND EndDateTime > TODAY];
        return events;
    }
}

 So what is the best practise of testing this?

 

Thanks

  • June 25, 2012
  • Like
  • 0

The title says it all, i created a visualforce page with some javascript in it:

 

<apex:page standardController="Aangebodenobject__c">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
       <script type="text/javascript">
        var $_org = jQuery.noConflict();
        $_org("#CF00NU0000002waYc").change(function(object){
            $_org("#Name").val($_org("#CF00NU0000002waYc").val());
        })
    </script>
</apex:page>

This bit of JS is used to populate the name field when a lookup object is selected pretty straight forward. So i added this as a Visualforce page to the edit layout but when i check the source this page isn't rendered ?! What am i doing wrong any tips?

 

Thanks,

Daniël

  • June 21, 2012
  • Like
  • 0

Hi,

 

I've got 2 custom objects(let's assume they are named A and B) in my developer org. They are "linked" to each other via a lookup relationship and the thing I want to achieve is as follows:

 

B has a lookup to A so A has a related list of B objects. The thing I want to do now is display all the tasks and events that are scheduled on B on a "custom related list" on the A object.

 

I'm assuming that I can pull this off with some visualforce with a controller extension. But the question is how, and is this possible ?

 

I can break this down in 5 easy steps.

 

  1. Get all the B objects that are associated with A.
  2. In turn loop trough the B objects and get all their events and tasks.
  3. Store the events/tasks in some kind of array.
  4. Supply the array to a apex detail page / related list like element.
  5. Am I on the right track with this?

 

Thanks,

Daniël

  • June 20, 2012
  • Like
  • 0

Hi all,

 

Im newbie in force.com, and i have a question, my question is that: i want to export list of object into CSV file using Apex. So please help me how to do this?

 

Thanks,