Technical documentation of documents on the article
Description
On this page you will find the technical documentation for the integration and display of article documents such as environment images, data sheets, etc. in the article data. Examples of the display after integration can be found further down the page. Videos can also be displayed on the article here, such as assembly videos, application videos, etc. The table of contents can be found below:
Contents
Integration via “xs-loader” widget
All widgets are integrated via the “xs-loader”.
Parameter “xs-articledocuments”
This widget displays the documents & videos from the supplier's master data.
Input | |||
---|---|---|---|
Parameter | Mandatory | Description | Example value |
manufacturerid | Yes | ID of the manufacturer on the system | COSMO |
manufacturerpid | Yes | Factory article number | test1234 |
manufactureridtype | Yes | The ID type that is used for a request. The field only needs to be set if the ManufacturerID is to be used by another system. This functionality is only available if an IDHUB integration has been ordered. | odc |
types | No | Restriction of the image & document types to be displayed as a “string array”. If no types are specified, all referenced images, documents & videos are displayed. Image types
Document types
| [“VI”, “VP“] |
videodefaultposter | No | Image available on the web that is displayed when the video is started if no video poster is available. | |
style | No | JSON object for defining the primary and secondary color of the widget. The object has two fields:
|
"style":{
"primarycolor": "#616161",
"secondarycolor": "#D3D3D3"
} |
pdfviewer |
| The object serves as a configuration object for the PDF viewer There is currently only one top category
All values are implemented as pixel values. A unit does not necessarily have to be specified. | "pdfviewer":{
"position":{
"top": "150px",
"right": "20px",
"bottom": "50px",
"left": "20px"
}
} |
downloadinnewtab | No | If the parameter is set to true, a new tab opens when the download button is clicked and the file is downloaded | {
...
"downloadinnewtab": true
}
|
downloadinnewtabtarget | No | To be used in conjunction with “downloadinnewtab”. Only used if “downloadinnewtab” is set to true Specifies the target that the download URL should open By default or if no value is set, “_blank” is used |
|
Ausgang | |||
status | Yes | This event is always output during initialization.
|
|
dialogstatus | No | This event is output when a dialog is opened and closed. Values:
|
|
Eingangsevents | |||
closeAlldialogs |
| This event can be emitted to the widget. The widget catches the event and then closes all dialog windows that are currently open. | Example call: |
Example image
Example parameters
Example integration
Embed the following code snippet into the HTML DOM.
Widget-Loader V1.x.x
Widget-Loader V2.x.x
Example event “status”
The following code example waits for the return event “status” from the “articledocuments” widget.
Sample code (PHP)
Widget-Loader V1.x.x
Widget-Loader V2.x.x