RockU Entity Commands

You are here:

Entity Commands

Presenter: Jon Edmiston Length: 6:37

 
The following Lava code examples are used in this video:

{% person where:'LastName == "Decker"' %}
    {% for person in personItems %}
        {{ person.FullName }},
    {% endfor %}
{% endperson %}
{% person where:'LastName == "Decker" || Position *= "Pastor"' %}
    {% for person in personItems %}
        {{ person.FullName }}
        ({{ person | Attribute:'Position' }})
    {% endfor %}
{% endperson %}
{% person id:'3' %}
    {% for item in personItems %}
        {{ item.FullName }} <br />
    {% endfor %}
{% endperson %}
{% person ids:'3,4' %}
    {% for item in personItems %}
        {{ item.FullName }} <br />
    {% endfor %}
{% endperson %}
{% person dataview:'1' %}
    {% for item in personItems %}
        {{ item.FullName }} <br />
    {% endfor %}
{% endperson %}
{% person dataview:'1' where:'Gender == Male' %}
    {% for item in personItems %}
        {{ item.FullName }} <br />
    {% endfor %}
{% endperson %}
{% person dataview:'1' where:'Gender == Male' sort:'LastName, FirstName desc' %}
{% person dataview:'1' where:'Gender == Male' sort:'LastName, FirstName desc' offset:'5' limit:'5' %}
{% group where:'GroupTypeId == 10' sort:'Name' %}
    {% for item in groupItems %}
        {{ item.Name }} <br />
    {% endfor %}
{% endgroup %}