cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Cross App Navigation in Edit Mode

former_member203179
Participant

Hi Community,

there is question I have related to cross app navigation.

Is it possible to navigate to another fiori app and the user is automatically in the edit mode ?

Context: The app we navigate to is a generated app via ABAP CDS with metadata annotations.

In the App via coming from, we are using sapui5 to navigate to the app, where we want to be in the EDIT mode, like this:

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");
var empHash = (oCrossAppNavigator && oCrossAppNavigator.hrefForExternal({
  target: {
    semanticObject: "%semanticObject%",
    action: "%fioriAppAction%"
  },
  params: {
    "%additionalParameter%": %contextParameter%
  }
})) || "";
oCrossAppNavigator.toExternal({
  target: {
    shellHash: empHash
  }
});

As per definition the actual navigation takes place via the %semanticObject% and the %fioriAppAction%

We can change the app actions, but this will not automatically trigger the edit mode, when we use the action change.

The app we are navigating to is a generated Fiori List Report app controlled via CDS Metadata.

Are there options to control the app mode ?

  • Maybe via the Fiori App Customizing ?
  • or an app extension ?
  • or via the sapui5 navigation ?
  • or via the generated app manifest ?

Or can we always turn the edit mode on ?

Thanks a lot for any help or hint 🙂

P.s.:

In addition:

  • we are navigating to an object page of a single entry
  • example URL we will end up navigating to
    https://%server%:%port%/sap/bc/ui2/flp#%semanticObject%-%fioriAppAction%&//ZCDSVIEW('0000000001')
  • see below the screenshot how such view of a generated app looks like - here the user needs to extra click on EDIT - but we want to navigate here and be already in the edit mode

All the Best,
Thomas

maheshpalavalli
Active Contributor
0 Kudos

Change action doesn't necessarily need to be a edit mode.. those are just actions and it depends on the url hash..

Can you tell the target app that you are navigating, is it a draft enabled fiori app or a normal app? Can you provide the url of the target application in edit mode.. you can hide the host information btw..

former_member203179
Participant
0 Kudos

Hi Mahesh,

thanks for commenting 🙂

Yes we know the app action is just the fiori action and don't will change the app mode automatically.

Here some facts:

  • the app is NO DRAFT - so we have no draft functionality
  • the app is a generic app generated with ABAP CDS and annotations
  • we want to enter the app and already be in the edit mode
  • We are navigating to the object page of a single entry
  • we checked and when the user clicks on "edit" the url is not changing, the URL of such generated app could be https://%server%:%port%/sap/bc/ui2/flp#%semanticObject%-%fioriAppAction%&//ZCDSVIEW('0000000001')

>

Here would be an example for a ABAP CDS with some annotations, where we could use the generated oData with annotations to create a generated app via the SAP web ide and the "list report" template. This app has no views or controller and is handled by annotations, the BOPF part will activate the EDIT mode :

@AbapCatalog.sqlViewName: 'ZCDSVIEW_V'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'cds view'

@OData.publish: true

@ObjectModel:{
    semanticKey: ['ZFIELDA'],

    transactionalProcessingDelegated: true,
    writeActivePersistence: 'ZTABLE',
    compositionRoot: true,

    createEnabled: 'EXTERNAL_CALCULATION',
    updateEnabled: 'EXTERNAL_CALCULATION',
    deleteEnabled: false
}

define view ZCDSVIEW
    as select from ZTABLE
{

  @UI: {
   lineItem.position: 10,
   identification.position: 10 
  }
  key ZFIELDA,
 
  @UI: {
   lineItem.position: 20,
   identification.position: 20,
   selectionField.position: 20
  }
  ZFIELDB,
  
  @UI: {
   lineItem.position: 30,
   identification.position: 30 
  }
  ZFIELDC
}

So we customize our sap system and assign a semantic object and an app action in the fiori customizing. We can navigate to this generated app like shown above.

Now we want to be in the edit mode automatically when entering this 🙂

Maybe somebody know if:

  • we can extend the generated app to accomplish that ?
  • if the manifest of the generated app can handle such things ?
  • maybe the fiori app customizing can do something like this ?
  • maybe the cross app navigation has some options ?

>

The generated view of the object page we navigate to will have the edit button :

>

and when the user clicks on edit the URL don't change and we are in the edit mode:

>

And is it possible, to be in the edit mode, right when we navigate to this app ?

>

I also check a lot of Blogs regarding Fiori elements, maybe we can solve that with Fiori Elements somehow ? maybe jocelyn.dart has an idea 🙂

Accepted Solutions (1)

Accepted Solutions (1)

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert

Hi Thomas

Up to now it has not been possible - object pages open in edit mode when you are editing an entry that is locked against your user id in draft mode.

With the introduction of SAPUI5 1.60 there may be a way around it if you are using the Web IDE Adaptation project.

I'd suggest raising an incident to component CA-UI5-ST to confirm if this is still a restriction of List Report

rgds

Jocelyn

former_member203179
Participant
0 Kudos

thanks for the answer, I will do this 🙂

0 Kudos

thomas.schmidt8 Did you get the solution?

Answers (0)