Articles → LIGHT SWITCH 2011 → Multiple Search Parameters In Lightswitch 2011
Multiple Search Parameters In Lightswitch 2011
Software Requirement
- Visual studio 2010 is installed on your machine.
- Visual Studio 2010 service pack 1 is installed on your machine.
- Microsoft Visual Studio Light switch 2011 is installed on your machine.
Prerequisite Knowledge
- How to create lightswitch tables?
- How to add screens in lightswitch application?
- How to add data item?
- How to create modal pop up?
- How to add query for table.
- How to bind grid with query?
- How to add relationship between tables?
Creation Of Table
Click to Enlarge
Creation Of Editable Screen
Click to Enlarge
Create Query On Table
Click to Enlarge
declare @EmployeeName as varchar(max)
set"@EmployeeName = 'karan'
select * from Employee where EmployeeName = @EmployeeName
Add Query On Editable Screen
Click to Enlarge
Click to Enlarge
Click to Enlarge
Add Data Items For Filters
Click to Enlarge
Click to Enlarge
Add Filters In Popup
Click to Enlarge
Add Button To Open Modal Window
Click to Enlarge
Button’S Execute Events
/// <summary>
/// Method invoked when
/// Filter button is clicked
/// </summary>
partial void Filter_Execute() {
this.OpenModalWindow("Group");
}
/// <summary>
/// Method invoked when Apply Filter
/// button is clicked.
/// </summary>
partial void ApplyFilter_Execute() {
this.CloseModalWindow("Group");
}
Bind Query Parameters With Data Item
Click to Enlarge
Click to Enlarge
Click to Enlarge
Output
Click to Enlarge
Click to Enlarge
Click to Enlarge
Download