A value is declared regular string in db and im using it in cdt

Certified Senior Developer

so lets say clothesType is declared as string in db. in a rule, i am iterating over this variable using for each loop. the problem is i can't declare the clothesType as an array as it would affect existing functionality. If i could, it would solve the problem. So, are there any built in appian functions that i can use to run a for each loop over a value that is accepting one value only?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Stefan Helzle

    I'm unclear whether this is the use case OP was trying to describe (though it seems like one of the more likely options, to be fair).  I need to interject here that if someone is tempted to do this, they should strongly consider storing their list-of-values-in-text as a JSON string, to utilize the pre-built JSON conversion / parsing functionality, since even something as simple as a comma-separated list becomes a giant hassle to implement and debug the second you need it to store user-entered text, etc.

Children