Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-birthdays - Unable to display Birthdays on the site #2702

Open
bakgou1 opened this issue May 9, 2022 · 14 comments
Open

react-birthdays - Unable to display Birthdays on the site #2702

bakgou1 opened this issue May 9, 2022 · 14 comments

Comments

@bakgou1
Copy link

bakgou1 commented May 9, 2022

Disclaimer

Yes

Sample

react-birthdays

Author(s)

@smaity @joaojmendes

Question

Hello, I've followed the steps instructed in the readme.txt file and successfully added the app to the tenant sharepoint site. I've created a list called "Birthdays" and inserted data. After adding the web part in my communication site, the birthday cards are not displaying. Is there any assistance I can get from here? All I see this empty birthdays even though there are birthdays added for future date.

image

@ghost
Copy link

ghost commented May 9, 2022

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label May 9, 2022
@Abderahman88
Copy link
Contributor

Hi @bakgou1,

  1. Have you create the Birthdays-list on the root site? (https://[tenant].sharepoint.com/Lists/Birthdays/AllItems.aspx)
  2. Is the month of the birthday passed? Can you give some sample dates?

image

@bakgou1
Copy link
Author

bakgou1 commented May 10, 2022

Hello @Abderahman88,

  1. Yes, I did create the list on the root directory as shown below.

image

  1. Please see my list above. It does contain future dates only.

My webpart is blank as shown below.

image

Hope this helps! Let me know if you need further info.

@Abderahman88
Copy link
Contributor

@bakgou1

  1. Are you using the lastest version of this webpart?
  2. What version of Node are you running?
  3. Do you get any errors when running gulp serve?

@Abderahman88
Copy link
Contributor

Something else came in mind ... Have you approved all the API permissions in SharePoint admin center ?

image

@bakgou1
Copy link
Author

bakgou1 commented May 11, 2022

Hi @Abderahman88,
Yes, I have approved all API Permissions via the Admin center.

I'm running v14.19.1 node version using the latest version of the webpart.

I'm doing a new setup right now and will let you know if I run into any errors after running gulp serve command.

@bakgou1
Copy link
Author

bakgou1 commented May 11, 2022

Hello @Abderahman88,
I did ran the gulp serve command after the setup with no errors. I get "No Birthdays and anniversaries for next days" even though my list is on the root site with records. What should be the field types? Does the "Birthday" column in DateTime format?

@Abderahman88
Copy link
Contributor

@bakgou1

image

@Abderahman88
Copy link
Contributor

@bakgou1 The latest version of this webpart has issues. If I have any time, I'll try to fix it.

@bakgou1
Copy link
Author

bakgou1 commented May 23, 2022

@Abderahman88 Thank you! Let me know when you've fixed it.

@nethitters
Copy link

I managed to get it working temporarily by changing the year from 2000 to 2022 in SPService.ts and using moment to reformat the dates to MM/DD/YYYY. I would try and make a more permanent fix but if @Abderahman88 is already working on it, I'm sure he would do a better job.

@joostvdlinden
Copy link

I managed to get it working temporarily by changing the year from 2000 to 2022 in SPService.ts and using moment to reformat the dates to MM/DD/YYYY. I would try and make a more permanent fix but if @Abderahman88 is already working on it, I'm sure he would do a better job.

Hi @nethitters I am following up on your remark about date formatting.
Since the latest release of this web part I am facing dates not being localized to Dutch but they show in English. How do you apply this date formatting?

@Pandas4Peace
Copy link

@nethitters I am also following up on your remark about date formatting.
Do you mind sharing how you reformatted the dates in SPService.ts?

@Gaston77lqq
Copy link

Was there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants