How to show referenced items fields in a list

showitems1.4

Let’s say you have used a Relationship field in your app for referencing another app, and you want to show a list with a specific field of each referenced item.

Then you should copy paste the following code:

var d = @All of -;
var i, res = “”;

for(i = 0; i < d.length; i++){
             res += d[i] + “; \n”;    
}
res
* ——————————————————————————————————-

Created by BendixKiel ApS – Copenhagen based Podio Preferred Partner -with more than 6 years of experience in helping organizations implement Podio. Please feel free to contact us if you need help evaluate, structure or implement Podio in your organization.

BendixKiel ApS www.bendixkiel.org +45 71 99 05 80 anders@bendixkiel.org

———————————————————————————————————– */

 

Don’t forget to replace @All of – with a referenced app field that you need to show for each item.  Let’s try to put it in Modify Template:

Modify template in Podio

Modify template in Podio

 

So the result is the following:

showitems1.2

 

Do you want to sort the results? So you get a list with item fields sorted in alphabetical order? Then you should copy paste the following code:

var d = @All of -;
var i, j;
var arr = [];
var res = “”;

for(i = 0, j = 0; i < d.length; i++){
     arr[j++] = d[i] + “\n”;
}

arr.sort();

for(i = 0; i < j; i++){
      res += arr[i] + “\n”;
}
res

/* ——————————————————————————————————-

Created by BendixKiel ApS – Copenhagen based Podio Preferred Partner -with more than 6 years of experience in helping organizations implement Podio. Please feel free to contact us if you need help evaluate, structure or implement Podio in your organization.

BendixKiel ApS www.bendixkiel.org +45 71 99 05 80 anders@bendixkiel.org

———————————————————————————————————– */

 

Don’t forget to replace @All of – with a referenced app field that you need to show for each item. Let’s try to put it in Modify Template:

showitems1.3

 

So the result is the following:

showitems1.4

One Response to How to show referenced items fields in a list