locked
Delete In HTML Client RRS feed

  • Question

  • As described elsewhere in the forum I am trying to implement a Delete button on the Add Edit screen of an entity

    myapp.AddEditCustomer.Delete_execute = function (screen) {
        screen.AddEditCustomer.deleteEntity();
        return myapp.commitChanges().then(null,function fail(e){
            myapp.cancelChanges();
            throw e;
        });
    };

    When the code executes I get "Cannot read property 'deleteEntity' of undefined" 

    Any idea what the disconnect is? 


    Thanks
    Thomas

    Friday, October 3, 2014 11:20 PM

Answers

  • Hi Thomas. Assuming you entity is called Customer, try screen.Customer.deleteEntity. HTH, josh
    • Proposed as answer by joshbooker Saturday, October 4, 2014 4:59 PM
    • Marked as answer by Angie Xu Monday, October 13, 2014 2:49 AM
    Saturday, October 4, 2014 12:28 AM

All replies