Hi everyone,
I hope someone can help me with this issue because it´s driving me nuts.
I extended the table ShoppingCartPattern with a new field to show how many products are assigned to a ShoppingCartPattern (Product paquet).
I developed a new custom API:
namespace CCC.CompositionApi.Server.PlugIn.CCC.qer.itshop_pattern
{
public class CCCCartPatternAdminApi : IApiProviderFor<PortalApiProject>, IApiProvider
{
public void Build(IApiBuilder builder)
{
builder.AddMethod(QBM.CompositionApi.Definition.ExtensionMethods.With(Method.Define("ccc/itshop/pattern/admin").WithDescription("Returns all IT shop patterns."), delegate (IMethod m)
{
m.Settings.SortOrder = -1;
}).From<CCCShoppingCartPattern>().EnableRead()
.EnableDelete()
.WithResultColumns((CCCShoppingCartPattern p) => p.Ident_ShoppingCartPattern, (CCCShoppingCartPattern p) => p.UID_Person, (CCCShoppingCartPattern p) => p.Description, (CCCShoppingCartPattern p) => p.CCC_TotalNumberOfItems)
.EnableUpdate()
.WithWritableColumns((CCCShoppingCartPattern p) => p.Ident_ShoppingCartPattern, (CCCShoppingCartPattern p) => p.IsPublicPattern, (CCCShoppingCartPattern p) => p.UID_Person, (CCCShoppingCartPattern p) => p.Description));
}
}
}
Which delivers me all product paquets with my new field: CCC_TotalNumberOfItems.
After creating the new ccc paquet, importing and installiing it (without any errors) to my angular project, I created my cccitshop-pattern Service to call this new API Call.
I changed the itshop-pattern.component.ts to load my new entityshema and every compiled just fine, until I want to display this new field through Menu item -> Requests -> Product Paquete and I get the following error:
"2026-02-27T10:12:05.201Z ERROR [chunk-6T2FGREJ.js:214:2666] TypeError: Cannot read properties of undefined (reading 'ColumnName')"
Through Console.Log I can see that the new EntityShema delivers the whole standard fields + my CCC.
EntityShema {
"Ident_ShoppingCartPattern": {
"ColumnName": "Ident_ShoppingCartPattern",
"Type": 6,
"Display": "Produktpaket",
"MinLen": 1,
"MaxLen": 64
},
"UID_Person": {
"ColumnName": "UID_Person",
"Type": 6,
"Display": "Eigentümer",
"MinLen": 1,
"MaxLen": 38,
"FkRelation": {
"ChildTableName": "ShoppingCartPattern",
"ChildColumnName": "UID_Person",
"ParentTableName": "Person",
"ParentColumnName": "UID_Person"
}
},
"Description": {
"ColumnName": "Description",
"Type": 10,
"Display": "Beschreibung",
"IsMultiLine": true,
"MaxLen": 2147483647
},
"CCC_TotalNumberOfItems": {
"ColumnName": "CCC_TotalNumberOfItems",
"Type": 1,
"IsReadOnly": true,
"Display": "Total number of items"
},
"IsPublicPattern": {
"ColumnName": "IsPublicPattern",
"Type": 0,
"Display": "Öffentliches Produktpaket",
"MaxLen": 2147483647
}
}
I also granted my new CCC field the relevant permissions through Designer Program...
Why do I get this error? Has anyone any idee?
Any help would be really appreciated..
Thank you very much in advance!