Inline C# Function: BaileyWeb.University.Data.SearchCourses
The Inline C# Function named SearchCourses retrieves combined data from multiple sources for all courses, or a list of courses filtered by a search criteria.
Files
The following files are supplied with the University Package:
- ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.SearchCourses.cs
Parameters
There are 16 parameters:
Parameter: | Label: | Help: | Type: | Default: | Widget: |
---|---|---|---|---|---|
SearchCourseTitle | Course title | The title of the course you want to search for. | String | Text Box | |
SearchCourseCode | Course code | The code of the course you want to search for. | String | Text Box | |
SearchAward | Award | The award of the course you want to search for. | String | Text Box | |
SearchAwardMode | Award mode | The award mode of the course you want to search for. | String | Text Box | |
SearchEducationLevel | Education level | The education level of the course you want to search for. | String | Text Box | |
SearchStartDate | Entry year | The entry year of the course you want to search for. | String | Text Box | |
SearchMainLocation | Main location | The main location of the course you want to search for. | String | Text Box | |
SearchAcademicDepartments | Academic departments | The academic departments (faculties) of the course / subjects you want to search for. | String | Text Box | |
SearchSubjects | Subjects | The subjects or keywords of the course you want to search for. | String | Text Box | |
SearchStudyAbroad | Study abroad available? | Is the course available with a study abroad / overseas option (Tick for yes)? | Boolean | False |
Check Box |
SearchStudyWorkBased | Work-based course? | Is the course work-based (Tick for yes)? | Boolean | False |
Check Box |
SearchStudyCPD | CPD course? | Is the course for continuing professional development (Tick for yes)? | Boolean | False |
Check Box |
SearchStudyMode | Study mode | Is the course available full-time, part-time or distance learning? | String | Text Box | |
q | Course title (alternate) | The title of the course 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 SearchCourseTitle input parameter value of Drama and SearchAwardMode input parameter value of Single:
<CoursesList> <Courses SearchCourseTitle="Drama" SearchCourseCode="" SearchStartDate="" SearchAward="" SearchAwardMode="Single" SearchEducationLevel="" SearchMainLocation="" SearchSubjects="" SearchAcademicDepartments="" SearchStudyAbroad="false" SearchStudyWorkBased="false" SearchStudyCPD="false" SearchStudyMode="" Q=""> [... ListCoursesEnumerable() ...] </Courses> <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="2" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="2" /> <Compiled DateTime="31/12/2019 14:56:40" /> </CoursesList>