Hello dears!
I have a custom tile developed in Visual Studio.
The tile is showing a count of "1" while when I click the tile, the form is showing 2 records.
The tile is pointing to an object of type Display Menu Item.
The display menu item has the following properties:
object: is Pointing to a Form object.
query: has an AOT query.
the query is simply trying to show the records that has a workflow assigned to the current user, so it has an exists join from the "Request Table" with the "WorkflowTrackingStatusTable" and "WorkflowWorkItemTable".
Because of this query that is assigned in the display menu item query property, the form is showing the correct records that are assigned to the current user.
But the count on the tile pointing to this menu item is showing a wrong value.
I'm not sure actually why this is happening :/
I wanted to override the TileButtonControl.getData() method to change the value through x++ code, but unfortunately, the tile is implemented in a standard form through extension, so I'm not able to override the methods for this custom tile on the standard form.
I tried to look for methods that sets the count value on the tile object but didn't find any useful method in the TileButtonControl object.
How can I make the tile to show the correct number of records on the form?
Any advice is appreciated!
Thanks in advance!