In WinUI (SO yesterday) we have the ability to assign a procedure to the on-double-click action in a Gantt chart. Is there yet a way to do this in WebUI?
Solved
Assign a procedure to double-click bars on a Gantt chart
Best answer by Chris Kuip
Hi Bon,
Perhaps an alternative to making a button visible/invisible is to use Widget Actions and making selected actions visible/invisible. Admittedly, these widget actions are not officially released yet, but a preview is available, see https://community.aimms.com/what-s-new-10/widgets-actions-130
Let the parameter sp_GanttChartWidgetActions with declaration
be associated as widget action with a Gantt Chart.
In the store focus UponChange procedure we add the following lines:
Then before selecting a job, the widget menu will look like
And after selecting a job, the widget menu will look like
Perhaps an alternative to making a button visible/invisible is to use Widget Actions and making selected actions visible/invisible. Admittedly, these widget actions are not officially released yet, but a preview is available, see https://community.aimms.com/what-s-new-10/widgets-actions-130
Let the parameter sp_GanttChartWidgetActions with declaration
code:
StringParameter sp_GanttChartWidgetActions {
IndexDomain: (i_WidgetActionOrder,webui::indexWidgetActionSpec);
InitialData: {
data table
'displaytext' 'icon' 'procedure' 'state'
1 "Fix all" "aimms-lock" "pr_GCWA_FixAll" "Active"
2 "Unfix all" "aimms-unlocked" "pr_GCWA_UnFixAll" "Active"
3 "Fix Focus" "aimms-screwdriver" "pr_GCWA_FixFocus" "Hidden"
4 "UnFix Focus" "aimms-knife" "pr_GCWA_UnFixFocus" "Hidden"
}
}
be associated as widget action with a Gantt Chart.
In the store focus UponChange procedure we add the following lines:
code:
sp_GanttChartWidgetActions('3','state') := "active" ;
sp_GanttChartWidgetActions('4','state') := "active" ;
Then before selecting a job, the widget menu will look like
And after selecting a job, the widget menu will look like
Sign up
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.


