22
Views
2
Comments
Solved
[Simple Currency Input - Reactive] Can we delay the execution of the widget?
simple-currency-input-reactive
Reactive icon
Forge asset by César Santos
Application Type
Reactive

Whenever i retrieve records to edit and use the widget to format the currency, it is always empty. It feels like the JS runs before the fetching of data and assignment of the correct input value. Therefore we end up with an empty copied input and lose access to the record value.

Is there any way to guarantee that the widget only "runs" after the data fetch?

There have been times where i've been able to get the value from the record correctly after a refresh.. maybe because the data fetch is faster since records are cached?

2025-10-27 16-39-03
César Santos
Solution

Hi Pedro,

Please check in attachment an example of how to "solve" that issue, screen Table and EditRecord.

Regards

SimpleCurrencyInput_ReactiveDemo.oml
UserImage.jpg
Pedro Sousa

This worked perfectly, I wasn't aware of the data fetch properties in reactive web as this problem was found during my first steps of developing in reactive :)

Thank you @César Santos 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.