Microsoft Dynamics Ax developer's blog

Thursday, July 06, 2006

On toolbars

Palle Algemark has recently posted about toolbars imitation in Ax:

Custom toolbars in AX,
Activating a custom toolbar

I have something to add:
  • if you want to do something with selected AOT items - use LastAOTSelection class (it's an iterator for last selected AOT items)
  • if you want to do something with active form: sit on timer, get last active form from info class (method setLastActivatedForm),remember it it's not your toolbar form and use remebered value on button clicks

No comments: