Export / Spreadsheets Query Setup
v7,v6
From v6.1 Vetlink has a query creation section that can be used to create an export to csv based on an SQL query.
From 6.1o it can be set up to have a date set as filter option. Dates can be made a filter option before 6.1o
Click here to see Parameter / filters available
Click here to see Parameter / filters available
To set up the query:
- Go Reports -> Export/Spreadsheets -> Choose Category -> Add new
- Set; Name, Category, Set Table link = Query
- Save (query doesn't save after saving first time so have to go back in again to add it)
- Double click Export query created
- Click properties
- Set Shared = Yes
- Enter query that you want
It usually easiest to test the query in ibview first then copy paste across - To set up query so it creates a filter selection
- Find parameter in following list (not all parameters will work so just have to try it and see if it works)
- Enter parameter as :Name/*Description*/
- For example
select * from "Bill_Main"
where "Dis_Date" between :DateLo/*Bill Date*/ and :DateHi/*Bill To*/
- Save the query export
- When User runs the query they will now come up with a filter selection.
- Export can then be run and saved as a CSV file.
- After opening csv, if they do any formatting they need to save as an xlsx file.