Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ There are the following type of modules:
| --- | --- |
| [Constants](/refguide10/constants/) | Constants are used to define a constant value (for example, to store a URL for a web service). |
| [Datasets](/refguide10/data-sets/) | A dataset can be used for reporting and is defined using either an OQL query or a custom Java action. |
| [Document Templates](/refguide10/document-templates/) | Document templates are used to model a template needed as input for a document export action that can generate all kinds of documents based on application data. They are composed much in the same way as forms. |
| [Document Templates](/refguide10/document-templates/) | **Deprecated in 10.24.0** Document Templates were used to design templates for exporting documents based on application data. |
| [Java Actions](/refguide10/java-actions/) | With Java actions, you can extend the functionality of your application in situations where it would be hard to implement the functionality in microflows. You can call a Java action from a microflow. |
| [Regular Expressions](/refguide10/regular-expressions/) | A regular expression is used by [validation rules](/refguide10/validation-rules/) on an entity to describe a set of criteria that a string can match. |
| [Rules](/refguide10/rules/) | A rule defines a set of criteria. With a certain input, the rule will result in a Boolean or enumeration, depending on the criteria met. It can be called from a decision to determine the direction the microflow should go once a decision is reached. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ These activities can only be used in microflows.

## Document Generation Activities

{{% alert color="warning" %}}
Document generation using Document Templates was deprecated in 10.24.0. See [Document Templates](/refguide10/document-templates/) for alternatives.
{{% /alert %}}

| Graphic | Name | Description |
| --- | --- | --- |
| {{< figure src="/attachments/refguide10/modeling/application-logic/microflows-and-nanoflows/activities/generate-document.png" alt="generate document" link="/refguide10/generate-document/" max-width=60% class="no-border" >}} | [Generate document](/refguide10/generate-document/) (microflows only) | Allows you to create a document of a certain type based on a [template](/refguide10/document-templates/). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ description: "Describes generating documents from a microflow. "
#If moving or renaming this doc file, implement a temporary redirect and let the respective team know they should update the URL in the product. See Mapping to Products for more details.
---

{{% alert color="info" %}}
This activity can only be used in microflows.
{{% alert color="warning" %}}
Document generation using Document Templates was deprecated in 10.24.0. See [Document Templates](/refguide10/document-templates/) for alternatives.
{{% /alert %}}

## Introduction

The **Generate document** activity is used to write a document to a file, based on a [document template](/refguide10/document-templates/).
The **Generate document** microflow activity is used to write a document to a file, based on a [document template](/refguide10/document-templates/).

For more information on which types of documents can be created, see [Document Type](#document-type).

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/refguide10/modeling/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: "Introduces the image functionality in Studio Pro."

## Introduction

Images can be used to brighten up your application. [Navigation items](/refguide10/navigation-tree/) and the various kinds of [buttons](/refguide10/button-widgets/) have small images (icons) to left of their captions. Images can also be used in the dynamic image widgets in [pages](/refguide10/pages/) and [document templates](/refguide10/document-templates/). Also, [enumeration values](/refguide10/enumerations/#enum-value-properties) can have images that can then be shown in data grid columns.
Images can be used to brighten up your application. [Navigation items](/refguide10/navigation-tree/) and the various kinds of [buttons](/refguide10/button-widgets/) have small images (icons) to left of their captions. Images can also be used in the dynamic image widgets in [pages](/refguide10/pages/). Also, [enumeration values](/refguide10/enumerations/#enum-value-properties) can have images that can then be shown in data grid columns.

The **System** module contains some images that are used by the standard components. If you place a data view on a page, the **Save** and **Cancel** buttons will have images from the **System** module on them. You can always use different images if you like. The same holds for images on the control bar buttons of the data grid.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,35 @@ weight: 90
aliases:
- /refguide10/Document+Templates.html
- /refguide10/Document+Templates
- /refguide10/creating-your-own-documents/
- /refguide10/data-view-document-template/
- /refguide10/document-template/
- /refguide10/dynamic-image-document-template/
- /refguide10/dynamic-label-document-template/
- /refguide10/footer-document-template/
- /refguide10/header-document-template/
- /refguide10/line-break-document-template/
- /refguide10/page-break-document-template/
- /refguide10/static-image-document-template/
- /refguide10/static-label-document-template/
- /refguide10/style/
- /refguide10/template-grid-document-template/
- /refguide10/title-document-template/
- /refguide10/data-grid-document-template/
- /refguide10/columns-document-template/
- /refguide10/table-document-template/
- /refguide10/row-document-template/
- /refguide10/cell-document-template/
#If moving or renaming this doc file, implement a temporary redirect and let the respective team know they should update the URL in the product. See Mapping to Products for more details.
---

{{% alert color="warning" %}}
The use of **Document Templates** and the **Generate Document** microflow action is deprecated and will be removed in a future version of Mendix. If you wish to use non-deprecated solutions, see the [Alternatives](#alternatives) section below.
{{% /alert %}}

## Introduction

Document Templates are used to model a template required as input for a document export action which can generate all kinds of documents based on application data. They are composed much in the same way as [Pages](/refguide10/pages/).
Document Templates are used to model a template required as input for a document export action which can generate all kinds of documents based on application data. They are composed much in the same way as [Pages](/refguide10/pages/). However, document templates were deprecated in 10.24. If you wish to use non-deprecated solutions, see the [Alternatives](#alternatives) section below.

{{% alert color="warning" %}}
This page describes what document templates are for and what kind of widgets can be placed on them. If you want to see the properties of the document template you can check the documentation for a [document template](/refguide10/document-template/) itself.
Expand Down Expand Up @@ -181,3 +204,23 @@ For more information, see [Static Image (Document Template)](/refguide10/static-
A static image inside a table cell.

{{% /alert %}}

## Alternatives {#alternatives}

Document Templates in Mendix allowed the generation of various document types. This section explains the appropriate replacement options for each previously supported document type.

### PDF

To generate PDF documents, use the [PDF Document Generation](/appstore/modules/document-generation/) capability, which allows you to define PDFs based on standard Mendix pages. This approach offers significantly greater flexibility and control over the layout and design of your PDF documents compared to the deprecated Document Templates.

### HTML

To generate HTML documents, create the HTML manually and use the token replacement capabilities of the [Mx Model Reflection](/appstore/modules/model-reflection/#token-configuration) module to insert application data. Open source tools such as [MJML](https://mjml.io/) can assist in designing visually appealing HTML, especially for email templates.

### Microsoft Word

Generating Microsoft Word documents is no longer supported by Mendix. However, there are several alternative solutions available — both free and paid — maintained by Mendix partners and the community that support Word document generation. These can be found in the [Mendix Marketplace](https://marketplace.mendix.com/link/search/word).

### Other Formats

Other formats, including Rich Text Format (.rtf) and OpenDocument Text (.odt), are no longer supported by Mendix and do not have official alternatives. We understand this may impact certain use cases, and we recommend exploring whether supported formats like PDF or HTML can meet your current needs.

This file was deleted.

Loading