Skip to main content
Solved

Changing the fieldname for Sum only in one table


Forum|alt.badge.img+4

Hi,
I want to be able to change the fieldname of “sum” to “Zone Total” for only one table widget, say tbl_demand. I know we can change it in the fieldname.properties file, but this changes it for all the tables.

 

So, is there a way to do it for only one table?
 

 

Best answer by Madhu Krishnappa

Hi @gorkem
 

Thanks to my team member @Koos Heerink, we just figured out that we can achieve this through custom CSS.

 

 Before applying custom CSS: 

Please identify the unique widget URI of your table. You can inspect the DOM of your WebUI page, and locate data-widget.uri attribute.

  Replace “MyTables-UniqueURI” with the URI of your table widget.

.aimms-widget[data-widget\.uri="MyTables-UniqueURI"] .annotation-sum .cell-wrapper label[data-old-title="sum"] {
visibility: hidden;
}

.aimms-widget[data-widget\.uri="MyTables-UniqueURI"] .annotation-sum .cell-wrapper label[data-old-title="sum"]:before {
content:"Zone Total";
visibility: visible;
}

With the above custom CSS, my table was shown as 


I hope this helped.

Thanks,
Madhu Krishnappa
AIMMS WebUI Product Owner

View original

2 replies

Madhu Krishnappa
AIMMSian
Forum|alt.badge.img+5

Hi @gorkem
 

Thanks to my team member @Koos Heerink, we just figured out that we can achieve this through custom CSS.

 

 Before applying custom CSS: 

Please identify the unique widget URI of your table. You can inspect the DOM of your WebUI page, and locate data-widget.uri attribute.

  Replace “MyTables-UniqueURI” with the URI of your table widget.

.aimms-widget[data-widget\.uri="MyTables-UniqueURI"] .annotation-sum .cell-wrapper label[data-old-title="sum"] {
visibility: hidden;
}

.aimms-widget[data-widget\.uri="MyTables-UniqueURI"] .annotation-sum .cell-wrapper label[data-old-title="sum"]:before {
content:"Zone Total";
visibility: visible;
}

With the above custom CSS, my table was shown as 


I hope this helped.

Thanks,
Madhu Krishnappa
AIMMS WebUI Product Owner


Forum|alt.badge.img+4
  • Author
  • Ace
  • 11 replies
  • July 1, 2024

@Madhu Krishnappa,
That works indeed. Great, thanks!