Home Forums Presentation Forms Dynamic menu item example or support?

Viewing 1 reply thread
  • Author
    Posts
    • #14976
      Mark De CarvalhoMark De Carvalho
      Participant

      In the previous UI you could create menu that has dynamic list of menu items. For instance, in the Entity Service Model form, the right click menu had a “Schedule Touch” option that listed Task and Schedule Item templates based on whether the touch type was associated with those templates. I do not see how to achieve this in the 9 UI, is there an example or a guide you can point me to?

      0
    • #14990
      Atulan ZamanAtulan Zaman
      Participant

      Hi Mark.

      You can use the <Menu> control to show a dynamic collection, and bind a UI event to execute the action with the selected value as a parameter. See the example below, which shows the list of call record templates and handles the action in the “addRelatedCallRecord” event. This example is taken from EntityActList.layout.

      <Menu captions=”caption” event=”addRelatedCallRecord” icons=”icon” items=”(@@ ActTemplate)” name=”mnuAddCallRecord” order=”(caption)” where=”(and (@ allowNew) (@ isCallRecordTemplate))”/>

      0
Viewing 1 reply thread
  • You must be logged in to reply to this topic.