Skip to content

Commit df28f8d

Browse files
authored
Merge pull request #10191 from LEGIO-SEXTA-FERRATA/wtf/WTF-2395-batch-conversion-docs
[WTF-2395] Add docs for batch conversion
2 parents d3c0a43 + de263b9 commit df28f8d

File tree

4 files changed

+62
-1
lines changed

4 files changed

+62
-1
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: "Batch Widget Conversions for React Client"
3+
url: /refguide/mendix-client/batch-conversion/
4+
description: "Describes how to use the batch conversion feature to convert multiple widgets for React client compatibility."
5+
weight: 40
6+
---
7+
8+
## Introduction
9+
10+
When migrating your application to the [React client](/refguide/mendix-client/react/), you may need to convert multiple widgets that are not compatible with the React client. Studio Pro's batch conversion feature allows you to efficiently convert multiple unsupported widgets at once, rather than converting them individually.
11+
12+
The batch conversion feature automatically identifies all non-React widgets in your application which have an automatic conversion defined for React client compatibility and provides options to convert them in bulk. This significantly reduces the time and effort required to migrate large applications to the React client.
13+
14+
{{% alert color="info" %}}
15+
Custom widgets and some platform-supported widgets cannot be converted automatically. You will need to review these and replace them with the equivalent React-compatible widgets.
16+
{{% /alert %}}
17+
18+
The batch conversion feature was introduced in Mendix version 11.4.0.
19+
20+
## Supported Widget Conversions
21+
22+
The batch conversion feature supports the following widget conversions:
23+
24+
| Original Widget | Converts To |
25+
|-------------------------------------------------------------------------|-----------------------------------------------|
26+
| [Dynamic Image](/refguide/image-viewer/) | [Image](/appstore/widgets/image/) |
27+
| [Static Image](/refguide/image/) | [Image](/appstore/widgets/image/) |
28+
| [Reference Selector](/refguide/reference-selector/) | [Combo Box](/appstore/widgets/combobox/) |
29+
| [Reference Set Selector](/refguide/reference-set-selector/) | [Combo Box](/appstore/widgets/combobox/) |
30+
| [Input Reference Set Selector](/refguide/input-reference-set-selector/) | [Combo Box](/appstore/widgets/combobox/) |
31+
| [Drop-down](/refguide/drop-down/) | [Combo Box](/appstore/widgets/combobox/) |
32+
| [Data Grid](/refguide/data-grid/) | [Data Grid 2](/appstore/modules/data-grid-2/) |
33+
34+
## Using Batch Conversion
35+
36+
To start the batch conversion process you can do one of the following:
37+
38+
* Right-click on an incompatible widget in Studio Pro and select **Convert all {CURRENT WIDGET TYPE} to {THE TYPE OF WIDGET YOU WANT TO CONVERT INTO}**
39+
* Right-click on an error or a deprecation for an incompatible widget and select **Convert all {CURRENT WIDGET TYPE} to {THE TYPE OF WIDGET YOU WANT TO CONVERT INTO}**
40+
41+
For example **Convert all static images to image**.
42+
43+
The widget conversion mechanism displays a dialog box containing a list of modules indicating the number of widgets that will be converted and how many of those are in excluded documents.
44+
45+
By default, all modules are selected and widgets in excluded documents are included.
46+
47+
You can select or deselect individual modules, and there are also options to select or deselect all modules or just marketplace modules, and to include or exclude widgets in excluded documents.
48+
49+
Click **Convert** to convert the selected widgets.
50+
51+
{{< figure src="/attachments/refguide/runtime/mendix-client/batch-conversion/batch-conversion-dialog.png" class="no-border" >}}
52+
53+
### Handling Conversion Limitations
54+
55+
Some widgets may not be in a convertible state due to their configuration or properties. In such cases, Studio Pro will convert as many widgets as possible and will tell you how many widgets could not be converted automatically. You can then convert the remaining widgets manually by finding them through the **Error** pane if you wish.
56+
57+
To do a manual conversion, right-click each individual widget and select the conversion you want. For example **Convert to image**. A dialog box opens providing you with the reasons the selected widget could not be converted automatically during the batch process. For example, *Height unit 'Percentage' is not supported*. Click **Convert** to remove the limitation automatically, or edit the widget yourself before converting if you want more control.
58+
59+
{{< figure src="/attachments/refguide/runtime/mendix-client/batch-conversion/manual-conversion-warning.png">}}
60+
61+
For detailed information about conversion limitations, see [Widget Conversion Limitations](/refguide/mendix-client/widget-conversion-limitations/).

content/en/docs/refguide/runtime/mendix-client/widget-conversion-limitations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Widget Conversion Limitations"
33
url: /refguide/mendix-client/widget-conversion-limitations/
44
description: "Describes the limitations of the automatic widget conversions."
5-
weight: 20
5+
weight: 30
66
---
77

88
## Introduction
58 KB
Loading
16.4 KB
Loading

0 commit comments

Comments
 (0)