Hello experts,
It was hard for me to find a right titel ... I try to explain my issue.
my idea:
I open my dashboard which shows 5 tabs of a tabstrip. On each tabstrip I see 10 tiles (small panels). If I click on each tile I can see data on a crosstab.
At this level, when I see a crosstab, I want to set a processing state f.e. finished, in process or open.
So if I push the button for state finished I use the function setCSSCLass to change the color of the tile (panel) background - green. To save the information I execute at the same event a planning sequenz which saves the information - tab, tile and state (as a keyfigure - integer).
These informations are now saved in an DSO.
issue:
Now, I have the problem to get the state while reopening the dashboard.
One solution could be using if-else conditions to identificate the tile and the right state of a tile. But if you see below, I would need all combinations of the condition which would be a huge efford to set and to maintain.
If ( tab = tab_1)
if ( tile = tile_1)
if (state = 1)
PANEL_1.setCSSClass(..);
if (state = 2) ....
if (tile = tile_2) ...
if (tile = tile_3)
If ( tab = tab_2)
if ( tile = tile_1)
if (state = 1)
PANEL_1.setCSSClass(..);
if (state = 2) ....
if (tile = tile_2) ...
if (tile = tile_3)
With DS_1.getMembers I get my information from the DSO. With DS_1.getData("Keyfigure State",..) and a forEach loop I can go though the combinations.
Maybe I have a wrong thinking ... and you already have a better solution for this issue?
Another solution could be, showing a chart/query at all of the tiles - which shows an state like a exception. But it does not like very nice and I would need a mass of queries which is not improving the performance.
best regards,
Martin