2019-11-24 04:12 PM
If I setup hardware button is clocked on screen1 it works.
If I switch to screen2 in designer and come back to screen1, I lose some information
See attached image
Solved! Go to Solution.
2019-11-28 12:14 AM
I'm just told it's already been fixed in the upcoming 4.13.0 by the designer team :) The action was still being generated, but the action was hidden for some reason.
Thanks for the report!
/Martin
2019-11-26 12:01 PM
well, the model doesn't save the state that you leave a screen in.
If I understand you correctly you change something on your screen and then leave the screen. When you go back again the screen is reset to its original state. If that is what you are experiencing then it is not a bug. that's the way it is.
If you want to save the state you're in you will have to update some state variable in your model and provide a way of your view updating that variable (e.g. view->presenter->model)
The same way you will have to update the state when you re-enter the screen (model->presenter->view)
Come to think of it - you should be able to use the constructor/destructer methods for this.
2019-11-27 01:48 AM
Just in TouchGFX designer.
If I chose "change screen" or "hide widget" in action field, touchGFX_DESIGNER should keep this information.
But in my project, it do not.
You see in my screenshot the action field is empty.
Normaly, I selected "change screen"
And you have to know the code is well generated by touchGFX designer.
2019-11-27 12:46 PM
You're right. I have the same issue here.
The code generates fine but the drop-down is not re-populated with the right info.
@Martin KJELDSEN - You might want to forward this to the designer people :)
2019-11-27 01:15 PM
Hi
I have the same issue, only happens for interactions that are of type "change screen". At least in the type "call virtual function" doesn't happen.
2019-11-28 12:02 AM
By "some information" do you mean the action?
What was the action? I can't replicate it here on 4.12.3.
2019-11-28 12:04 AM
Thanks, that's the clue i needed. "Change screen" action will disappear.
2019-11-28 12:14 AM
I'm just told it's already been fixed in the upcoming 4.13.0 by the designer team :) The action was still being generated, but the action was hidden for some reason.
Thanks for the report!
/Martin
2019-11-28 01:32 AM
Thanks for the heads up, it's already been fixed :) This caused some serious issues when upgrading projects with "change screen" interactions since no go to methods were being generated!
/Martin