• Navin Selvaraj
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
In JavaScript, For the Expression Evaluation, Eval function is there to perform the operation. In Lightning, How we can able to perform the expression evaluation. Is there any special method is there??  Please Kindly help me out regarding this??

I have created list of events in different dates. After the creation of the Events, I need to display those events in the site.com VF Page. But, when I was trying to show the account details, It is working fine. But, when I was trying to display the events. the events are not displaying in the site VF Page.

I need help for you to solve this issue.

Here I will put my code.


Controller Class:
public with sharing class EventController {
    private Datetime eventStartDateTime {get; set;}
    private Datetime eventEndDateTime {get; set;}
    private Datetime agentStartDateTime {get; set;}
    private DateTime agentEndDateTime {get; set;}
    private List<Event> listOfEvents {get; set;}

    public EventController(){ 
    }
    
   public List<Event> getListOfEvents(){
         listOfEvents = [SELECT  OwnerId, CreatedById, ActivityDate, StartDateTime, EndDateTime, Location FROM EVENT];
        return listOfEvents;
    }


VF Page Code:

<apex:page Controller="EventController">
    <apex:form >
   <apex:pageBlock title="Events Block">
       
      <apex:pageBlockTable value="{!listOfEvents}" var="event" id="table">
          <apex:column headerValue="Activity Id" value="{!event.Id}"/>
          <apex:column headerValue="Assigned To" value="{!event.OwnerId}"/>
          <apex:column headerValue="Created By" value="{!event.CreatedById}"/>
          <apex:column headerValue="Activity Date" value="{!event.ActivityDate}"/>
          <apex:column headerValue="StartDateTime" value="{!event.StartDateTime}"/>
          <apex:column headerValue="EndDateTime" value="{!event.EndDateTime}"/>
          <apex:column headerValue="Location" value="{!event.Location}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
    </apex:form>
</apex:page>

In JavaScript, For the Expression Evaluation, Eval function is there to perform the operation. In Lightning, How we can able to perform the expression evaluation. Is there any special method is there??  Please Kindly help me out regarding this??

I have created list of events in different dates. After the creation of the Events, I need to display those events in the site.com VF Page. But, when I was trying to show the account details, It is working fine. But, when I was trying to display the events. the events are not displaying in the site VF Page.

I need help for you to solve this issue.

Here I will put my code.


Controller Class:
public with sharing class EventController {
    private Datetime eventStartDateTime {get; set;}
    private Datetime eventEndDateTime {get; set;}
    private Datetime agentStartDateTime {get; set;}
    private DateTime agentEndDateTime {get; set;}
    private List<Event> listOfEvents {get; set;}

    public EventController(){ 
    }
    
   public List<Event> getListOfEvents(){
         listOfEvents = [SELECT  OwnerId, CreatedById, ActivityDate, StartDateTime, EndDateTime, Location FROM EVENT];
        return listOfEvents;
    }


VF Page Code:

<apex:page Controller="EventController">
    <apex:form >
   <apex:pageBlock title="Events Block">
       
      <apex:pageBlockTable value="{!listOfEvents}" var="event" id="table">
          <apex:column headerValue="Activity Id" value="{!event.Id}"/>
          <apex:column headerValue="Assigned To" value="{!event.OwnerId}"/>
          <apex:column headerValue="Created By" value="{!event.CreatedById}"/>
          <apex:column headerValue="Activity Date" value="{!event.ActivityDate}"/>
          <apex:column headerValue="StartDateTime" value="{!event.StartDateTime}"/>
          <apex:column headerValue="EndDateTime" value="{!event.EndDateTime}"/>
          <apex:column headerValue="Location" value="{!event.Location}"/>
      </apex:pageBlockTable>
   </apex:pageBlock>
    </apex:form>
</apex:page>