Calculation based on Item field name

Comments

1 comment

  • Rainer Grabowski (FVM)

    Hi Matt,

    is @needs + @received an addition (plus) or should both values been displayed?

    Maybe you can use a markdown table:

    var name = @all of name;
    var needs = @all of needs;
    var receive = @all of receive;

    var result = [];
    for(var i = 0; i < needs.length; i++) {
    result.push(name[i] + " | " + needs[i] + " | " + receive[i])
    }

    "Item-Name | # Needs | # Receive \n" +
    "--- | --- | --- \n" +
    result.join("\n")

    The result should be a table with 3 columns and "Item-Name", "# Needs" and "# Receive" as header and as table content

    2x2 xx xx
    4x4 xx xx

    But to get a correct table it's necessary to have values in each field (name, needs reveice) in every item (or you have to create another if-condition to define on which items thecalculation should be executed).

    Rainer
    rg@delos-consulting.com

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk