a!queryColumn for columns that are data types

How do I choose specific columns, order columns, and alias columns that are not primitive types?

  Discussion posts and replies are publicly visible

Parents
  • You can use dot notation in both the field and alias to select specfic fields and define the output. For example, if you want to the fields "reworkNew" and "reworkOld" from the nested cdt, you can provide the dot notation directly in the columns like this with a top level alias used:

    ...
    a!queryColumn(
      field: "reworkRoutes.reworkNew",
      alias: "reworkNew"
    ),
    a!queryColumn(
      field: "reworkRoutes.reworkOld",
      alias: "reworkOld"
    )

    If you do this, you will see "reworkNew" and "reworkOld" as fields at the top level of the dictionary.

Reply
  • You can use dot notation in both the field and alias to select specfic fields and define the output. For example, if you want to the fields "reworkNew" and "reworkOld" from the nested cdt, you can provide the dot notation directly in the columns like this with a top level alias used:

    ...
    a!queryColumn(
      field: "reworkRoutes.reworkNew",
      alias: "reworkNew"
    ),
    a!queryColumn(
      field: "reworkRoutes.reworkOld",
      alias: "reworkOld"
    )

    If you do this, you will see "reworkNew" and "reworkOld" as fields at the top level of the dictionary.

Children