OriginalPostID-265502
toforum.txt
Discussion posts and replies are publicly visible
I know this is an old thread now, but for the record, with the advent of Appian 17.2 and the new "a!forEach()" function, the previous best solution (per Josh) is now replaced with a far simpler and more elegant option.
This would do it for you:
choiceLabels: a!forEach( local!dataAssets.data, fv!item.manufacturer & " " & fv!item.model )
I've got into the habit of using keyword syntax for any a! namespaced function, but for any fn! namespaced function I don't usually bother as it seems a little overkill for those functions...
I guess the important thing is consistency - so if , as in that example, the a!dropDown function is written with keyword syntax, I'd continue with keyword syntax for a!forEach.
Oh, I was talking about functions that break outright if you try to pass in keywords. One example I've run into in the past is substitute().
I agree with you about maybe just always using keyword syntax for a! functions, except (as you said) how tiring it gets using it everywhere for the "primitive style" ones like a!save (another example where I have almost never bothered using keyword syntax). But now that autocomplete in the interface editor has improved to the point where it's almost painless to use (as opposed to the torturous pre-17.x version), i might start trying to just go ahead and do it for best practices sake.