callback after mydbr.editable, then remove row

(2 posts) (2 voices)
  1. brycedcamp, Member

    I am using a callback function after an inline dbr.editable report. The call back function works great, however I want the report to dissapear from the report afterwards. This is what I am using:

    select 'dbr.javascript', 'function mycallback()
    {

    var jobnum = col_value_get( this, 1 );

    var jqxhr = $.ajax( "forms/jobcosting_notify.php?jobnum=" + jobnum + "&notifythis=completedinshop" );

    //alert("changed completed in shop for job number "+jobnum);
    $(mydbr_selected_cell).parent().remove();

    }';

    Why isn't this working?

  2. myDBR Team, Key Master

    Hi,
    the mydbr_selected_cell-variable is used with dbr.report. In dbr.editable's callback the edited cell can be found in this-variable. Use:

    $(this).parent().remove();

    instead.

    --
    myDBR Team


Reply

You must log in to post.