none
Possibility of Passing one SPFX web part value to another RRS feed

  • Question

  • Hello,

    I need to transfer one SharePoint Framework Client side web part(APP) value into another.

    I had not found anything related to this in internet.

    The scenario is:

    I have two SPFX apps in a page.

    one App is having a drop down list. On change event of drop down list value, i want to refresh that second App.

    Can anyone help me to know if this is possible?


    Monday, April 10, 2017 5:26 AM

All replies

  • Hi,

    In the meantime I share you the following link "How to share data between SPFx web part ":

    https://dev.office.com/sharepoint/docs/spfx/web-parts/guidance/tutorial-share-data-between-web-parts-global-variable

    I think for the moment there is nothing of well documented, however you can try to use socket.io to have a real time notification, if you have changed something in the first SPFx web part.

    https://socket.io/

    Theoretically you can use this kind of architecture:

    SPFx 1 SocketIO Client -> SocketIO Server -> SPFx 2 SocketIO Client

    In this way after that you have changed the value in the drop down (SPFx 1) you can send this info in the second web part and triggering the code.

    The second simple scenario could be to use only one web part.

    Kind regards, 


    Giuliano De Luca - MCSD SharePoint, MCSD Web Applications, MCPS, MS. www.delucagiuliano.com Twitter: @giuleon Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.


    Monday, April 10, 2017 6:48 AM
  • Hi Mourya, 

    Any feedback about Giuliano's reply?

    Best regards,

    Patrick 


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, April 14, 2017 3:12 AM
    Moderator