Hi all,
I've a WD with two view; in the first, I input some data, and the result is displayed in the seconda...simple not???
But I've got a problem: I insert a butto to navigate between the two view, but the context is'nt refreshed, so the data displayed are always the same...
any suggestion?
Regards
ED
Hi ED,
if i get you right, you want to share data between two views. This is simple. Define the context in the component controller or a custom controller of your choice and map the requested context nodes of the view(s) to those in this controller. After the navigation, the second view will retrieve the data from (physically) the same context than the first one and display the correct data. It's like magic 😉
To map context nodes (attributes), declare a controller usage of the "data controller" in the Properties tab of the views at "Required Controllers". After that the context elements of the data controller will be mappable in the Context editor of the views.
Hope that helps.
Regards
Stefan
Hi Stefan,
no, not exactly...what you said is right, but that's easy and already done.
Instead, the problem is that I've a problem with the navigation; the first time, I put the data in the first screen and in the second in displayed correctly the result...then I come back to the first using a button I defined and I insert another data as input, but this time the result in the second screen is wrong because is always the first one...
hope to be clear...
best regards
ED
Add a comment