Referencing related app's field @All of

Comments

10 comments

  • Stefan Ukena

    Hi Jonas,

    Matt is right, the drop-down doesn't show all possible entries at once, so you need to type the field's name. However, it sounds like you are already doing that? Are you confused why you see @All of Title instead of Title? The reason is, that fields from a related app will always have @All of ... in fron of it. That's because you could have more than one item linked here, and the @All of Title will actually be a list of the titles of all related items. In your example: you could have one Client that is referenced by one or more Payment Details. So @All of Title will actually be a JavaScript array. If you are sure that you only have one item reference, you can simply "access" this item's title using the JavaScript syntax for accessing array elements like this:

    @All of Title[0]
    

    Best,
    Stefan

    dieKollaborateure.com - Podio Training+Consulting+Development English & Deutsch

    1
    Comment actions Permalink
  • Rainer Grabowski

    Exactly, referencing story.temp is the solution. You can make stroy.temp "Always hidden"

    1
    Comment actions Permalink
  • Matt Werner

    Jonas-

    I had a similar struggle. Have you tried typing in the full field name you are looking for? Sometimes there are too many fields for Podio's drop down to display, but as you get more of the field typed it in will find the proper field for you. Make sense? Solve the problem?

    0
    Comment actions Permalink
  • Tim Cumming

    I have a similar problem...

    My Story App is related to my Pics App... Story.Pic is my related field. I have items in both apps, and related data inside Story.Pic.

    In Story.Output I want to use @All of Pics, but even if I type the whole name, it doesn't show @All of Pics.

    I tried inserting a relationship field to the child too (Pics.Story) but that produced nothing.

    Any suggestions?

     

    0
    Comment actions Permalink
  • Tim Cumming

    Hi Rainer,

    Thanks for the link, but I didn't understand it!

    Do you mean I need to create a new calculation field, say Story.Temp in Story app, and then reference that from my calculation Story.Output field?

    (PS thanks for the blistering fast response! - a record, surely?)

     

    0
    Comment actions Permalink
  • Tim Cumming

    Ok Rainer I'm getting close, but I have a feeling that I have a problem with relationships.

    What I'm trying to do is create a block of text like this below, and simply replace the pic numbers with actual pics.

    7
    Caption for pic

    2
    Caption for pic

    I found that actually @All of Pics DID produce a match, based on the single item I had in a test field called Story.Sketch. I had to type it out in full, strangely, as Matt suggests. It was offered in the dropdown as Stories via Sketch (incoming). One step forward. Yay!

    But I want to reference ALL the Pics, not just the one I selected in Story.Sketch, so that I can write a FOR loop to replace all the numbers with the actual pics. So I think my referencing method is wrong. 

     

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Tim,

    I don't understand your problem.In "@all of pics " pics is the name of a field. @all of pics returns all items which have a value in the field pics as an array. You can use that array for a For-loop or you can show the content of the field pics of the returned items: @all of pics.join(). Take care that select the right token (incoming/outgoing) from the dropdown. 

    Maybe it helps if you can share screenshots of both apps which show the relavant fields. 
    Btw. You can't reference an image field in the related app, not possible in a calculation field. If you want to pull (and show) images from related items you need a workaround using Globiflow.

    Rainer

    0
    Comment actions Permalink
  • Tim Cumming

    Hi Rainer. Good idea.

    Defo got stuck here... any help much appreciated. Screengrabs + problem explained in pics below.

    0
    Comment actions Permalink
  • Tim Cumming

    We found a solution in Globiflow, which adds all images automatically to the parent Story app in a relationship field, then JS in Story.pics to do the replacement. Thanks for all your help.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk