I have fields such as this

1 2 3
val1 val2 val3

I am wondering if I can rename those fields accorindg to a table such as

Key Param
1 MyParam1
2 MyParam2

So at the end, the result would be

MyParam1 MyParam2
val1 val2

Select values does not allow the evaluation of variables in the rename metadata field.

Is it eady to do that in Javascript perhaps?