Skip to content

Commit 1ad3ba0

Browse files
authored
Merge branch 'development' into MOO-1841-suggest-fix-for-dev-team-errors
2 parents 1843e44 + c8b40a9 commit 1ad3ba0

File tree

136 files changed

+1270
-4173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+1270
-4173
lines changed

assets/scss/_badge.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@
4040
background-color: $info-1;
4141
color: $info-7;
4242
}
43+
44+
.badge-company-approved {
45+
border: solid 1px $success-9;
46+
background-color: $company-approved;
47+
color: $success-9;
48+
padding: 2px 2px
49+
}

assets/scss/_variables_project.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $white: #fff; // YL - Override the default color defined in _variables_forward.s
2020
$light: #99D0FF; // DB - Blue-3 from PDS
2121
$dark: #0A1325; // Gray-10 from PDS (MxDock color)
2222
$blue: #146FF4; // YL - Mendix Blue in SP 10; Override the default color defined in _variables_forward.scss
23+
$company-approved: #E0FAE1; // NC - Company approved Marketplace label
2324
$gray-100: #f7f7f7;
2425
$gray-200: #f2f2f3;
2526
$gray-light: $gray-200;

content/en/docs/apidocs-mxsdk/apidocs/frontend/pluggable-widgets/pluggable-parent-9/pluggable-widgets-client-apis-9/pluggable-widgets-client-apis-list-values-9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Please note these code samples omit checks of `myDataSource` status and availabi
537537

