detect location and widget properties in dashboards

Hello.
I have a problem that I can not solve.
I have a dashboard with 4 widgets:
w1 w2
w3 w4
In each widget gives the user the ability to select an app (grid, chart, form) scrolling (with 2 buttons previous and next app) between a series made available; they can also be 20 apps and each user selects the one he wants to place in w1, w2, w3, w4
I would store the app name in 4 appropriate fields of the sec_users table so that the app that the user has selected will be redisplayed on the next entry.
Question:
how can I do to know in which widget I’m scrolling through the apps? knowing the widget I can go back to w1, w2, w3, w4 by reading the relative field of the table and displaying the same predisposition to the successes re-enter!

But this is an observation: in the widget there is the possibility of maximizing, minimizing, closing and moving the widget itself, but when the user re-entry everything returns as the default.
What are these things for?
As if a user placed all the widgets as desired and then … as not done!
Or is there a method / property that I did not understand?
Also because this would solve the situation of the first question.
Thank you.
Enrico

ok.
I answer myself.
I solved this way:
Example dashboard composed of 4 widgets:
w1 w2
w3 w4
each link of the widget calls the control with …/wcontrol_init/index.php?nwidget=w1, …/wcontrol_ini/index.php?nwidget=w2, etc.
All subsequent links will be called up with …/xxxxxx/index.php?nwidget=$_GET["nwidget "] …
in this way each widget will have its own series of apps!
Enrico

Can you show us an example of your dashboard?

https://www.dmatik.app
login : development_demo
pw : demo
This is the test app (the one in production for customers is currently in another domain).
Some options are invisible and others are disabled, but to view the customizable dashboard both visual and content this account is sufficient.

Hello
Enrico

I like this idea of using one space to show multuple apps.

Is there a way to share this code and how this works?

regards?