I am facing an issue trying to retrieve values from a nested interface. Currently, I am only getting null for the nested interface values, while other values are being retrieved successfully.
import {CyAndNY} from "./CyAndNYInterface";
export interface GetTable{
price?;
year?;
custID?;
Salary?;
currentYear: {
currentYear: CyAndNY ;
};
valueForNy: {
valueforNy: CyAndNY;
};
}
this.cols= [
new Column('price','Price')
new Column('year','Year')
new Column('custID','customer ID')
new Column('Salary','Salary')
new Column('CyAndNY.currentYear','Current Year')
new Column('CyAndNY.valueForNy','Next Year Value')
]
I am looking to display all values in a grid, but currently only Price, Year, Customer ID and Salary are showing up; the nested interface variables are missing.