Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a button on a "Create New Screen" that will Save, Close and Start a new "Create New Screen" in Lightswitch?

I have a VS 2015 LightSwitch Desktop project in which users will need to enter a large number of records and I would like to streamline the process a bit. I would like to add one button that will Save the current record, close the current "Create New Data" screen, and launch or start a new instance of the same "Create New Data" data screen.

like image 255
Mark Avatar asked Feb 18 '17 17:02

Mark


1 Answers

Go to your design screen. select Add Data Item... and create a new method with your favorite name (Default name is Method). drag and drop the created method from left panel at end of your screen and double click on your created method. add the following code{

save();
Application.ShowYourNewScreenName();

enter image description here

like image 71
Exp3rt Avatar answered Nov 11 '22 17:11

Exp3rt