web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Displaying Sessions List

(0) ShareShare
ReportReport
Posted on by 90

Hello All,

We have a requirement in which our client expects to display a session list as mentioned below

The List should display all events per day in two different lists

pastedimage1607946829775v1.png

But what i achieved is below list all sessions are displayed only in one column

pastedimage1607946913644v2.png

Could any one please help us on how to achieve desired output.

Regards

Abhilash

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Abhilash,

    By default, sample event website has implemented a drop down list to aggregate sessions by their date and show sessions dynamically by date based on the selected option.

    Therefore, you could just add some simple customization to make use of the existing code to extend functionality.

    1. In sessions.component.html, insert the container containing custom contents after drop down list container.

    Day {{index}}

    q1.JPG

    As you can see, we will create a variable "index" in corresponding ts file to get index of the selected option and render it as number of day, and bind a custom function to OnChange event of the drop down list.

    (In addition, there is a Boolean variable "showIndex" to control display of custom content.(By default, the variable is set to false.)

    (change)='setDayIndex()'

    2. In the ts, declare two custom variables.

    index: number;
    showIndex: boolean = false;
     

    At bottom of source code, add the custom function to assign index of the selected option to custom variable.

    public setDayIndex():void {
        this.showIndex = true;
        this.index = this.dateKeys.findIndex(item => item === this.selectedDateKey)   1;
    }

    Test

    2021.gif

    Regards,

    Clofly

  • Abhilash_Reddy Profile Picture
    90 on at

    Thank you Clofly for your inputs. it is really helpful for us.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans