locked
Discard changes for select entities RRS feed

  • Question

  • I have a screen with multiple entites. I would like to be able to programatically discard the changes to one of the entities.

    Can some one tell me how to do this? I tried screen.EntityName.details.discardChanges(); but that did not work - all it was was break my HTML client from doing anything. There is no screen.EntityName.discardChanges() method.

    Up to this point, I have been handling all of the nested changes in the dataWorkspace with msls.application methods. But I need to get more granular now...


    -Christopher DeMars

    Tuesday, January 29, 2013 4:59 AM

All replies

  • Anyone?

    -Christopher DeMars

    Wednesday, February 6, 2013 4:00 AM
  • Hi Christopher,

    What you are doing should work. Can you try wrapping the code around a try/catch and see if there's any exceptions being thrown?

    try {
        screen.EntityName.details.discardChanges();
    } catch(e) {
        alert(e);
    }

    Best regards,
    Huy Nguyen

    Wednesday, March 6, 2013 7:53 PM