Inline C# Function: BaileyWeb.University.Data.SearchSubjects
The Inline C# Function named SearchSubjects retrieves combined data from multiple sources for all subjects, or a list of subjects filtered by a search criteria.
Files
The following files are supplied with the University Package:
- ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.SearchSubjects.cs
Parameters
There are 8 parameters:
Parameter: | Label: | Help: | Type: | Default: | Widget: |
---|---|---|---|---|---|
SearchSubjectTitle | Subject title | The title of the subject you want to search for. | String | Text Box | |
SearchSubjectCode | Subject code | The code of the subject you want to search for. | String | Text Box | |
SearchEducationLevel | Education level | The education level of the subject you want to search for. | String | Text Box | |
SearchSubjectKeywords | Keywords | The title of the keyword you want to search for. | String | Text Box | |
SearchAcademicDepartments | Academic departments | The academic departments (faculties) of the subject you want to search for. | String | Text Box | |
q | Subject title (alternate) | The title of the subject you want to search for. | String | Text Box | |
CurrentPageNumber | Current page number | The pagination number of the current page. | Integer | 1 | Text Box |
MaximumItemsPerPage | Maximum items to display | How many items should be displayed per paginated page? | Integer | 10 | Text Box |
Function Markup
None.
Sub Functions
This function relies upon the following sub functions for data:
Text Strings
None.Sample Output Code
Result with the SearchSubjectTitle input parameter value of Drama:
<SubjectsList> <Subjects SearchSubjectTitle="Drama" SearchSubjectCode="" SearchEducationLevel="" SearchSubjectKeywords="" SearchAcademicDepartments="" Q=""> [... ListSubjectsEnumerable() ...] </Subjects> <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="2" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="2" /> <Compiled DateTime="31/12/2019 14:57:58" /> </SubjectsList>