Skip to main content
Known Participant
Jul 15, 2022 6:14 PM UTC
Solved

Save a list of items to 1 cell

Hi,

I want to save this below to a cell like this "123456, 78900, 4567" in the user interface

Thanks,

    mikes0011
    mikes0011Answer
    Brainy
    Jul 15, 2022 8:46 PM UTC

    This depends on what you mean by "save to", and what you mean by "cell"...

    Taking the easiest approach, for example, if by "cell" you mean a single read-only text field, and by "save to" you mean "use in for display-only purposes", then it's just a matter of setting the value of an a!textField() component to the joined values of an array, like this:

    a!textField(
      label: "joined MemID",
      readOnly: true(),
      value: joinArray(ri!MemID, ", ")
    )

    The Expression Guru

    1 reply

    mikes0011
    mikes0011Answer
    Brainy
    Jul 15, 2022 8:46 PM UTC

    This depends on what you mean by "save to", and what you mean by "cell"...

    Taking the easiest approach, for example, if by "cell" you mean a single read-only text field, and by "save to" you mean "use in for display-only purposes", then it's just a matter of setting the value of an a!textField() component to the joined values of an array, like this:

    a!textField(
      label: "joined MemID",
      readOnly: true(),
      value: joinArray(ri!MemID, ", ")
    )

    The Expression Guru