When i render the menu Items by check the roles with Data action like this
I have got below issue
Coherence Suggestion
'OnReady' accesses Aggregates or Data Actions, but the data might not be available at this time. To avoid inconsistencies, use the OnAfterFetch of the Aggregate or Data Action instead.
Hi Omar,
If you want to know better and understand how the events of the screen work, I recommend you read this article:
https://success.outsystems.com/documentation/11/developing_an_application/implement_application_logic/screen_and_block_lifecycle_events/
And this one, about the warnings on the service studio:
https://success.outsystems.com/documentation/11/reference/errors_and_warnings/warnings/coherence_suggestion_warning/
Related to your specific case:
Hope this helps.
Regards,
PZ
Alright, you want to hide or display certain menu entries based on roles, is that it?
You can do it this way:
You can also wrap the menu entries in If clauses, like this one:
https://www.outsystems.com/forums/discussion/74003/checking-roles-on-menu-items/
Or use the OnInitialize event and add a JS node like this one:
https://www.outsystems.com/forums/discussion/62886/reactive-web-application-check-role/
Hope this helps,
I understand all the above :) , but i am asking about the best way to implement his functionality !