Skip to main content
Solved

Changing the fieldname for Sum only in one table

  • 27 June 2024
  • 2 replies
  • 36 views

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?
 

 

2 replies

Userlevel 3
Badge +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

Userlevel 1
Badge +3

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

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator