Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9792

XDOCReport based template rendering fails if picture is not provided

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6-RC1
    • Fix Version/s: 5.6-RC2, 5.6
    • Component/s: Renditions

      Description

      It is possible to add a bookmark in a Word template to handle a picture property, but it generates an error on rendition if the rendered document does not have a picture associated to the property.
      If other properties can be handled when not existing, using

      {(my.property)!}

      instead of

      {my.property}

      , it is not possible to use symbols like "

      {", "}

      " or "!" in a bookmark name in Word. So the process should deal with this particular case.

      Basically, inside XDocReport, the picture variable are managed in a very specific way, and I don't want to change code directly inside XDocReport at this point because we are too close from the release and we need to keep aligned on a released version of XDocReport.

      So, it is not possible to manage "if" on Picture, but we can provide a default empty picture so that when the associated Picture property is empty, the rendering is not broken.
      But the parameter binding needs to be defined, otherwise I can not do anything ...

        Attachments

          Activity

            People

            • Assignee:
              tdelprat Thierry Delprat
              Reporter:
              tdelprat Thierry Delprat
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: