Creating a list from a referenced app

Comments

2 comments

  • Rainer Grabowski

    Hi Jeremy,

    this should work:

    var status = @All of Status;
    var version = @All of version;
    var lines = [];
    for(var i = 0; i < status.length; i++){
    lines.push("- **" + status[i] + "**: " + version[i]);
    };
    lines.join("\n")

    For this code it's important that in all Document Control items both fields (status and version) always are filled. 

    Another way: 
    In Document control  add a (hidden) calculation field:, name it e.g "List line":

    "- **" + @Status + "**: " + @Version 

    And then in the Products App:

    @All of List Line.join("\n")

    Rainer

    1
    Comment actions Permalink
  • Jeremy Caunt

    Hi Rainer, 

    Thank you so much that's perfect, exactly what I needed.

    You are indeed the Java Jedi..!

    Jeremy

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk