jQuery UI Widgets Forums DataTable Edit Dialog Values Incorrect

This topic contains 1 reply, has 1 voice, and was last updated by  ArmenHammer 7 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Edit Dialog Values Incorrect #94548

    ArmenHammer
    Participant

    Hey all,

    I’m seeing a bug when using the dialog edit function for data tables. The data loads into the table view correctly however when the user doublclicks on the lowest row
    in the table (1st row from the bottom), the dialog window pops up and the number input cells show a value of 0.0 instead of the correct value. This appears to only happen with bottom row and I
    can’t reproduce it for other rows.
    Additionally, if the user views another row and then comes back to the the bottom row, the data from the previously viewed row will overwrite
    the input values of the bottom row. But once again this only happens in the edit dialogue window, not in regular table view. Those values remain correct.

    Any idea what might be causing this bug?

    Please let me know if I need to provide additional information to help you diagnose the problem.

    Edit Dialog Values Incorrect #94550

    ArmenHammer
    Participant

    I found the issue that was casing the bug.

    I’m using the dialog edit function for data tables in multiple places. In all workflows, I’m grabbing the same object from the backend as a json datatype, parsing it into a data adapter and then populating the table using that data. I’m doing this the same way in all workflows, however I noticed that in workflows where I get the aforementioned error, the numerical input values are pulled in as objects, where as in workflows where everything works correctly the numerical input values are pulled in as primitive types. The reason this was happening is because I was storing this data as floats in the backend but when pulling the in the front end I was declaring the input variable as type ‘number’ instead of type ‘float’. Issue solved.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.