Programmatically populate dropdown from data source

376
2
Jump to solution
07-19-2022 11:36 AM
Danik-B
New Contributor III

Experience Builder Dev Edition 1.8.0

I need to populate a jimu-ui Select from the titles of WebScene.presentation.slides.  I have created a DataSourceComponent which seems to be linked to the webscene I need to get the slides from. However, whenever I try to work with it I can't access the presentation property of the webscene.

How do I get access to WebScene.presentation.slides?

Thanks, 

1 Solution

Accepted Solutions
TonghuiMing
Esri Regular Contributor

@Danik-B If you don't need the interaction with map/scene but trying to only obtain the slides, you could use sceneDs.map.presentation.slides, with 'sceneDs.map' being the JS API web scene object.

View solution in original post

0 Kudos
2 Replies
TonghuiMing
Esri Regular Contributor

@Danik-B If you don't need the interaction with map/scene but trying to only obtain the slides, you could use sceneDs.map.presentation.slides, with 'sceneDs.map' being the JS API web scene object.

0 Kudos
Danik-B
New Contributor III

Thanks @TonghuiMing!  My problem was that I wasn't using the map object in the DataSource.  I thought the ds would be the map object, didn't realize I had enter the map object.