538538
The `id` field of type `ListAssociationId` represents the unique randomly-generated string identifier of an association. That identifier can be used when applying filtering on a linked data source property to identify which association should be used for filtering. For more information, see the [Filtering](#listvalue-filtering) section.
539539

540-
THe `filterable` field specifies if the association can be used for filtering. This flag has to be checked before a widget applies filtering on a data source property. An attempt to filter on a non-filterable association leads to an error during the execution time.
540+
The `filterable` field specifies if the association can be used for filtering. This flag has to be checked before a widget applies filtering on a data source property. An attempt to filter on a non-filterable association leads to an error during the execution time.
541541

542542
#### Association Type {#association-type}
543543

content/en/docs/apidocs-mxsdk/apidocs/frontend/pluggable-widgets/pluggable-widgets-client-apis/pluggable-widgets-client-apis-list-values.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ Please note these code samples omit checks of `myDataSource` status and availabi
513513

514514
The `id` field of type `ListAssociationId` represents the unique randomly-generated string identifier of an association. That identifier can be used when applying filtering on a linked data source property to identify which association should be used for filtering. For more information, see the [Filtering](#listvalue-filtering) section.
515515

516-
THe `filterable` field specifies if the association can be used for filtering. This flag has to be checked before a widget applies filtering on a data source property. An attempt to filter on a non-filterable association leads to an error during the execution time.
516+
The `filterable` field specifies if the association can be used for filtering. This flag has to be checked before a widget applies filtering on a data source property. An attempt to filter on a non-filterable association leads to an error during the execution time.
517517

518518
#### Association Type {#association-type}
519519

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/web/get-started.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ weight: 2
99

1010
Studio Pro extensions can be developed using typescript and use standard web development technologies to extend the Studio Pro development environment. This guide shows you how to set up a basic development environment for building an extension using the web extensibility API.
1111

12+
For more information see the [Mendix Studio Pro Web Extensibility API](http://apidocs.rnd.mendix.com/10/extensions-api/index.html).
13+
1214
### Prerequisites
1315

1416
You will need the following prerequisites:
@@ -97,17 +99,21 @@ To test the extension, do the following in File Explorer.
9799

98100
1. Start Studio Pro with the following command line parameters to tell it to use the extensions in the folder.
99101

100-
`--enable-extension-development --enable-webview-debugging`
102+
`--enable-extension-development --webview-remote-debugging`
101103

102104
These flags instruct Studio Pro to do the following:
103105

104-
* Load extensions from the webextensions folder
106+
* Load extensions from the `webextensions` folder
105107
* Enable web debugging tools which will be useful when developing your extension
106108

107109
1. In Studio Pro, open the new app.
108110

109111
You will see a new `Extensions` item in the top menu.
110112

113+
{{% alert color="warning" %}}
114+
Extension names used in place of `myextension` must only contain digits, letters, dashes, and underscores. Extensions with an invalid name will not be loaded and will display an error.
115+
{{% /alert %}}
116+
111117
## Conclusion
112118

113119
Using this guide we have:

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/web/web-extensions-howtos/menu-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In this section, you will add a simple menu to your extension.
1919

2020
The code below will:
2121

22-
* create a menu item under the menu that was added in [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-10/getting-started/)
22+
* create a menu item with the caption "My First Menu"
2323
* show a dialog when the menu is clicked
2424

2525
Replace your `src/main/index.ts` file with the following:

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/csharp/extensibility-api-howtos/create-modal-web-view.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ To open static pages, you need to source them from either a file system path or
8888
namespace MyCompany.MyProject.MendixExtension;
8989

9090
[Export(typeof(WebServerExtension))]
91+
[method: ImportingConstructor]
9192
class ContentServer : WebServerExtension
9293
{
9394
private const string Content = """

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/csharp/extensibility-api-reference-guide/web-view.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,25 @@ For serving content to the web view and communicating both ways with it, see [Bu
4444
{{% alert color="warning" %}}
4545
{{% snippet file="/static/_includes/apidocs-mxsdk/warning-wwwroot.md" %}}
4646
{{% /alert %}}
47+
48+
## Troubleshooting
49+
50+
### Web Content Fails to Load
51+
52+
If your pane or tab was open when Studio Pro was closed, your web content might fail to load when you reopen Studio Pro. This is because the `WebServerBaseUrl` property is null due to timing issues in the startup sequence.
53+
54+
To resolve this, listen to `OnWebServerBaseUrlChanged` in your `WebServerExtension`. This will get the URL when it gets re-initialized.
55+
56+
You can use the following code:
57+
58+
```csharp
59+
[Export(typeof(WebServerExtension))]
60+
class ContentServer : WebServerExtension
61+
{
62+
[ImportingConstructor]
63+
public ContentServer(INotificationPopupService notificationPopupService)
64+
{
65+
OnWebServerBaseUrlChanged += () => notificationPopupService.ShowNotification("Web Server Base Url Initialized", WebServerBaseUrl.ToString(), null, 2);
66+
}
67+
}
68+
```

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ weight: 20
1515

1616
Extensions can be written in Typescript or other web languages, described here, or using a C# API which is documented separately in [Extensibility API for C# Developers](/apidocs-mxsdk/apidocs/csharp-extensibility-api-11/).
1717

18+
{{% alert color="info" %}}
19+
Please note that extension development is only possible by starting Studio Pro with the `--enable-extension-development` feature flag.
20+
{{% /alert %}}
21+
1822
## Prerequisites
1923

2024
* You need at least a basic understanding of the Mendix platform.

content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/get-started.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ weight: 2
99

1010
Studio Pro extensions can be developed using typescript and use standard web development technologies to extend the Studio Pro development environment. This guide shows you how to set up a basic development environment for building an extension using the web extensibility API.
1111

12+
For more information, see the [Mendix Studio Pro Web Extensibility API](http://apidocs.rnd.mendix.com/11/extensions-api/index.html).
13+
1214
### Prerequisites
1315

1416
You will need the following prerequisites:
@@ -22,6 +24,10 @@ You will need the following prerequisites:
2224
Extensions can be built on any operating system as the underlying framework is cross-platform.
2325
{{% /alert %}}
2426

27+
{{% alert color="info" %}}
28+
Please note that extension development is only possible by starting Studio Pro with the `--enable-extension-development` feature flag.
29+
{{% /alert %}}
30+
2531
## Creating Your First Extension
2632

2733
This section will show you how to build and test an extension.
@@ -97,7 +103,7 @@ To test the extension, do the following in File Explorer.
97103

98104
1. Start Studio Pro with the following command line parameters to tell it to use the extensions in the folder.
99105

100-
`--enable-extension-development --enable-webview-debugging`
106+
`--enable-extension-development --webview-remote-debugging`
101107

102108
These flags instruct Studio Pro to do the following:
103109

@@ -108,6 +114,10 @@ To test the extension, do the following in File Explorer.
108114

109115
You will see a new `Extensions` item in the top menu.
110116

117+
{{% alert color="warning" %}}
118+
Extension names used in place of `myextension` must only contain digits, letters, dashes, and underscores. Extensions with an invalid name will not be loaded and will display an error.
119+
{{% /alert %}}
120+
111121
## Conclusion
112122

113123
Using this guide we have:

0 commit comments

Comments
 (0)