cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with AppState in FIORI-App on Cloud Foundry

matthias_dichtl
Explorer
0 Kudos
207

Hello,

we have a CAP Application with a FIORI-App running on BTP (CloudFoundry).

The FIORI-App is a List-Report Page with some custom extensions. The share-Button works on Detail-/Object Page and at Search-Page it doesn´t work properly. The filter criterias where not shared. I think it has to do with an error i can see in console of the browser.
TypeError: s.storeInnerAppStateAsync is not a function.

Have someone this error too, and can someone give me a solution for it?
Maybe it's also related to the fact that the app doesn't run in FLP?

 

gregorw
Active Contributor
0 Kudos
Could you try to add the app to SAP Build Workzone and try again?
View Entire Topic
umasaral
Active Participant
0 Kudos

Hi 

Please try this 

1. Check if Your App is Set Up for FLP

Open `manifest.json`
Look for the section: `"sap.flp"`—this indicates FLP integration.
Confirm the presence of `"routing"` under `"sap.ui5"`.

2. Check App State Management

Inspect `manifest.json`
Under `"routing"`, ensure you have defined routes like this:
```json
"routes": [
{
"pattern": "",
"name": "ListReport",
"target": "ListReport"
},
{
"pattern": "Object/{objectId}",
"name": "ObjectPage",
"target": "ObjectPage"
}
]
```

Review Your Component
In `Component.js`, check for state management in `createContent` or `init` methods.

3. Update Router Configuration

Confirm Router Setup
Ensure your routes point to the correct views and targets in the `targets` section of `manifest.json`.

Quick Test

Launch Your App
Open the Fiori Launchpad and run your app to see if it displays correctly and handles navigation as expected.

By following these steps, you can quickly verify your app's setup for the Fiori Launchpad