-
Notifications
You must be signed in to change notification settings - Fork 767
[WTF-2512] Batch Conversion for Mx10 #10612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Changes from all commits
ed095fd
d57800e
9a48fa7
ec493be
610f488
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| --- | ||
| title: "Batch Widget Conversions for React Client" | ||
| url: /refguide10/mendix-client/batch-conversion/ | ||
| description: "Describes how to use the batch conversion feature to convert multiple widgets for React client compatibility." | ||
| weight: 40 | ||
| --- | ||
|
|
||
| ## Introduction | ||
|
|
||
| When migrating your application to the [React client](/refguide10/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 incompatible widgets at once, rather than converting them individually. | ||
|
|
||
| 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. | ||
|
|
||
| {{% alert color="info" %}} | ||
| Custom widgets and some platform-supported widgets cannot be converted automatically. You will need to manually review these and replace them with the equivalent React-compatible widgets. | ||
| {{% /alert %}} | ||
|
|
||
| {{% alert color="info" %}} | ||
| The batch conversion feature was introduced in Mendix version [10.24.13](/releasenotes/studio-pro/10.24/#102413). | ||
| {{% /alert %}} | ||
|
|
||
| ## Supported Widget Conversions | ||
|
|
||
| The batch conversion feature supports the following widget conversions: | ||
|
|
||
| | Original Widget | Converts To | | ||
| |-------------------------------------------------------------------------|-----------------------------------------------| | ||
| | [Dynamic Image](/refguide/image-viewer/) | [Image](/appstore/widgets/image/) | | ||
| | [Static Image](/refguide/image/) | [Image](/appstore/widgets/image/) | | ||
| | [Reference Selector](/refguide/reference-selector/) | [Combo Box](/appstore/widgets/combobox/) | | ||
| | [Reference Set Selector](/refguide/reference-set-selector/) | [Combo Box](/appstore/widgets/combobox/) | | ||
| | [Input Reference Set Selector](/refguide/input-reference-set-selector/) | [Combo Box](/appstore/widgets/combobox/) | | ||
| | [Drop-down](/refguide/drop-down/) | [Combo Box](/appstore/widgets/combobox/) | | ||
| | [Data Grid](/refguide/data-grid/) | [Data Grid 2](/appstore/modules/data-grid-2/) | | ||
|
|
||
| ## Using Batch Conversion | ||
|
|
||
| To start the batch conversion process you can do one of the following: | ||
|
|
||
| * 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}** | ||
| * 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}** | ||
|
|
||
| For example **Convert all static images to image**. | ||
|
|
||
| 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. | ||
|
|
||
| By default, all modules are selected and widgets in excluded documents are included. | ||
|
|
||
| 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. | ||
|
|
||
| Click **Convert** to convert the selected widgets. | ||
|
|
||
| {{< figure src="/attachments/refguide/runtime/mendix-client/batch-conversion/batch-conversion-dialog.png" class="no-border" >}} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to keep a separate one for the refguide10 version?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I had mentioned during the SDM, this looks like the convention in the codebase, so I kept it as it is.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will leave it up to @ConnorLand to decide. |
||
|
|
||
| ### Handling Conversion Limitations | ||
|
|
||
| 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. | ||
|
|
||
| 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. | ||
|
|
||
| {{< figure src="/attachments/refguide/runtime/mendix-client/batch-conversion/manual-conversion-warning.png">}} | ||
|
|
||
| For detailed information about conversion limitations, see [Widget Conversion Limitations](/refguide/mendix-client/widget-conversion-limitations/). | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release notes that announce the feature for 10.24.13 link to the current
refguide, maybe we can update that link torefguide10?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting one. 👍 @ConnorLand, how do we do this? In essence, we want to adjust an already released release note.