Skip to main content
Solved

Badge


eurban
Captain
Forum|alt.badge.img+4
We have two badges. We see both of them in the debug when starting the application. One badge starts repeating conform the settings when activating the subject and stops when i close the subject, The other starts repeating immediately without starting the subject

How can I prevent the repeating of the second badge ?

Best answer by Henk Nicolai

Hi eurban, I'm surprised that whether or not a badge stored procedure is called seems to depend on whether or not the subject is activated. The expected behavior is that badges are called for items in a menu. As all menu items are collapsed in the tree menu in the screenshot, I cannot confirm if this is the case, but can I safely assume that 'planning_monteur' can be chosen from the menu in the screenshot?

I can think of two reasons why the 'klacht' badge does not repeat. One is that it has a badge interval of 0, which prevents it from repeating. The other is that the subject cannot be chosen directly from the menu on the left, but shows up somewhere else, like in a detail.

If the 'planning_monteur' subject can be chosen from the menu, could you try setting its badge interval to 0, and tell me what happens? Thank you.
View original

Henk Nicolai
Moderator
Forum|alt.badge.img+1
Hi eurban, does the second badge appear in a menu or a tile somewhere?

eurban
Captain
Forum|alt.badge.img+4
  • Captain
  • July 18, 2019
no, just start the application , the difference between the two badge's one starts with variant_id = null the other variant_id with value


Henk Nicolai
Moderator
Forum|alt.badge.img+1
Hi eurban, I'm surprised that whether or not a badge stored procedure is called seems to depend on whether or not the subject is activated. The expected behavior is that badges are called for items in a menu. As all menu items are collapsed in the tree menu in the screenshot, I cannot confirm if this is the case, but can I safely assume that 'planning_monteur' can be chosen from the menu in the screenshot?

I can think of two reasons why the 'klacht' badge does not repeat. One is that it has a badge interval of 0, which prevents it from repeating. The other is that the subject cannot be chosen directly from the menu on the left, but shows up somewhere else, like in a detail.

If the 'planning_monteur' subject can be chosen from the menu, could you try setting its badge interval to 0, and tell me what happens? Thank you.

eurban
Captain
Forum|alt.badge.img+4
  • Captain
  • July 19, 2019
Hi Henk,
Thanks for de explanation, I understand now the behavior. Indeed ‘klacht’ is a detail and ‘planning_monteur’ is menu itmen. Can I prevent ‘planning_monteur’ from starting until it is chosen

Henk Nicolai
Moderator
Forum|alt.badge.img+1
Hi eurban,

The 'planning_monteur' badge stored procedure is called to check if a badge must be shown at the menu item, even before the item is actually selected. Unfortunately we don't currently have an option in the model to disable the badge in the menu item while showing it in the subject screen.

You can however prevent it from being called more than once if you set its badge interval to 0. Hope that helps.

eurban
Captain
Forum|alt.badge.img+4
  • Captain
  • July 24, 2019
Hi Henk

Thanks

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings