Data Screen in LightSwitch: Part 2


In the previous article I discussed how to use and create a new data screen in a LightSwitch application. In this article I will discuss about the search data screen. In this article you will see how to use and create a search data screen in a LightSwitch application.

Search Data Screen

Search is one of the primary activities of any business. A search data screen is used for searching any records in the table or you can say this screen is used for searching any data in the entities. This screen is very useful for searching the data in a LightSwitch application.

How to use the search data screen

Step 1 : Open Visual Studio LightSwitch->Click on create new table.

image1.png

Step 2 : Create person table like in the following image.

image2.png

Step 3 : Now we will add a screen. Right click on screens->Add screen.

image3.png

Step 4 : Select search data screen->Select screen data->Ok.

image4.png

Step 5 : Run application (Press F5).

image5.png

Step 6 : If you want to search any person in the person table then you can do that. For this purpose you will enter the value in the search box. Such as in the following image I entered the value dwij in the search box; then you will see Deepak dwij person in the person table. So you can search any person in the person table using the search box.

image6.png

Step 7 : If you want to edit some data in the search data screen then you can do that. For this purpose you will go to the design screen in the right corner of the application. Now go to command bar->Add->EditSelected->Save.

image7.png

Step 8 : Now you will see an edit icon in the search data screen. If you want to edit any data then you will click on this edit icon.

image8.png

Step 9 : Now you will see a new window of Edit Person in which you can edit data then ok.

image9.png

Step 10 : If you want to delete any data from the search data screen then you can do that. For that purpose you will go to the design screen in the right corner of the application. Now go to command bar->Add->DeleteSelected->Save.

image10.png

Step 11 : Now you can delete any data using the delete button.

image11.png

Step 12 : If you want to change the name of the search data screen then you can. For this purpose you will go to the design screen in the right corner of the application. Now go to display name then write the name->Save.

image13.png

Step 13 : Now you will see that the name of the search data screen has changed.

image14.png

Step 14 : If you want to export your data to Ms-Excel then you can do that. For this purpose you click on the Excel button.

image15.png

Step 15 : Now you will see your data in the Ms-Excel.

image16.png

Summary

So a search data screen has many important fatures in a LightSwitch application. A search data screen is used for searching any data in a LightSwitch application. If you want to create a custom search screen in a LightSwitch application then you can. To create a custom search data screen in LightSwitch application, please see my article.

Some Helpful Resources


Similar Articles