Extending Delivered Apps Using Adaptation Extensions

Extending Delivered Apps Using Adaptation Extensions

You can extend delivered apps based on SAP Fiori elements by using the Adaptation Editor in SAP Business Application Studio. It allows you to create adaptation projects on top of delivered apps.

Context

You can implement extension functions as part of a UI adaptation project by using the Adaptation Editor in SAP Business Application Studio. The adaptation project references the applications delivered by SAP as base or parent applications.

Note

This procedure is relevant only for list reports, object pages, overview pages, and analytical list pages.

The flexible column layout is not supported by the Adaptation Editor.

You can try the adaptation extensions by creating an adaptation project described in Extending an SAP Fiori Application.

Additional Features in SAP Fiori Elements for OData V2

Additional Features in SAP Fiori Elements for OData V2

Context

You can use adaptation extensions for the following extension points:

  • List report and analytical list page

    • Add additional fields to the smart filter bar

    • Add additional columns to tables

    • Add additional table toolbar buttons and extension controller logic. For an example, see Adaptation Extension Example: Adding a Button to the Table Toolbar in the List Report

      Adaptation Extension Options in the List Report

    • Override extension functions

      • onInitSmartFilterBar

      • provideExtensionAppStateData

      • restoreExtensionAppStateData

      • ensureFieldsForSelect

      • addFilters

    These extension functions can be consumed as a part of ControllerExtension, by overriding the templateBasedExtension points.

    Sample Code

    Overriding addFilters extension function

    Hidden
    override: {	
                      // 	override public method of the ListReport controller 
                      templateBaseExtension: {	
    				          addFilters: function(fnAddFilter, sControlId){							
                                  // custom logic
                    				}
    		}
    

  • Object page

    • Toolbar actions

    • Additional sections

    • Add additional fields to the header facet

    • Add additional fields and field groups to forms

      Adaptation Extension Options on the Object Page

    • Override extension functions

      • provideExtensionStateData

      • restoreExtensionStateData

      • ensureFieldsForSelect

      • addFilters

      These extension functions can be consumed as part of the ControllerExtension, by overriding the templateBasedExtension points.

    Note

    The extension points mentioned in the API Reference cannot be consumed as a part of the adaptation project.

  • Overview page

    • Add additional fields to the smart filter bar

    • Add global actions to the filter bar

    • Add additional extension controller logic

    • Add cards

    • Clone cards

    • Edit cards

    • Override extension functions

      • provideExtensionAppStateData

      • restoreExtensionAppStateData

      • addFilters

      • provideStartupExtension

      • provideExtensionNavigation

      • provideCustomActionPress

      • provideCustomParameter

More Information

For more information, see Details of Extension Functions Used for Extending Delivered Apps.

Additional Features in SAP Fiori Elements for OData V4

Additional Features in SAP Fiori Elements for OData V4

Context

You can use the controllerextensions API to override the existing behavior of the SAP Fiori elements framework, and to implement hooks to implement your custom logic. For information about the controllerextensions API, see the API Reference. You can also explore and work with the coding yourself in the flexible programming model explorer at Overview of Controller Extensions.

As a developer you can adapt your UI in Safe Mode. For more information, see SAPUI5 Flexibility: Adapting UIs Made Easy.

Related Information