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?
- Taşıyan Steve HoagMicrosoft Employee, Moderator 15 Ağustos 2012 Çarşamba 04:39 forum retired (From:LightSwitch in Visual Studio 2012 RC)
10 Ağustos 2012 Cuma 03:10
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.