Calc Field Referencing Field on Types That Extend

#1

I have some types like the following:

extendable entity type BaseType schema name "BASTYP" {
  childrenNames: [string] stored calc "unique(children.name)" schema suffix "CN"
}

entity type TypeA extends BaseType schema name "TYPA" {
  children: [TypeAA] (parent)
}

entity type TypeB extends BaseType schema name "TYPB" {
  children: [TypeBB] (parent)
}

TypeA.childrenNames is not populated, but I’d like to not duplicate code for the childrenNames field across all types that extend BaseType. Is this a bug? Is there a better solution here?

0 Likes

#2

@sean.summers I believe this fix I just pushed to master addresses this:

PLAT-17158 Stored calc field referencing fkey field not returning on extending type

Let me know if it does not.

0 Likes

#3

Thanks! Will try it out today

0 Likes