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.
Step 2 : Create person table like in the following image.
Step 3 : Now we will add a screen. Right
click on screens->Add screen.
Step 4 : Select search data
screen->Select screen data->Ok.
Step 5 : Run application (Press F5).
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.
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.
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.
Step 9 : Now you will see a new window
of Edit Person in which you can edit data then ok.
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.
Step 11 : Now you can delete any data
using the delete button.
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.
Step 13 : Now you will see that the
name of the search data screen has changed.
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.
Step 15 : Now you will see your data in
the Ms-Excel.
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