S Sergey_New Well-Known Member Licensed User Longtime User Nov 11, 2023 #1 To receive data from different Activities, I send it to the MenuList class module Activity: Dim ML As MenuList Dim data As Map data.Initialize data.Put(...) ML.Initialize(Me, data) This class returns some values to each Activity MenuList: Public Sub Initialize(CallBack As Object, m As Map) ... CallSub2(CallBack, "setMenu", pn) How to do this in B4XPages for different pages?
To receive data from different Activities, I send it to the MenuList class module Activity: Dim ML As MenuList Dim data As Map data.Initialize data.Put(...) ML.Initialize(Me, data) This class returns some values to each Activity MenuList: Public Sub Initialize(CallBack As Object, m As Map) ... CallSub2(CallBack, "setMenu", pn) How to do this in B4XPages for different pages?
Solution Alessandro71 Nov 11, 2023 exactly in the same way, as long as there's a "setMenu" Sub in each of the pages you are calling
Alessandro71 Well-Known Member Licensed User Longtime User Nov 11, 2023 #2 exactly in the same way, as long as there's a "setMenu" Sub in each of the pages you are calling Upvote 0 Solution
S Sergey_New Well-Known Member Licensed User Longtime User Nov 11, 2023 #3 Alessandro71 said: exactly in the same way Click to expand... It does not work for me Upvote 0
Alessandro71 Well-Known Member Licensed User Longtime User Nov 11, 2023 #4 so there must be something else beside the code you've posted Upvote 0
S Sergey_New Well-Known Member Licensed User Longtime User Nov 11, 2023 #5 Alessandro71 said: so there must be something Click to expand... You are right, thank you! The truth is hidden in the details Upvote 0
Alessandro71 said: so there must be something Click to expand... You are right, thank you! The truth is hidden in the details