KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Solutions Dashboards Direct – How to specify an error message on Data Grid edit failure Re: Dashboards Direct – How to specify an error message on Data Grid edit failure

  • jlucid

    Member
    July 2, 2023 at 12:00 am

    The solution I found for this problem was to open the file below

    dash/www/modules/Datagrid_9fde571/main.js

     

    And replace the line

    r=function(e){this.showMessageSubmitError(e[0])}.bind(this)     [First character being returned]

    with

    r=function(e){this.showMessageSubmitError(e)}.bind(this)

     

    Now when I submit an edit to the Data grid cell, and force the update function to fail (with a mock validation check),  the error message returning is showing the full error message.

    If someone else has a better solution please let me know