HEY! many thanks for replaying! Im aware now that you can only get all components within a container, if you want to use this technology you'll need to use containers and use a serialized Containers to place your components, Ill solved doing this:
every page need a group of containers to "group" your components like this:
'Class module
Sub Class_Globals
' to store all proyect pages and included contaners
Private ThisPageContainers as Map (you can populate this from a JSON file wich contains an array of all containers of your project)
End Sub
public Sub ConnectPage()
' call the JSON file and populate ThisPageContainers with json => map
Dim directory As String = "Your json file path"
Dim TheJson As JSONParser
json.Initialize(File.ReadString(directory,"your json file name"))
ThisPageContainers.Initialize
ThisPageContainers= json.NextObject
End Sub
JSON Sample: (this is to predefine your object containers and all of your components on each page needed, run a loop
{
"myapp": {
"pageA": {
"ContanerA1": { ...container properties ...},
"ContanerA2": { ...container properties ...},
"ContanerA3": { ...container properties ...},
"ContanerA4": { ...container properties ...},
"ContanerAN": { ...container properties ...}
}
"pageB": {
"ContanerB1": { ...container properties ...},
"ContanerB2": { ...container properties ...},
"ContanerB3": { ...container properties ...},
"ContanerB4": { ...container properties ...},
"ContanerBN": { ...container properties ...}
}
}
}
Now you can get all items within all containers in your page with a simple loop that runs all the ThisPageContainers map to get all you components