0

Concat Formula

Is there any way to display a concat formula, but instead of displaying the items in a view like:

sample 1, sample 2, sample 3, sample 4

 

Can I have them in a list view, for example:

- Sample 1

- Sample 2

- Sample 3

- Sample 4

13 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    Hi,

    from the manual: join(array,"separator") - Returns a string result with each element separated by a separator of your choice. That can also be a line break and/or a string.

    Steven

    • SMoore
    • 4 yrs ago
    • Reported - view

    can you provide an excample?

    • Ninox developer
    • Fabio
    • 4 yrs ago
    • Reported - view

    Hi.

    Try this:

    ---

    let myArray := ['Sample 1', 'Sample 2', 'Sample 3', 'Sample 4'];
    join(myArray, "
    ")

    ---

     

    Fabio

    • SMoore
    • 4 yrs ago
    • Reported - view

    Did not work, I am working with formula concat('Customer Notes'.'Contact Date and Type');

     

    Which is outputting: Email - 11/27/2019, Call - 11/27/2019, Email - 11/30/2019, Call - 11/30/2019, Email - 12/03/2019, Call - 12/03/2019, Email - 12/05/2019, Call - 12/05/2019, Letter - 12/05/2019, Letter - 12/05/2019, Email - 12/06/2019

     

    I would like to specifically have: 

    • Email - 11/27/2019

    • Call - 11/27/2019

    • Email - 11/30/2019

    • Call - 11/30/2019

    • Email - 12/03/2019

    • Call - 12/03/2019

    • Email - 12/05/2019

    • Call - 12/05/2019

    • Letter - 12/05/2019

    • Letter - 12/05/2019

    • Email - 12/06/2019

     

    I am trying to pull a list from a linked table. 

    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    Hi,

    can you try this:

    ---

    let q := concat('Customer Notes'.'Contact Date and Type');

    join(split (q,","),"

    ")

    ---

    or in one line (not sure it will work):

    join(split(concat('Customer Notes'.'Contact Date and Type'),","),"

    ")

    Steven

    • SMoore
    • 4 yrs ago
    • Reported - view

    That worked! I am now trying to figure out how (with each line) to include "• "

    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    Try here: 

    join(split(concat('Customer Notes'.'Contact Date and Type'),","),"• 

    ")

    • Sean
    • 4 yrs ago
    • Reported - view

    For what it's worth, it looks like the formula is converting an array to a string then back to an array and then back to a string. I'm pretty sure you can just use join() without the split() and concat().

    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    So in other words,

    join('Customer Notes'.'Contact Date and Type',"

    ")

    should do the trick?

    S Moore, can you try this and provide feedback please?

    • SMoore
    • 4 yrs ago
    • Reported - view

    Yes, 

    join('Customer Notes'.'Contact Date and Type',"

    ")

     

    DOES WORK!

    • Sean
    • 4 yrs ago
    • Reported - view

    Yeah, I think the only difference between concat() and join() is that join() let's you use a custom separator.

    • Ninox partner
    • RoSoft_Steven.1
    • 4 yrs ago
    • Reported - view

    Thank you for your valued comment, Sean, we're learning every day.

    • Sean
    • 4 yrs ago
    • Reported - view

    😊  Life would get pretty dull if we weren't.

Content aside

  • 4 yrs agoLast active
  • 13Replies
  • 3286Views