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

The Inline C# Function 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

None.

Text Strings

None.

Sample Output Code

Result with the SearchSurname input parameter value of Bennett:

<PeopleList>
  <People SearchSurname="Bennett" SearchForename="" SearchJobTitle="" SearchLocationName="" Q="">
    <Person Id="19991ca0-9ff9-49b3-a97c-517b977e4909">
      <PersonURL>/juliebennett</PersonURL>
      <UserId>juliebennett</UserId>
      <DisplayName>Julie Bennett</DisplayName>
      <DisplayNameLong>Prof Julie Bennett, MSc, PhD</DisplayNameLong>
      <Honorific>Prof</Honorific>
      <Forename>Julie</Forename>
      <Surname>Bennett</Surname>
      <PostNominalLetters>MSc, PhD</PostNominalLetters>
      <JobTitle>Senior Lecturer in Art</JobTitle>
      <Building></Building>
      <BuildingName />
      <Location />
      <LocationName />
      <Photograph>MediaArchive:a9b937af-472d-435d-95e8-7f9f0c54f0dd</Photograph>
    </Person>
    <Person Id="fa5b4969-e20c-422c-b407-e64699c43c54">
      <PersonURL>/samanthabennett</PersonURL>
      <UserId>samanthabennett</UserId>
      <DisplayName>Samantha Bennett</DisplayName>
      <DisplayNameLong>Prof Samantha Bennett, OBE, MSc, PhD</DisplayNameLong>
      <Honorific>Prof</Honorific>
      <Forename>Samantha</Forename>
      <Surname>Bennett</Surname>
      <PostNominalLetters>OBE, MSc, PhD</PostNominalLetters>
      <JobTitle>Dean of Art and Design</JobTitle>
      <Building></Building>
      <BuildingName />
      <Location />
      <LocationName />
      <Photograph>MediaArchive:c58d186b-038b-4d96-9810-4f6086b11e77</Photograph>
    </Person>
  </People>
  <PagingInfo CurrentPageNumber="1" MaximumItemsPerPage="10" TotalItemCount="2" TotalPageCount="1" CurrentItemNumberStart="1" CurrentItemNumberEnd="2" />
  <Compiled DateTime="31/12/2019 14:57:36" />
</PeopleList>

Updated: 31 December 2019