cancel
Showing results for 
Search instead for 
Did you mean: 

Visibility of ObjectCollection in OverviewPage with MDK 23.4.4 + SSAM 2210 + Android Client

oliver_kaluscha3
Participant
0 Kudos

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) {
try {
let Global = GlobalClass;
let params = Global.getUserSystemInfo();
return params.get('USER_PARAM.CVR');
} catch (exc) {
return false;
}
}

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.

View Entire Topic
oliver_kaluscha3
Participant

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.