Inline C# Function: BaileyWeb.University.Data.SearchPeople

The Inline C# Function named SearchPeople retrieves combined data from multiple sources for all people, or a list of people filtered by a search criteria.

Files

The following files are supplied with the University Package:

  • ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.SearchPeople.cs

Parameters

There are 7 parameters:

Parameter: Label: Help: Type: Default: Widget:
SearchSurname Surname The surname of the person you want to search for. String   Text Box
SearchForename Forename The forename of the person you want to search for. String   Text Box
SearchJobTitle Job title The job title of the person you want to search for. String   Text Box
SearchLocationName Location Name The location name of the person you want to search for. String   Text Box
q Surname (alternate) The surname of the person 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 SearchSurname input parameter value of Bennett:

<PeopleList>
  <People SearchSurname="Bennett" SearchForename="" SearchJobTitle="" SearchLocationName="" Q="">
    [... ListPeopleEnumerable() ...]
  </People>
  <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="2" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="2" />
  <Compiled DateTime="31/12/2019 14:57:36" />
</PeopleList>

Updated: 27 June 2021