Skip to main content
Solved

Display set values on UI

  • Dec 14, 2023 12:30 PM UTC
  • 1 reply
  • 97 views

Forum|alt.badge.img+4

I have set and values are assigned to set after clicking button on UI. I also want to show what are the values are addi=ed to set on UI. can you please guide what is widget suitable for this purpose.

 

I tried with table. below is screenshot for same. But it is displaying 1 addition to set values.

 

 

Best answer by gdiepen

You could create a new parameter    pElementAddedViaUI that is having the set as an index. Whenever you are creating new elements via the UI, you could then set the value for this new element in this parameter to 1 (indicating this element is created via the UI). Elements that are created in another way would not have a value 1 for the pElementAddedViaUI.

 

You can then use this new parameter in combination with annotations or anything else to color them differently in the UI (or just show the pElementAddedViaUI parameter in the table next to the elements. 

View original

1 reply

gdiepen
AIMMS Champ
Forum|alt.badge.img+7
  • AIMMS Champ
  • Answer
  • Dec 14, 2023 3:33 PM UTC

You could create a new parameter    pElementAddedViaUI that is having the set as an index. Whenever you are creating new elements via the UI, you could then set the value for this new element in this parameter to 1 (indicating this element is created via the UI). Elements that are created in another way would not have a value 1 for the pElementAddedViaUI.

 

You can then use this new parameter in combination with annotations or anything else to color them differently in the UI (or just show the pElementAddedViaUI parameter in the table next to the elements. 


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

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