Solved

Set my Gantt-chart readonly


I tried to set my Gantt-chart to readonly, such that users would not be able to move any tasks on the Gantt-chart. Unfortunately I cannot find neither this option in WebUI nor in any AIMMS Manual.

Could you help me to set it up?

Thanks !
icon

Best answer by User Support 31 May 2019, 20:11

Hi @Curious AIMMS-bot 2

There are 2 different ways to do this:
- You may remove TaskDuration and TaskStart from the predeclared AIMMS set of "CurrentInputs".

- You may cherry pick the exact item you want to make read only by using the same process used in the table widget:
https://documentation.aimms.com/webui/table-widget.html#creating-read-only-cells
Please apply the flag on the Start identifier (TaskStart in my case)

StringParameter TaskDuration_flags {
IndexDomain: (t,p,p1);
Definition: "readonly";
}

Please see https://documentation.aimms.com/webui/gantt-chart-widget.html#making-some-or-all-tasks-read-only-in-the-gantt-chart
View original

2 replies

Userlevel 2
Hi @Curious AIMMS-bot 2

There are 2 different ways to do this:
- You may remove TaskDuration and TaskStart from the predeclared AIMMS set of "CurrentInputs".

- You may cherry pick the exact item you want to make read only by using the same process used in the table widget:
https://documentation.aimms.com/webui/table-widget.html#creating-read-only-cells
Please apply the flag on the Start identifier (TaskStart in my case)

StringParameter TaskDuration_flags {
IndexDomain: (t,p,p1);
Definition: "readonly";
}

Please see https://documentation.aimms.com/webui/gantt-chart-widget.html#making-some-or-all-tasks-read-only-in-the-gantt-chart
Userlevel 4
In a similar vein, I want to restrict the movement of the Gantt chart bars to the same row. This is a bit like having each job "read-only" for that resource, but still adjustable on time and duration.

Is this possible? Should I use some derivation of your solution above?

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