This commit is contained in:
2020-03-13 22:00:58 +00:00
parent 1a63d43483
commit 2c0ea96efa

View File

@@ -6,12 +6,12 @@
//PICKLISTS:
//TODO: build a sql List<AyaPickListFieldDefinition> columnDefinitionsselect and order by and a where clause that searches appropriately in each field (tags)
//it should return results based on the query where there is a single name (display) column and an id column for rowid
//and the fields should be combined in a standard way separated by spaces "Widget widgetserial username" for compactness
//WORKING QUERY
//select awidget.id AS rowid,awidget.active,awidget.name,awidget.serial,auser.name from awidget left outer join auser on (awidget.userid=auser.id)
//where awidget.active = true and ((awidget.name like '%some%') or (cast (awidget.serial as text) like '%some%') or (auser.name like '%some%') ) order by awidget.name,awidget.serial,auser.name limit 100
todo: I think query builder part is done for now
todo: actualy return results bit in picklistfetcher that concatenates into space delimited segments as per template into name and id and active to return to user
todo: all template routes and actual backing code and also validation, needs to validate
todo: clean out unneeded leftovers from AyaPickListFieldDefinition
todo: tests once it's all completed for server
- test regular, tags, non-text column, max-results, order, template routes etc