Hey! If I understood correctly, you’re trying to extract some values from a WeWeb collection and use them in the DOM, right?
If that’s the case, I can think of two possible approaches:
-
One way is to iterate over the existing project collections and look up the one you need by using a key or a value from your current instance. This should return the collection itself for you to grab whatever you need.
-
The other option would be to use one of the functions I shared in my cheatsheet (link below) on how to use collections dynamically. Specifically the one that retrieves the current collection’s config. That should give you access to the queries and values it’s using to request data.
Just keep in mind: if the data is coming in dynamically, it often returns the variable as a string (like the literal {{DYNAMIC_VARIABLE_IDENTIFICATOR_NOT_THE_VALUE}}
) instead of the actual value, so you’ll likely need to apply just a bit of data transformation to get what you need.
Here’s the link to the guide. Hope it helps and is what you’re looking for!
- Dynamic Collection Manipulation Guide
Best,
Bruno