Typescript question:
I have this code:
this.options = this.apexDesignerBusinessObjectsService.{{this.businessObjectName}}.validValues;
That syntax isn’t right, but gets across what I’m trying to do.
Is there a way to do this in Typescript?
Typescript question:
I have this code:
this.options = this.apexDesignerBusinessObjectsService.{{this.businessObjectName}}.validValues;
That syntax isn’t right, but gets across what I’m trying to do.
Is there a way to do this in Typescript?
The double curly braces syntax is valid in the template of a UI but not in TypeScript.
To use a property (this.businessObjectName) vs a literal, you would do this:
this.options = this.apexDesignerBusinessObjectsService[this.businessObjectName].validValues;