Solved

How to change the WebUI display name of a parameter/set?

  • 2 September 2021
  • 2 replies
  • 37 views

Userlevel 1
Badge

In my projects I like to use prefixes such as ‘s_’ for sets and 'p_’ for parameters.

However, when designing a webUI page, I would like to mask these names with something more human-friendly. How do I do this?

My minimal working example project contains two items:

Set s_DummyData {
Text: "SetDescription";
Index: i_dummy;
Definition: {
DATA {1 .. 100};
}
}

Parameter p_SampleParam {
IndexDomain: i_dummy;
Text: "ParamDescription";
Definition: {
val(i_dummy) * 100;
}
}

What I hoped the Text attribute would do, is replace ‘s_DummyData’ with ‘SetDescription’. Instead I see this when I enter a table in the WebUI:

 

icon

Best answer by Pratap Kumble 3 September 2021, 05:53

View original

2 replies

Userlevel 4
Badge +2

Hi @LowBjorn ,

 

You can achieve this by add a “translation.properties” file in your “MainProject\WebUI\resources” folder.

You can edit the “translation.properties” file in any text editor, and just add the translations there. I’ve attached the file for your reference.

Here is a link in the documentation as well - https://documentation.aimms.com/webui/multi-language.html#project-specific-translations

Please let us know if this worked for you.

 

Thanks.

Pratap

Userlevel 1
Badge

@Pratap Kumble Amazingly simple, the example file and the documentation are exactly what I need. 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