Hi, I want to merge table cells when the values are same but don't know how to do it.
As you can see below, if 1st column values are same, then want to merge them and do center align
I connected the table from DB table.
Or, I found the link to do it (https://www.outsystems.com/forums/discussion/78312/reactive-table-merge-cell-same-value/) but also couldn't understand below steps.
3- In the column cell you wish to merge equal values do an inline as follows: data-id = "key" + value of the current cell!
4- In the screen insert an expression anywhere
I hope I could know how to 'insert javascript' in my screen.
If someone could attach .oap file, I would huge appreciate it.
Hi!
I read the links you refer and they are not for reactive, there are some things that must be different.
1º Instead of using an expression pot your script in a widget "HTML Element"
2º make sure the widget is inside the "if" that displays the table "on after fetch" to ensure that the table is populated before the script runs.
Hope this helps
Graça
Hi, Graça!
Thank you for your reply.
I found "HTML Element" widget but can't understand the 2nd sentence.
Should I put "HTML Element" widget into "if" widget?and "on after fetch" is sort of event that I should select when the screen is being rendered?
I'm just newbie for Outsystems so if you could give me more explanations or some refer link, I would appreciate it!
I attached .oap file as my 1st question.
I put the inline to cell attributes and put JavaScript to "On Initialize" logic as well but it didn't work😅
PS :
"In the column cell you wish to merge equal values do an inline as follows: data-id = "key" + value of the current cell! "
Thanks to rediscover this interesting post.
G