Skip to main content
July 15, 2022
Solved

Save a list of items to 1 cell

  • July 15, 2022
  • 1 reply
  • 0 views

Hi,

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

Thanks,

    Best answer by mikes0011

    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, ", ")
    )

    1 reply

    mikes0011
    mikes0011Answer
    Brainy
    July 15, 2022

    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