on 10-13-2023 7:02 PM
Hi,
I am running Asset Manager 2210 and have a new Overview.page. In there I have a section where I show some time entries. With a USerParameter I define, if the user should see this section or not. So I have defined a rule that delivers exactly this: should he see this section based on user paramter.
export default function GetCatsParam(clientAPI) {I know that I could optimize this code, but for debugging reasons I have it like this.
My issue: when starting the app, the persistence layer is not available, so this code always runs into the catch area. If the persistence is available, other areas are filled with data, I leave the screen and come back, this code delivers correct result and all is fine.
My question: Is there any event that is trigered after the persistence is available?
I tried to define
"DataSubscriptions": [ "/SAPAssetManager/Services/AssetManager.service"]But it dit no solve the issue.
Thanx for help in advance.
I have fixed this issue by myself.
Ther eis a sequence that is defined to initilaize the app. It is called
DownloadActionsOrRulesSequence
All I had to do was to add my VisibilityCheck in there.
After the persistence is initialized, so at the end of that sequence, it now checks for the visibility and it does work now as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.