Forum Discussion

memunati's avatar
memunati
Copper Contributor
Apr 15, 2019

Employee Birthday Calendar Web Part

Hi, I am new to SharePoint and I am trying to implement an employee birthday calendar on SharePoint using the web-part here https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-birthdays.

Following the instructions on the link, I have created a Birthdays list and have deployed the Birthday web part to SharePoint online, I am currently stuck at connecting the Birthdays list and the Birthday web part so that the web part can fetch the Birthdays data from the list. 

Any idea on the next step to take? I have surfed the internet and could not find anything helpful.

  • Hi memunati  ,

     

    Please can you give me more details about your problem ?

    Can you send me print screens about you birthday list and the webpart ?

     

     

    Thank you.

    João Mendes

    • memunati's avatar
      memunati
      Copper Contributor

      Hi João José Mendes ,

      Attached below is a screenshot of the Birthday list,

      below is a screenshot of the deployed Birthday web-part

       I want to connect both the web-part and the list so that when I add the Birthdayweb-part to a page as shown below, it will display the Employees' Birthdays.

      Thanks.

       

      • João José Mendes's avatar
        João José Mendes
        Brass Contributor

        Hi memunati ,

         

         

        Please check if your birthday list has this columns: See image :

         

        The birthday date must have 2000 on year,  for example:    4/17/2000, 4/17/2000, etc...

         

        Add Webpart "Birthday"  to you Page. edit page and add webpart .

         

        Thank you.

        João

         

         

         

         

         

    • JenniferEckard's avatar
      JenniferEckard
      Copper Contributor

      I am trying to install this solution and when I go to gulp build I am getting a

      internal/modules/cjs/loader.js:638 throw error:

      Error: Cannot find module '@microsoft/sp-build-web'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
      at Function.Module._load (internal/modules/cjs/loader.js:562:25)
      at Module.require (internal/modules/cjs/loader.js:690:17)
      at require (internal/modules/cjs/helpers.js:25:18)
      at Object.<anonymous> (C:\Users\user\sp-dev-fx-webparts\samples\react-birthdays\gulpfile.js:5:15)
      at Module._compile (internal/modules/cjs/loader.js:776:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)

      João José Mendes 

  • SPLeon's avatar
    SPLeon
    Copper Contributor

    I'm also trying to add the webpart. Did all the steps:

    • npm install
    • gulp build
    • gulp bundle --ship
    • gulp package-solution --ship
    • Add and Deploy Package to AppCatalog
    • Go to API Management - from SharePoint Admin Center new experience, and Approve the Permission Require to Use Graph API SCOPES

    The file is in the appCatalog, but the web part is not visible on the site. 

    When I want to add the webpart on the page I don't see it in the list.

     

     

     

    • SPLeon's avatar
      SPLeon
      Copper Contributor

      Never mind, I already fixed it.

       

      Is it also possible to change the language within the webpart and show the items as a list in stead of as cards?

    • Harry_G's avatar
      Harry_G
      Copper Contributor

      JSlei I'm also wondering that how can I get Profile picture of user shown to Webpart

       

      Thanks,

      Harry_G

      • JSlei's avatar
        JSlei
        Brass Contributor

        Harry_G so the photos are retrieved from SP user profile using 

        /_layouts/15/userphoto.aspx?size=L&username=user@email.com

        The app wasn't connecting to my list very well, and using F12 I saw that the user email was "undefined".

        I rebuilt the Birthday list and it worked. Try doing that and make sure to use the exact columns.

    • ADumith's avatar
      ADumith
      Iron Contributor
      Yes it's just for Birthdays.

      I've wasted too much time just trying to download the package to get it working, I think it's better to look for other alternatives.

      I do not recommend this package.
      • EIMANTAS1795's avatar
        EIMANTAS1795
        Copper Contributor

        HELLO, in webpar are showing 5 upcoming birthdays, in wepart proproties don't allow to change 5 to other number. I found in code hardcored 5. Changed to 3, rebuilded and upadated pachage on sharepoint, but still seeing 5 upcoming. Any advise where i should search in code ? And other thing we want add copmany namy in birthday card, tryied update code code, but not succesfully 

Resources