4 weeks ago
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?
Hi
Please try this
The issue you're facing with the `s.storeInnerAppStateAsync is not a function` error in your Fiori app running on SAP BTP (Cloud Foundry) typically indicates a problem with the Fiori Elements framework or the application's integration with the Fiori Launchpad (FLP). Here are some steps to troubleshoot and potentially resolve the issue:
1.Ensure FLP Compatibility:
Make sure your application is set up to run within the Fiori Launchpad. The sharing functionality often relies on the FLP's internal mechanisms, which may not be available when running standalone.
2.Check SAPUI5 Version:
Ensure you are using a compatible version of SAPUI5 for your application. Check the `manifest.json` file for the UI5 version and update it if necessary. It should ideally be a version that supports the `storeInnerAppStateAsync` function.
3.Update the Router Configuration:
Verify that your router configuration in the `manifest.json` includes the correct routes and settings for the List Report and Object Page. Ensure that the app state management is correctly set up.
4.Implement App State Handling:
Implement app state handling correctly in your List Report. Use the `storeInnerAppStateAsync` function explicitly in your application code to handle state management, especially when filters are applied. You may need to check the `onInit` or `onBeforeRendering` methods to ensure state is stored and retrieved properly.
5.Debugging:
Use the browser’s developer tools to set breakpoints and inspect the function calls related to state management. This can provide insight into why `storeInnerAppStateAsync` is not recognized or is failing.
6.Consult Documentation:
Review the official SAP documentation on Fiori Elements and app state management for further guidance on correct implementation patterns.
7.Community and Support:
If the problem persists, consider reaching out to the SAP Community or SAP Support for assistance. Provide them with details about your application setup and the specific error messages.
By following these steps, you should be able to address the issue with the share button and ensure that filter criteria are correctly shared in your Fiori app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your reply.
i checked SAP UI5 - Version and it seems ok.
Can you give some help to your answers?
1. What dou you mean or how can i check if my app is set up to run within the FLP?
Under point 3 you said "Ensure that the app state management is correctly set up". How can i check this?
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.