Two questions here today:
- Trying to use Draft.query(queryString, filter, tags, omitTags, sort, sortDescending) and sort by modified - using the following:
var drafts = Draft.query("", "archive", "tagname","","modified")
Was hoping I could pull all drafts in the archive with tagname sorted by modified date (newest would be the top) - transforming these into button titles. Getting a “Script Error: TypeError: Cannot convert primitive to NSArray”. What am I missing here?
-
Move draft I am working on to archive - can’t seem to figure out how to do something like:
d.archive(); //know this is incorrect…
d.update():
Anyone have an example of Javascript for move to archive?
Thanks!