I Am Having Trouble Adding & Subtracting Calculation Fields

Comments

6 comments

  • Jean-Claude Massé

    Do you have two relationship field 1 from A to B and 1 from B to A?

    If yes, you may have selected the wrong token according to relationship direction (incoming/outgoing). I don't see any reason for that to not work if all is set properly.

    1
    Comment actions Permalink
  • Vic Barbe

    Jean-Claude

    Hi!  Thanks for answering.  No I only have one Relationship field from App 2 (Labor) to App 3 (Payments).  That Relationship field is in App 3 (Payments).  In both App 2 & App 3, I also have a Relationship field to App 1, just so that I can select the proper record  from the list.

     

    Also, just as a test, I created 2 new apps that were very basic just to see if I did something wrong in my original apps, but I still cannot get the Calculation field from the 1st app to calculate in the 2nd app, even though I selected it from the drop down list.  It will do the rest of the calculation just fine, but it will not include the calculation from that 1st app.  

     

    I even tried calculating 2 calculation fields together, instead of mixing Calculation & money fields but it still will not bring over the amount from that 1st app.

     

    When I am in the 2nd app, I also select the proper record that I want from the Relationship field.  Should I not select any record from the Relationship field at all?

     

    Is there a maximum number of fields that can be involved in a Calculation?

     

    This whole thing is getting very frustrating.

    1
    Comment actions Permalink
  • Vic Barbe

    Jean-Claude,

     

    UPDATE:  I have it working now.  Thank you very much for taking the time to answer this post.  I was trying what you said about the incoming/outgoing relationship direction.  Sure enough, that was exactly what the problem was.  Originally I only had one relationship in App 3 from App 2.  I added a relationship from App 3 back to App 2, so that both apps now had relationships to each other.  I assumed App 3 would be incoming, from App 2, but for some reason it is considered outgoing.  Once I changed it from incoming to outgoing from the drop down list in the the calculation field everything started working like it should. 

     

    I am thinking that I originally must have picked the wrong one, then when I made different changes, it just kept what I had already picked which was incoming.  I don't know.  But anyway, it's working now.  So Thank you again for taking the time to answer.  

     

    So now my question is when do you use incoming & when do you use outgoing?

     

    Also, is it necessary for each app to have a relationship to the other app, or would just one relationship be good enough?

     

     

     

     

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Vic,

    So now my question is when do you use incoming & when do you use outgoing?

    There is no rule. It depends on how you need it and how it fits to your workflow and flow of data. There is only one condition which can force you to do the relation the other direction than neeed: A relationship field can have only max. 299 related (outgoing) items. Incoming relations are unlimited. 

    Also, is it necessary for each app to have a relationship to the other app, or would just one relationship be good enough?

    In my opinion vice versa relations should be the exceptional case (and shouldl be avoided), just one relationship should be the normal case. 

    Rainer

    0
    Comment actions Permalink
  • Jean-Claude Massé

    Just to complete what Rainer say, Outgoing is the relationship field. Incoming is the related item (what you have at the bottom of item, not in a field)

    0
    Comment actions Permalink
  • Vic Barbe

    Jean-Claude Masse' & Rainer

    Thank you both for taking the time to help me with this.  I have it working now.  I think I must have been using incoming instead of outgoing.  Once I changed all the Calculations to Outgoing it started working right.  

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk