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

  • Abhilash_Reddy Profile Picture
    90 on at
    RE: Displaying Sessions List

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

  • Verified answer
    cloflyMao Profile Picture
    25,202 on at
    RE: Displaying Sessions List

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,939 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans