Urgent!! How Can I pass value from one widget to another widget and refresh the widget multiple times without loading the screen?

ashwanikumar
Tera Expert

Hi All,

 

REQUIREMENT:

Widget 1 -

Create a tree view for the location. Location table has parent child relationship in database so I am able to create the tree view.

Pass the value from widget 1 to widget 2 to perform an action in the value (e.g. create child location or rename it)

 

Widget 2 -

Widget2 has options to perform in location table. I am able to pass value from Widget 1 to Widget 2 and able to perform the database action

Challenge I facing - Now as per the requirement I need to pass the value from Widget 2 to Widget 1 and reflect the new changes in widget 2 without refreshing the page. 

I can not perform the page as user might add one more child location in the same parent.

PLEASE LET ME KNOW IF YOU NEED MORE DETAILS.

 

Thanks,

KUMAR

4 REPLIES 4

Harish Ragz
Kilo Guru

Hi Kumar

Once check the below link. It may help you.

Pass data from one widget to another widget

Thanks,

Harish Ragz

Chuck Tomasi
Tera Patron

Can you share the code?

The magic is going to happen when you use the "broadcast" and "on" with your event names. It sounds like you already have a way to send info from widget 1 to widget 2, that uses an event name of "one_to_two", for example. Widget 1 broadcasts and widget 2 reacts. You need to do the reverse with a new event "two_to_one", for example.

leo48
Tera Contributor

Hey, check the youtube vidoe i made for pass data between 2 widgets https://www.youtube.com/watch?v=LooT596ZhtQ

Mr world wide
Mega Guru

If you are still looking for a solution: