Counting number of related apps

Answered

Comments

4 comments

  • Official comment
    Morten Siebuhr

    Hi Art,

    Pick any of the "[ ] All of X" for the desired relation. (That will return a list of X for all the related items). Type ".length" after that to get the length of the list.

    The entire script should end up like "@All of Title.length" and return a number.

    Comment actions Permalink
  • Stefan Ukena

    Hi Art,

    you will need to add an additional calc-field to the items you want to count. Then have that field always output 1. Now you can count these items by summing over that field in the original app.

    Does that make sense?

    Here is a calculation that always outputs 1:

    var foo = @AnyField; // only needed because otherwise Podio will not let us save the template
    1;

    That's it. Now use this to count the items in that other app.

    Best,
    Stefan

    http://www.diekollaborateure.com/go/podio/help

    0
    Comment actions Permalink
  • James Hayward

    Thanks Stefan - that worked a Gem... now to get into sum..

    0
    Comment actions Permalink
  • John Trickett

    This has stopped working for me. Has anyone else noticed an issue?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk