You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission is hereby granted, free of charge, to any person obtaining a copy
6
-
of this software and associated documentation files (the "Software"), to deal
7
-
in the Software without restriction, including without limitation the rights
8
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
-
copies of the Software, and to permit persons to whom the Software is
10
-
furnished to do so, subject to the following conditions:
5
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this example and associated documentation files (the "Example"), to deal in the Example without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Example, and to permit persons to whom the Example is furnished to do so, subject to the following conditions:
11
6
12
-
The above copyright notice and this permission notice shall be included in all
13
-
copies or substantial portions of the Software.
7
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Example.
14
8
15
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
-
SOFTWARE.
9
+
THE EXAMPLE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE EXAMPLE OR THE USE OR OTHER DEALINGS IN THE EXAMPLE.
A DriveWorks form embedded within a page - using the Integration Theme Web API.
1
+
# DriveWorks Live - Integration Theme Example - Embedded Form
2
+
### Version: 1.3.1
3
+
#### Minimum DriveWorks Version: 18.0
4
+
5
+
A distributable template that renders a predefined project into an embedded section of the page - set via a config file.
6
+
7
+
Please note: DriveWorks are not accepting pull requests for this example.
8
+
Join our [online community](https://my.driveworks.co.uk) for discussion, resources and to suggest other examples.
9
+
10
+
### This example:
11
+
- Renders a DriveWorks Form embedded within page content - no other UI
12
+
- Uses very simple HTML/CSS/JS
13
+
- Has an optional loading state (to avoid an initial empty output)
14
+
15
+
### To use:
16
+
1. Clone this repository, or download as a .zip
17
+
18
+
2. Enter your Integration Theme details into `config.js`
19
+
*`serverUrl` - The URL that hosts your Integration Theme, including any ports.
20
+
*`groupAlias` - The public alias created for the Group containing the project to render - as configured in DriveWorksConfigUser.xml.
21
+
* This *must* be specified for each Group you wish to use.
22
+
* This allows you to mask the true Group name publicly, if desired.
23
+
* See [Integration Theme Settings](https://docs.driveworkspro.com/Topic/IntegrationThemeSettings) for additional guidance.
24
+
*`projectName` - The name of the Project to render.
25
+
*`specificationPingInterval` - [optional] The interval at which to 'ping' the server automatically
26
+
* This ensures a session is kept alive during inactivity, if desired.
27
+
28
+
3. In `index.html`, replace "YOUR-DRIVEWORKS-LIVE-SERVER-URL" with the URL of your own DriveWorks Live server that is serving `DriveWorksLiveIntegrationClient.min.js` - including any ports.
29
+
* This should be the URL that hosts the Integration Theme, and serves it's landing page.
30
+
* To check that this URL is correct, attempt to load DriveWorksLiveIntegrationClient.min.js in a browser. It should return a minified code library.
31
+
32
+
4. Host the example locally or on a remote server.
33
+
* Ensure `<corsOrigins>` in DriveWorksConfigUser.xml permits request from this location.
34
+
See [Integration Theme Settings](https://docs.driveworkspro.com/Topic/IntegrationThemeSettings) for additional guidance.
35
+
36
+
5. If encountering any issues, check the browser's console for error messages (F12)
37
+
38
+
### Potential Issues:
39
+
* When serving this example for a domain different to your DriveWorks Live server, e.g. api.my-site.com from company.com, 'SameSite' cookie warnings may be thrown when the Client SDK attempts to store the current session id.
40
+
* This appears as "Error: 401 Unauthorized" in the browser console, even with the correct configuration set.
41
+
* To resolve:
42
+
* Ensure you are running DriveWorks 18.2 or above, HTTPS is enabled in DriveWorks Live's settings and a valid SSL certificate has been configured via DriveWorksConfigUser.xml.
43
+
* See [Integration Theme Settings](https://docs.driveworkspro.com/Topic/IntegrationThemeSettings) for additional guidance.
44
+
45
+
---
46
+
47
+
This source code has been made available to demonstrate how you can integrate with DriveWorks using the DriveWorks Live API.
48
+
This code is provided under the MIT license, for more details see LICENSE.md.
49
+
50
+
The example requires that you have the latest DriveWorks Live SDK installed, operational and remotely accessible.
0 commit comments