Automatically navigating to generated details screen after saving on a create new screen - how to stop?

Soru Automatically navigating to generated details screen after saving on a create new screen - how to stop?

  • 10 Ağustos 2012 Cuma 03:06
     
     

    After I click Save on a CreateNew screen, Lightswitch automatically navigates to a freshly generated details screen for that entity.

    I do have some code in the Save handler.

    Anybody know how to stop this?  


Tüm Yanıtlar

  • 10 Ağustos 2012 Cuma 03:10
     
      Kod İçerir

    I added this code at the end of the CreateNew..._Saving hook:

         this.DataWorkspace.ApplicationData.SaveChanges();
                handled = true;

    Seems to work.  Anybody see any problems with this approach?

  • 10 Ağustos 2012 Cuma 08:30
     
     
    ....there was some code navigating to the new screen... facepalm retard moment.