-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
131 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
|
||
- About this library | ||
|
||
- [SAP FSM](fsm.md) | ||
|
||
- [Changelog](changelog) | ||
|
||
- [License](license.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SAP Field Service Management | ||
|
||
ShellSdk has been developed as part of the [SAP Field Service Management](https://www.sap.com/products/field-service-management.html) project to provide a front-end API to components allowing them acess and update to the surrounding interface. | ||
|
||
!> This library does not intend to replace the public API used to access and manipulate data. | ||
More informations about fsm's public api on the [SAP Field Service Management Help Portal](https://docs.coresystems.net/) | ||
|
||
ShellSdk is used internally, but also by third party developers as part of the extension feature. | ||
|
||
## Applications allowing third party extensions | ||
|
||
<div class="appList"> | ||
<a href="/#/fsm/dispatching-board" > | ||
<img src="/fsm/dispatchBoard.icon.png" alt="Dispatching board icon" /> | ||
Dispatching Board | ||
</a> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
## Dispatching Board | ||
|
||
### Sidebar | ||
|
||
<!-- panels:start --> | ||
|
||
<!-- div:left-panel --> | ||
|
||
A third party plug-in can be dispayed within the dispaching board as part of the sidebar on the right of the screen. | ||
|
||
When loaded, this component appears within a collapsable card with a maximum height of `400px`. | ||
|
||
<!-- div:right-panel --> | ||
|
||
<img src="fsm/dispatchBoard.png" /> | ||
<!-- panels:end --> | ||
|
||
#### Data | ||
|
||
<!-- panels:start --> | ||
|
||
<!-- div:title-panel --> | ||
|
||
#### Require context | ||
|
||
<!-- div:left-panel --> | ||
|
||
Plug-in need to request fsm context to release the embedded loading screen. More about `GET_CONTEXT` within the [ShellSdk Events](/events?id=require_context) page. | ||
|
||
<!-- div:right-panel --> | ||
|
||
```javascript | ||
shellSdk.emit(SHELL_EVENTS.Version1.REQUIRE_CONTEXT, { | ||
clientIdentifier: '<your-app-client-identifier>', | ||
clientSecret: '<your-app-client-secret>', | ||
}); | ||
``` | ||
|
||
<!-- panels:end --> | ||
|
||
<!-- panels:start --> | ||
|
||
<!-- div:title-panel --> | ||
|
||
##### Selected Activity | ||
|
||
<!-- div:left-panel --> | ||
|
||
Selected activity is shared by the dispatching board using the `ViewState` object. In case of no selected activity or if a user unselect noe, the `null` value will be propagated and should also be handle accordingly. | ||
|
||
<!-- div:right-panel --> | ||
|
||
```javascript | ||
this.sdk.onViewState('ActivityId', (id) => { | ||
// use fsm public API to retrieve the activity object from id value | ||
}); | ||
``` | ||
|
||
<!-- panels:end --> | ||
|
||
#### Actions | ||
|
||
<!-- panels:start --> | ||
|
||
<!-- div:title-panel --> | ||
|
||
##### Refresh | ||
|
||
<!-- div:left-panel --> | ||
|
||
When editing data, dispatching board might need to refresh its content to show the updated version. A plug-in can inform the application in such case by triggering a refresh using the `TO_APP` event. | ||
|
||
<!-- div:right-panel --> | ||
|
||
```javascript | ||
this.sdk.emit(SHELL_EVENTS.Version1.TO_APP, { | ||
type: 'REFRESH', | ||
}); | ||
``` | ||
|
||
<!-- panels:end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters