126
Views
5
Comments
Creating vertical tables for data

Hi Everyone,

i am working on displaying the data vertically to show a comparison based on fields.

the structure of the table has to be vertical as marked in green

for example  All billed attributes are together while all recommended attributes are together


categories are aligned horizontally while values are aligned vertically

2022-09-29 10-53-19
José Campos

Hello Saif,

Check this post here

If it works mark as a solution please.

Best regards.

2022-03-10 16-20-13
saif sheikh

Hi Jose, can we not implement it using a a structure. since the link you have shared works only for traditional application 

2022-09-29 10-53-19
José Campos

Dispite the post is a "traditional app" problem, JavaScript runs in every OutSystems application. The solution given by Remco seems to work.

2022-03-10 16-20-13
saif sheikh

the ideal display is shown in the image above marked in green and yellow
while the one i could manage is using two different tables as shown below - 

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi Saif,

you could choose to simply have a structure of 3 text attributes, name, billed, recommended, and populate a list of this structure with each piece of information you want to show.

You would have to use functions for formatting in the assign statement instead of in screen expression.

If you want to make it really fancy, you can add a 4th attribute to the structure with a css class to apply to the values of that row, for example if you would want to align numerics to the right, etc.

See attached oml for a quick example,

Dorine

QDR_comparisontable.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.