[Simple Currency Input] Problems with AJAX refresh in TableRecord

[Simple Currency Input] Problems with AJAX refresh in TableRecord

  
Forge Component
(13)
Published on 2015-06-05 by César Santos
13 votes
Published on 2015-06-05 by César Santos
Hi,
I've got a tableRecord with input fields, one of them being a currency field.
Added the "currencyInput" and now whenever I do an AJAX refresh of the table, it hangs itself ...
Any idea ?


Are you refreshing the widget as well?
?? The widget is next to the currency input field.
So If I refresh the whole tableRecord the widget is refreshed ... or not ?

hmm, it should be. I need to review the code, but that's not for now :(
I had an issue with refreshing the component, where it repeated fields on TableId set masks.
Solved by adding an return to the AddCurrencyField function under the following condition:
function AddCurrencyField(obj, thousandsSep, decimalSep, serverDecimalSep, decimals, currencySymbol, currencyLeftToValue, removeMaskOnFocus, style) {
    if (document.getElementById(obj.id + '_ciw')) 
        return;
....
Kind Regards,
João Grazina