-
I have two tables related by a foreign key (FK), for example, FundFlowId. I'm using a Tabs template to build a Master-Detail view. In the FundFlowDialog.ts, I have the getTemplate with the tab interfaces, and in the LoadEntity method, I set the grid's (FundFlowDetailGrid) FundFlowId property. In the getColumns method of that grid, I need to change the column descriptions based on values I get from a method that I call in the service. At this point, the FundFlowId property is still undefined. Has anyone encountered this issue before? How could I get the value of FundFlowId at the time getColumns is executed? The Tab interface works fine and filters by that property, but it seems that getColumns runs before the property is set. If anyone can help, I would appreciate it. `
` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to resolve it this way, and I'm sharing it here for future reference. In the constructor of the dialog that calls the grid, I used the grid's click method and executed my own method called cambiarColumnas (changeColumns). This executes in the order I need, as the Id is assigned a value. This is the constructor of Dialog.ts: `` constructor() {
} `` And this is the method I added to the grid: `
} ` protected cambiarColumnas() {
} ` |
Beta Was this translation helpful? Give feedback.
I managed to resolve it this way, and I'm sharing it here for future reference.
In the constructor of the dialog that calls the grid, I used the grid's click method and executed my own method called cambiarColumnas (changeColumns). This executes in the order I need, as the Id is assigned a value.
This is the constructor of Dialog.ts:
``
private FlujoDeFondoSemanal: FlujoDeFondosSemanalGrid;
constructor() {
super();