Postman collection
General Read

pixiReadCodeTableValues

Returns code table values from pixi.CodeTableValue with their translated description, either a single value by Id or a page of values after a given Id.

Reads entries of the code table pixi.CodeTableValue together with their description text from dbo.Translation.

  1. If Id is not passed, it is set to 0.
  2. Translations are loaded where DBObjectName = 'CodeTableValue' and LanguageID = @LanguageId. The translation is matched on the value's Id.
  3. The call then works in one of two modes:
    • Paging mode (RowCount is set): returns at most RowCount values with Id > @Id, sorted by Id ascending. Pass the last Id of a page as Id to read the next page. Start with Id = 0 or leave it out.
    • Single mode (RowCount is not set): returns the value with Id = @Id.

The join to the translations is an inner join. Values without a translation in the requested language are not returned.

Notes

  • All reads use NOLOCK, so uncommitted data can appear.
  • If both Id and RowCount are left out, the call looks for the value with Id = 0 and normally returns an empty result. To read all values, pass RowCount.
  • The code contains a third branch that returns an empty result set. It can never run, because Id is always set to 0 when it is NULL.
  • A negative RowCount causes a SQL error from TOP.
  • LanguageId defaults to 1. Which language this ID stands for depends on the content of dbo.Translation.

Tables used

Translation · Read CodeTableValue · Read
SQL object:
dbo.pipiReadCodeTableValues
Updated at 2026-10-30