Show TOC

App Extensibility: Inspect Safety ControlsLocate this document in the navigation structure

Use

You can extend Inspect Safety Controls according to your business needs for different aspects. For this purpose, the following extensibility options are available:

  • Extend the inspections table or modify its attributes

  • Add attributes on the inspections table or the controls table

  • Add fields on the headers of the inspections or controls views

  • Extend the location details dialog

  • Introduce new location details dialog

Extend the Inspections Table or Modify its Attributes

To add customer fields in the table of open control inspections or to modify the attributes of the table, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Runtime: Superclass/ Method to Be Redefined

Master.view.xml

extMasterTableChange

Inspection

EHHSSS_GW_CINSP_ROOT_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: INSPECTIONS_GET_ENTITYSET

Add Attributes on the Inspections or Controls Tables

To add customer fields to the app master list or to the control list, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Runtime: Superclass/ Method to Be Redefined

Master.view.xml

extMasterTableInsertColHeader

Inspection

EHHSSS_GW_CINSP_ROOT_INCL

-

Master.view.xml

extMasterTableInsertColCell

Inspection

EHHSSS_GW_CINSP_ROOT_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: INPSECTIONS_GET_ENTITYSET

Inspection.view.xml

extControlTableInsertColHeader

InspectionControl

EHHSSS_GW_CINSP_CONTR_INCL

-

Inspection.view.xml

extControlTableInsertColCell

InspectionControl

EHHSSS_GW_CINSP_CONTR_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: INSPECTIONCONTRO_GET_ENTITYSET

Add Fields on the Headers of the Inspections or Controls Views

To add customer fields to the header section of the inspections or the controls UIs, the following extensibility entities are available on the different software layers. In both UIs, the description can be replaced by custom fields. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Runtime: Superclass/ Method to Be Redefined

Inspection.view.xml

extInspectionHeaderChangeDetails

Inspection

EHHSSS_GW_CINSP_CONTR_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: INPSECTIONS_GET_ENTITY

Control.view.xml

extControlHeaderChangeDetails

InspectionControl

EHHSSS_GW_CINSP_CONTR_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: INSPECTIONCONTRO_GET_ENTITYSET

Extend the Location Details Dialog

To add customer fields to the existing location details dialog, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Runtime: Superclass/ Method to Be Redefined

LocationDialog.view.xml

extLocationDialogInsertDetails

Location

EHFNDS_GW_LOC_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: LOCATIONS_GET_ENTITY

Introduce New Location Details Dialog

To change entirely the location details dialog and add a new dialog to the app, the following extensibility entities are available on the different software layers. You have to extend each of these entities according to your specific business needs:

UI

Back End/ABAP

View

Extension Point

Design Time: Gateway Entity

Design Time: Extension Include (in DDIC Structure)

Runtime: Superclass/ Method to Be Redefined

LocationDialog.view.xml

extLocationDialogChange

Location

EHFNDS_GW_LOC_INCL

Superclass: CL_EHHSS_GW_CINSP_DPC_EXT

Method: LOCATIONS_GET_ENTITY

Further Extensibility Entities

Business Add-Ins (BAdIs)

BAdIs are not available for extensibility purposes for the Inspect Safety Controls app.

Extension Includes

Additional extension includes are not available.

If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

Extension Points

Additional extension points are not available.

If there are additional fields available in the OData service, you can display these fields on the UI. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Extension Points End of the navigation path.

UI Controller Hooks

To plug in and execute custom code, the following hooks are available in the controller code:

Controller

Hook

Use

Inspection.controller.js

extHookOpenLocationOverview

Extends the location information displayed in a dialog by returning an object with custom properties. Use property popoverHeight to set a fixed height for the dialog.

Control.controller.js

extHookOpenLocationOverview

If there are additional UI controller hooks available in the controller code, you can add own code. For more information, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step UI Controller Hooks End of the navigation path.

Display of UI Controls

The following UI controls can be hidden on the app UI:

View

Control ID

Use

Master.view.xml

idInspectionsHeader

Header area with master title and number of open inspections

idOverdue

Status text indicating overdue inspections

inspTitleColHdr

Inspection title column header

inspStatusColHdr

Inspection status column header

inspDueDateColHdr

Inspection due date column header

inspProgressColHdr

Inspection progress column header

inspectionTitle

Inspection title table cell

inspectionStatus

Inspection status table cell

inspectionDueDate

Inspection due date table cell

inspectionProgress

Inspection progress table cell

Inspection.view.xml

inspectionContact

Link for opening a dialog with contact information

inspectionDueDate

Due date for an inspection

showAllTabFilter

Icon tab filter for showing all controls

showOpenTabFilter

Icon tab filter for controls with open questions

showAnsweredTabFilter

Icon tab filter for controls without open questions

controlTitleColHdr

Control title column header

controlLocColHdr

Control location column header

controlStatusColHdr

Control status column header

controlTitle

Control title table cell

controlLocDesc

Control location table cell

controlStatusLabel

Control status table cell

Control.view.xml

controlDesc

Control description in header area

controlLoc

Link for opening a dialog with location information

controlContact

Link for opening a dialog with contact information

commentLabel

Label for the comment text area

commentTextArea

Comment text area

addPicture

UI control for adding pictures

LocationDialog.view.xml

qoLocDetails

Section for location detail information

qoLocDescriptionLabel

qoLocDescriptionText

Location description (label and text control)

qoLocPlantLabel

qoLocPlantText

Plant name of a location (label and text control)

qoLocOrgUnitLabel

qoLocOrgUnitText

Organizational unit of a location (label and text control)

qoLocCostCenterLabel

qoLocCostCenterText

Cost center of a location (label and text control)

qoLocAddress

Section for location address information

qoLocAddressHeader

qoAddress_addr

Location address (label and text control)

For more information about hiding UI controls, see the extensibility documentation for the respective SAP NetWeaver release on your front-end server at http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori Next navigation step Extending the UI Layer Next navigation step UI Extensibility Workflow Next navigation step  Next navigation step Checking the SAP-Enabled Extension Options Next navigation step Hiding UI Controls End of the navigation path.

More Information

For a general description of the extensibility options and procedures of SAP Fiori apps, see http://help.sap.com/fiori_implementation Start of the navigation path Extensibility Information for SAP Fiori End of the navigation path.