Cascading Relationships in Calculations
I have a question about whether you can calculate through cascaded relationships. Let's say app A has a relationship with app B and app B has a relationship with app C, but app A and app C do not have a relationship. However, I want to be able to calculate a text value in app A that includes the text field in app C that is referenced from app B for which app A has a relationship. I call this a cascaded relationship, although it might be called a nested relationship or other nomenclature. Example of something that I don't believe can be done directly, but that I would like to do is below. "@all of Sale to Company" is in italics below because it really doesn't come up as an option when typing "@all of", but I use it to illustrate what I would like to do. In app A, I would like to be able to do the following:    Field name: "Payment", calculation field: @all of Sale to Company + ", Payment " + @all of Payment Number.toString(10).join(", ") In app B exists the following:     First field name: "Sale to Company", relationship field referencing "Company" text field in app C    Second field name: "Payment Number", number field In app C exists the following:    First field name: "Company", text field What I want to have at the beginning of the calculation field "Payment" in app A is the text value in the "Company" text field in the app C item that is linked from the "Sale to Company" relationship field in the app B item that is linked from the app A item.  But in the Modify Template function, neither of them show up in the drop down list in the "Payment" calculation field after typing "@all of". I know there is a workaround: create a calculated (text) field, e.g., "Company linked", in app B that is equal to the app C "Company" text field, then have "Payment" field in app A reference the "Company linked" field in app B. However, this is cumbersome and adds complexity that might not be necessary. Is there a way to reach the cascaded relationship field directly as stated above?

  • Hi Mark, Markdown is currently not supported in iOS-Podio-App. I am not sure though about the Android-App.  Marcus
  • Hi Rainer, I found out just yesterday that our users who have iPhones don't see the graphics that I have provided. All they see is the text of the link. Is that always true for the iOS machines or could it be the format I'm using (online 3rd party Website). Thanks, -Mark
  • Thanks Rainer - very much appreciated! I'm a big fan of simplicity, and this little work-around certainly helps address a weakness of the Podio app 'editor'. Without the ability to create app sections/dropdowns/etc, these separators do a great job of providing a tidy visual distinction.
  • Hi Garret, you have to use markdown syntax for showing the button (or other images) in the calculation field. More about markdown see here  And cause Podio needs a variable token in a calculation field you have to satisfy Podio by picking a token which is there but has no function:  var onlyForPodioSatisfaction = @unique id; var button = "the dabutton-url";"![any text that is shown if the image doesn't work](" + button + ")" That's all. Hope that helps,Rainer  
  • Hi Rainer, I'm completely new to the deeper uses of Calc fields in Podio, and have zero JavaScript experience (yay!). For some initial experiments, I wanted to implement the separators that you've described in this post. To that end, can you please post the JS code that is required in the Calc field? I'm assuming it's very simple, but unfortunately, I have no idea what it is! PS - I've already created some test buttons. (ie. Network Documentation) Thanks in advance!
  • Hi Mark, to satisfy Podio calculation control just do: var needless = @title field;"Hello" or //@title field"Hello" Both have the same effect: Podio calculation field control is happy cause you reference another field, but you don't use the field token . // is used in JS to add comments to a code. Everthing after // till the next line break isn't displayed. If you want to write a longer comment with line breaks you can use: / Comment line 1comment line 2/ "The link" can be the URL of an image at a public website or the URL of a Podio file. If you've a website you can create your own public links for each image (build an image, store it on the website - like my client has done in the screenshot in my first posting). If you want to store the image file in Podio be aware, that all persons who should see the separator image have to be in the same workspace where the file is stored. If you store it in Workspace 1 and use the link also in a calc field in workspace 2 and person A is member only in workspace 2 this person can't see the image. You can also use use remote services to create nice separators (cause I've seen you in the Globiflow-Workspace you can find more information here: https://secure.globiflow.com/blog/remote-services-tricks-and-hacks.php). I use dummyimage.com and dabuttonfactory.com (like in the screenshot below).   You can use a "Separators" app for this. But I wouldn't recommend it cause you've to reference each item where this separator should be shown to the item which holds the separator via a relationship field.  Hope that helps,Rainerrg@delos-consulting.com
  • Hi Rainer, I appreciate your help on this. Since the time that you wrote your response, I have gotten on to some other things and now I'm needing to implement the separators. I already have implemented several system fields, but did not do the system separators because I had trouble knowing the best way to implement them. The problems I am having in making this separator in a calculation field are 1. When I try to put static data, I get the error in the attached screenshot, indicating that I must reference another field. (In my previous question, I said that I "must provide at least one link", but what I meant is that I "must reference at least one other field.") 2. When I reference another field, I believe I must reference a field in the same app, or reference a field in another app to which this app references. Therefore, I'm having trouble understanding how I get that reference to the other app. I didn't quite understand the technical details of what to do from your description. You said, "at the position where the separator should be in the template I add a calculation field and enter the link." When you said you "enter the link," do you mean a link to a graphics file, or to a web link, or to a relationship to another item in another app, or to another calculation field, etc.? Do I need another field in the app to make this happen, or another relationship, or something? I'm sure it is easier than I have made it, and it will jump out at me when you describe it. Thanks for sharing all of your knowledge with this user community! -Mark P.S., I thought about having a separate app that has different separators as items, and referencing one of those items for a given separator in a given app, but couldn't figure out how to reference that app item in a calculation.
  • Hi Mark, at the position where the separator should be in the template I add a calculation field and enter the link. YOu have to do it for each app and each position.  Rainer
  • Rainer, How did you make the section separator since you must provide at least one link any any calculation field? -Mark
10 of 12
This question is closed.