Searching for column names in the data from another column

Hi gang,

Hopefully my title makes sense…

I have a node where I got all the items I want to list as columns in another table :

dcsapp.desc

dcsapp.url

dcsapp.m_ssmenu

dcsapp.m_ssnom

dcsapp.m_menu

I want to use them in another table as new columns headers, and search for those column names in another column named DATA (that contains a bunch of CSV data).

Basically :

| DATA                       | dcsapp.url | dcsapp.m_ssmenu | dcsapp.m_ssnom |
| dcsapp.url;dcsapp.m_ssmenu | dcsapp.url | dcsapp.m_ssmenu |                |
| dcsapp.m_ssmenu            |            | dcsapp.m_ssmenu |                |
| dcsapp.m_ssnom             |            |                 | dcsapp.m_ssnom |

I managed to generate the list, but putting it as column headers is giving me trouble, also how to search for the content of the column name in another column ?