Description
Hi Concordion Team,
This might be related with the already raised issue Concordion Table Support. Apologies in advanced if it's the case.
Currently working on a way to access the table data in a map like format, map key being the column value and the value associated to the key being the column value.
Found two approaches so far, one using an ONGL map and the other using the #TEXT variable.
- the approach with the OGNL map has it's disadvantage that it requires to create the OGNL map - example 1 and 2 from SpecificationWithOGNLMap.md
- the approach with the #TEXT variable has it's disadvantage that if we change the order of the columns in the input table the method to generate the input message will not work as expected since we are using a string array - example 2 from SpecificationWithTEXTVariable.html
Can you please help with your input if there is a way in Concordion to access the table data in a map like form?
If not, is this something that you consider in the future to have and implementation that will expose a variable like #TABLEDATA to store the table data in the map like format?
Created a small project to highlight the above: https://github.com/DragosCotoc/FunctionalSpecifications/tree/main
Markdown files SpecificationWithOGNLMap.md and SpecificationWithTEXTVariable.md:
https://github.com/DragosCotoc/FunctionalSpecifications/tree/main/src/test/resources/fixtures
HTML reports SpecificationWithOGNLMap.html and SpecificationWithTEXTVariable.html:
https://github.com/DragosCotoc/FunctionalSpecifications/tree/main/src/test/resources/results
Thank you and regards,
Dragos