ProApp Designer - Release 14.10 (Package 27)

Configure Custom action for Presentation Generator

To generate presentations using the Presentation Generator, it can be configured within Aras Innovator as either custom actions or CUI (Client User Interface) menu items. Steps to use it through custom action:

  1. Create a custom action on the context item type.
  2. Create and attach a client method that invokes the server method named “as_GeneratePresentation”, which internally utilizes the PresentationService provided by the Presentation Generator.
  3. The “as_GeneratePresentation” method can be executed on a context item, which is then used to replace property values within the presentation template.

    e.g.

  4. Additionally, a custom server method can be introduced to modify the values of the context item before initiating presentation generation. Instead of directly calling the “as_GeneratePresentation” method, this custom method can include logic to set or transform property values on the context item. Once the necessary adjustments are made, a PresentationService object can be instantiated, and its APIs can be invoked.

    e.g.

    Item contextItem = inn.newItem(itemType, “get”);
    contextItem.setID(itemId);
    contextItem = contextItem.apply();

    Prorigo.Plm.PresentationGenerator.IPresentationService presentationService = new Prorigo.Plm.PresentationGenerator.Aras.PresentationService(inn, CCO);

    var fileItem = inn.newItem(“File”);
    var fileId = presentationService.GeneratePresentation( contextItem, “as_GetDocumentAssociationJson”, false ); //Boolean parameter to indicate file to be checked in to item as per configuration or not
    fileItem.setID(fileId);
    var resultItem = fileItem.apply(“get”);
    return resultItem;