Allow filtering of teacher quals by codeGroup

Issue #402 closed
Brian Lewis repo owner created an issue

Add the codeGroup as property G to teacherQuals in DSLookups

ie

lkpCommands.Add("teacherQuals", "SELECT codeCode C, codeDescription N, codeGroup G FROM TRTeacherQual ORDER BY codeSeq");

Check that this field is propagated to the client by using Fiddler to look at the return data from

api/lookups/collection/core

Comments (2)

  1. Brian Lewis reporter

    @jeremy_kells

    Great thanks for this; may be worth spending a little time to look at the lookup subsystem from end to end:

    starting with the DSLookups in the data layer;

    then look at the data from the endpoint api/lookups/collection/core which returns them to the client.

    In the typescript, in client side code, there's

    the filter lookup, which enables a code to be displayed as its corresponding value;

    the service Lookups, makes lookups available in code

    the component lookup-selector, which is just a wrapper around a select list, populated by a named lookup table.

    Also, have alook at SchoolItem.cshtml, where you'll see how lookup-selector is used, and also lookup filter, and the related filter vocab which translates context specific terminology e.g. District/State/Province

  2. Log in to comment