Good morning, In the GD UI SDK, I have filters wi...
# gooddata-ui
m
Good morning, In the GD UI SDK, I have filters with arrays, easy to get the values of the filter, with
filter.positiveAttributeFilter?.in?.values
What about with the array is not values but uri? How do I get the label from the uri in the sdk? Is there a function?
m
Hello @Michael Serres, you can load particular elements by their uri using
sdk-backend-bear
like this:
Copy code
backend
.workspace(<workspaceId>)
.attributes()
.elements()
.forDisplayForm(<displayFormRef>)
.withOptions({
  elements: {
    uris: <elementUri>[]
  }
})
.query();
Limitation is that there is some maximum count of the elements to load in 1 request - I think it's ~550 elements.
m
Similarly for this one, my knowledge is limited, I don’t fully understand how to use these functions, where to get the current backend, workspace. I think it’s missing a lot of tricks not knowing how to use these functions