- Create a view with "YQL Query: Flexible" as the type
- Query Settings:
- Alternate API URL: this config can be ignored if you are using default YQL engine.
- API method: for now only JSON method is supported.
- YQL base table: the base table to query from
- Custom open tables: if you are using your own open data table, specify it here with the format as follow:
USE (table_url) AS (table_alias)
- YQL base object: The base object YQL will be querying from. If this is left empty, the first object in the result set will be taken as the base object
- Adding Fields:
- Field name: the field to be added into the view
- Adding Filter:
- Field name: the field to be added into the view
- Operator: the operator used for comparison between the field's value and the specified value
- Value: the value of the field
- Adding Arguments:
- Field name: the field to be added into the view
- Adding Sort criteria:
- Field name: the field to be added into the view
Example:
The following YQL statement can be resulted from the following view:
View settings:
- Query Settings:
- Alternate API URL: (default)
- API method: JSON
- YQL base table: local.search
- Custom open tables: (blank)
- YQL base object: Result (or can be left blank)
- Fields:
- Field Name: Title
- Field Name: Address
- Field Name: Rating.AverageRating
- Filter:
- Field Name: query, Operator: is equal to, Value: sushi
- Field Name: location, Operator: is equal to, Value: san fransisco, ca
which will yield the following view:
