this is my blocks to display an arrangement after being chosen from the the listView, is it possible to use the selected listView as a value and hide back the arrangement that was displayed or is there a better way
this is the error i get
Check your code, in the global test your are using a string and not name of any arrangment. Pass the variable name of the arrnagment
Something like this:
- The list of arrangements and the listview elements should be in alignment.
- Provides for a mixed list of horizontal and vertical arrangements
If you just want to hide a specific arrangement then adjust this code accordingly (reverse it)
The arrangements might be enumerable using the every arrangement block at screen initialize time, to build a dictionary mapping text names to component blocks
That would avoid tedious global init builds
By putting together (more or less
) what @TIMAI2 and @ABG have already said, I've prepared the annexed .aia.
In this example the lists, the dictionaries and Any components are used (though it could have been solved by using a list of lists, anyway).
In the example there are 6 layouts (3 Hor and 3 Vert) identified by different colours as below.
The first 3 are Hor and the last 3 are Vert, so the limit between Hor and Vert is #3.
By arranging in a dictionary the pointers (keys) from 1 to 6 and the respective Arrangements, when the wanted arrangement is selected in the PickList, its pointer in the dictionary is univoquely determined and the corresponding Layout is identified, as well.
For sure it's not the most elegant and concise solution, and it shall be refined and customized, but probably it might give some indication on how to "cross use" such blocks (lists, dictionaries, any components).
Last but not least: please remember that an overall (or let's call it : external) layout that includes other Layouts or components, if not shown, prevents any "inner" layout or block to be diplayed either !!!
Best wishes.
Arrangement_List.aia (5.0 KB)



