-
|
I am trying to figure out how to set the DataSource on the RenderDocumentDirective |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @abpatel There are several different types of data sources, so it depends what your needs are. All the available data sources are in the namespace If you're looking to just set properties - similar to the example in: Then here the type is launchDirective.DataSources = new Dictionary<string, APLDataSource> {
{ "key", new ObjectDataSource{
Properties = new Dictionary<string, object>{ { "key", "value" } }
}
};Hope this helps |
Beta Was this translation helpful? Give feedback.
Hi @abpatel
There are several different types of data sources, so it depends what your needs are. All the available data sources are in the namespace
Alexa.NET.APL.DataSourcesIf you're looking to just set properties - similar to the example in:
https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-data-source.html#object-datasource
Then here the type is
objectso you need an ObjectDataSource, so your example would be something along the lines of....Hope this helps