Skip to main content
KNara.2
Associate III
July 31, 2023
Question

Screen to screen data transfer

  • July 31, 2023
  • 1 reply
  • 817 views

Hi,

I wanted one data that I received from back end to be displayed in both in startup screen and screen2 which comes up after startup screen.

So once I receive the data from back end in startup screen via Model.cpp I have to save it in Model.cpp and when screen2 is called I have to read the stored data from model->screen2 presenter->screen2 view.

Now the question is should I store the data in static variable in Model.cpp?

This topic has been closed for replies.

1 reply

Graduate II
July 31, 2023

Hello

I would add this variable to the model- class and then make a function for reading it from presenter :thumbs_up:

Br J.T