Dialog views
This page describes, how to integrate the dialog views provided by the Maintenance Management module.
Create task dialog
When using this view, you’re able to create maintenance tasks for tools or devices. It’s possible to prefill the dialog with provided query parameter.
Current Version: 1.0
Name of Context: maintenanceManagementCreateTaskDialog
Query Parameter
Name | Possible Values |
---|---|
endPoint |
integer |
title |
string |
description |
string |
solverGroupId |
string |
lockFacility |
boolean |
facilityIds |
string/string[] |
lockDevice |
boolean |
deviceId |
string |
toolId |
string |
malfunctionStartDate |
Date |
errorCodeIds |
string/string[] |
malfunctionId |
string |
taskTemplateId |
string |
userPhoneNumber |
string |
How to implement
For detailed information about the view embedding feature, see the documentation from the portal. https://inside-docupedia.bosch.com/confluence/display/NP1/UI+API
Dialog View Example:
function openDialog() {
const context: ContextDialogViewWithContribution = ...;
const dialogTitle: string = ...;
const viewParams: Record<string, string> = ...;
IframeIntegrationLibrary.showViewInDialog(context, dialogTitle, viewParams)
.then((dialogData: DialogData | null): void => {
if (dialogData !== null) {
// Dialog was closed after a task was successfully created
} else {
// Dialog was closed without a task being created
}
});
}
Events
When closing the dialog without creating a task, null is returned. If a task has been created via the dialog successfully, an empty object is returned.