Patch: how to retrieve the group/block affiliation of a service

We received a wish request for providing information about the group and/or block affilitation of a service belongs (aka "PKA services"). In order to not change the interface structure, the information is retrieved by patching the ISearch::SearchCode() method.

  • append a '#SB' (service block) to the service code: ISearch::SearchCode("aCode#SB",enYes)
    • after searching, the ISearch::MechanicCode() property returns a hash separated string with the mechanic code and a possible service block affiliation.
      E.g. searching for "00.0150#SB" returns "01#SB01" meaning that service 00.0150 has the mechanic code 01 and is a member of the service block 01.

  • append a '#SG' (service group) to the service code: ISearch::SearchCode("aCode#SG",enYes)
    • after searching, the ISearch::MechanicCode() property returns a hash separated string with the mechanic code and a possible service group affiliation.
      E.g. searching for "00.0150#SB#SG" returns "01#SB01#SG18#SG58" meaning that service 00.0150 has the mechanic code 01 and is a member of the service block 01 and belongs to the service groups 18 and 58.