Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 52 Next »

This is the documentation for ConfiForms Server/Data Center app

However, this might also work for ConfiForms cloud and in most cases it does. But please see this page to understand the differences between server and cloud versions of the ConfiForms app.


This is a page to show how to use ConfiForms Filters by example

ConfiForms filters is the core component of the app and is used absolutely everywhere where you need to describe a condition, filter the dataset or setup the behaviour (field and IFTTT rules)

In this example we will be more focused on filtering the data, but will also touch the basics of a conditionally applied rules

Let's consider these forms that will, logically, build the bookshelf. Each book can be taken for reading and returned when ready. We will have a form for storing this state and couple of forms to store the data about the book and the author(s)






To show all books, we will leave filter property empty



No filter, showing all books in the bookshelf

To show only available books we should use for filter expression: status:avail, where status is the field name of bookshelf form and avail is the id of one of the dropdown's values



status:avail

To show books taken only by current user, we should use for filter expression: takenBy:[entry._user], where takenBy is the field name and _user is built-in property of form to get value of current user



takenBy:[entry._user]

To find books which title starts from word "The", we should use for filter expression: The* 



book.title:The*



To find books which any field starts from word "Bridget'', we should use for filter expression: Bridget* 



Bridget*

Transformation of authors:  book.authors.transform(lastName.append([entry.firstName.prepend(, )]))

To find books which any field ends with word "love", we should use for filter expression: *love



*love



To find books which any field contains word "and", we should use for filter expression: *and*



*and*

To find books which authors born before 01.01.1950, we should use for filter expression: book.authors.dob.formatDate(yyyyMMdd):<19500101 , where book. is the bookshelf form's field of Smart Dropdown type, which is reference to books form record and authors. in its turn is the books form's field of Smart Multiselect type, which is reference to author form record and dob is the field name of author form, which is transformed by virtual function formatDate.



book.authors.dob.formatDate(yyyyMMdd):<19500101

To find books which status is Available and title starts with word 'The', we should use for filter expression logical operations: 

book.title:The* AND status:avail



book.title:The* AND status:avail

To find books which title starts with word 'The' or available books of Jojo Moyes, we should use for filter expression logical operations: 

(book.title:The*) OR (book.authors.lastName:Moyes AND status:avail)

(book.title:The*) OR (book.authors.lastName:Moyes AND status:avail)
  • No labels