This is a technique to use multiple data sources (feeds) within a single statement.
This is more for the advanced user.
To reduce your number of specific views you might want to use the same view to display different feeds. Instead of copying your views multiple times, it's more efficient to use the same view and use variable(s) to display multiple feeds in that view.
Say you have four feeds:
- [[ds:/FEED 1/entry/title]]
- [[ds:/FEED 2/entry/title]]
- [[ds:/FEED 3/entry/title]]
- [[ds:/FEED 4/entry/title]]
You can state this as
MYFEED will be a variable name. This can be any variable name you set up. This allows for multiple data source to be used in one expression by using a variable in the data source expression and DSV instead of DS in the statement.
Lets say there are separate data sources for each state and the data structure for each state is the same except for the state name:
- [[ds:/arkansas/entry/title]] etc, etc
In the app there is a list of all the states. Let's say the user taps on Arizona in the list. When they tap on Arizona we set a variable for that state using the action "Set a Variable". This sets the value for "state" on whatever value you assign to it.
This will set the Variable "state" with the value of "Arizona".
Whenever you point to one of the state data sources in the App Studio it will first look something like this: [[ds:/arizona/entry/title]]
In the Block we edit the value to look like this: [[dsv:/state/entry/title]]
- "ds" is changed to "dsv" and
- "arizona" was changed to "state"
Now any value assigned to the variable "state" will pull in the right data source for that value.
Now any state the user taps on will use the right state data source from many to pull the data into the app.