[Data Grid] EventTrigger - Uncaught Positive number expected Error

Forge Component
Published on 3 Aug (6 days ago) by OutSystems R&D
38 votes
Published on 3 Aug (6 days ago) by OutSystems R&D


Anybody had this error before?

I'm trying to use the EventTrigger, I'm binding it with the Grid.Id widget, but sometimes the grid is frozen with the "Loading" layer and on console log I can see this error:

It looks like the javascript that creates the trigger tries to bind the widget.id before it already rendered on the screen because, if you refresh the screen, sometimes it works, sometimes not.

Not the best way to solve this, but if I customize this EventTrigger action putting a setTimeout to call the triggerAdd, like this, It works well, but of course, just a temporary workaround:

        GridOS.eventHandler.triggerAdd('" + GridWidgetId + "','" + EventId + "', '" + EventTrigger.RuntimeId + "', '" + JSONField + "');
    }, 2000);