We are trying to concatenate two arrays, tried the concat, append to list w\\MNI

We are trying to concatenate two arrays, tried the concat, append to list w\\MNI, joinarray without success....is there an easy function to turn two lists {a,b,c} and {1,2,3} into {a1,b2,c3}? The arrays are multiples within CDT's and we're combining a text array with an integer array. Our concat & append to list arrays show results like {a123, b, ....}.....thanks for suggestions....

OriginalPostID-64631

OriginalPostID-64631

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Have a rule to append elements - the inputs will be of the type you want and single. Let this rule have the two inputs - element1 and element2 and the rule definition would be - element1&element2

    Now have a second rule, where you pass your array inputs. Your second rule will look something like apply(rule!Rule1, merge(arrayInput1, arrayInput2)
  • 0
    Certified Associate Developer
    in reply to Siva

    what will be the type of element1 and element 2? because while executing the rule2, there is a need to pass arguments in the Rule1, so what values must be passed, i am getting an error when i passed two arguments, both are of number type, the error is "the first parameter of apply must be a function and rule" even if i am passing the correct arguments in the Rule1 i.e. numbers, i am not getting the desired output

Reply
  • 0
    Certified Associate Developer
    in reply to Siva

    what will be the type of element1 and element 2? because while executing the rule2, there is a need to pass arguments in the Rule1, so what values must be passed, i am getting an error when i passed two arguments, both are of number type, the error is "the first parameter of apply must be a function and rule" even if i am passing the correct arguments in the Rule1 i.e. numbers, i am not getting the desired output

Children
No Data