Working around missing values in arrays

Comments

9 comments

  • Nathan Anderson

    Same problem. We need a way to get an array of the linked object rather than just individual fields of linked apps.

    1
    Comment actions Permalink
  • Volker Drewer-Gutland

    Hi

     

    I have the same problem here. Does anyone know a fix/work around for this?

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Volker,

    there's no general workaround, but it's possible. Depends on your use case. Can you share some details about what you want to do?

    Rainer

    0
    Comment actions Permalink
  • Volker Drewer-Gutland

    Hi Rainer

    Thanks for your interest and also your forum posts in other questions. I did some research and reading on the forum the past few hours and thanks to your hints/advices to other users I was able to figure out my own solution:

    I created a calculation field in my referenced app where I copy the value of the potentially empty field and in that calculation field I check if the field is defined using the null operator:

    @hours == null ? -1 : @hours

    -1 is my special value indicating that the hours field is not defined/set in this item.

    Consequently, when I reference the calculation field in my "main" app the returned array is always consistent and I can check against my special value if the field value was set by the user.

     

    Volker

     

     

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Volker,

    yes, that's what I do all the time. I've some apps which have mre of these "Help"-Fields than reguar fields :) Very helpful for creating Reports or Dashboard-Items. 

    Rainer

    0
    Comment actions Permalink
  • Volker Drewer-Gutland

    Hi Rainer

     

    I've learnt by now that a lot of "helper" fields in Podio are sometimes needed in order to accomplish a specific task. But I haven't come up with a smart way yet to let the user know, that these "helper" fields are nothing to worry about and that it is safe to ignore them. Unfortunately, Podio does not allow (yet?) to hide fields, even when they're not empty....

     

    Volker 

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Volker,

    you mean something like this?

    How do do it, I've described here (last comment) https://help.podio.com/hc/en-us/community/posts/205901428-horizontal-line-between-fields

    0
    Comment actions Permalink
  • Adrien BLAISE

    RAINER's workaround is great with a couple of fields, but with 30+ text fields, there's no way. I wish we could get arrays with `@All of... with nulls`...

    2
    Comment actions Permalink
  • Volker Drewer-Gutland

    Hi Rainer,

    thanks for the tip. That's a good workaround for the time being.

     

    Volker

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk