Closed IPolonio closed 3 months ago
that when i select a customer al the orders are placed for that customer
namespace MovieTutorial.CustomerPortal { @Serenity.Decorators.registerEditor() export class OrderDetailEdit extends Serenity.EntityGrid<OrderDetailsRow, any> { protected getColumnsKey() { return "CustomerPortal.OrderDetails"; } protected getDialogType() { return OrderDetailsDialog; } protected getIdProperty() { return OrderDetailsRow.idProperty; } protected getLocalTextPrefix() { return OrderDetailsRow.localTextPrefix; } protected getService() { return OrderDetailsService.baseUrl; }
public _personID: number; private _customerID: number; get customerID() { return this._customerID; } set customerID(value: number) { if (this._customerID != value) { this._customerID = value; this.setEquality(OrderDetailsRow.Fields.OrderCustomerId, value); this.refresh(); } } get personID() { return this._personID; } set personID(value: number) { if (this._personID != value) { this._personID = value; this.setEquality(OrderDetailsRow.Fields.OrderId, value); console.log(OrderDetailsRow.Fields.OrderId, value); console.log(this.personID); this.refresh(); } console.log(this.personID); } constructor(container: JQuery) { super(container); } protected getButtons() { return null; } protected getInitialTitle() { return null; } protected usePager() { return false; } protected getGridCanLoad() { return this.personID != null; } }
} namespace MovieTutorial.CustomerPortal {
@Serenity.Decorators.registerClass() export class CustomersDialog extends Serenity.EntityDialog<CustomersRow, any> { protected getFormKey() { return CustomersForm.formKey; } protected getIdProperty() { return CustomersRow.idProperty; } protected getLocalTextPrefix() { return CustomersRow.localTextPrefix; } protected getNameProperty() { return CustomersRow.nameProperty; } protected getService() { return CustomersService.baseUrl; } protected getDeletePermission() { return CustomersRow.deletePermission; } protected getInsertPermission() { return CustomersRow.insertPermission; } protected getUpdatePermission() { return CustomersRow.updatePermission; } protected oeds: OrderDetailEdit protected afterLoadEntity() { super.afterLoadEntity(); this.oeds.customerID = this.entityId; } }
}
Serenity Obsolete 2.0
No response
Before submitting the bug report, please read and check the following items
What happened?
What did you expect to happen?
that when i select a customer al the orders are placed for that customer
How to reproduce?
namespace MovieTutorial.CustomerPortal { @Serenity.Decorators.registerEditor() export class OrderDetailEdit extends Serenity.EntityGrid<OrderDetailsRow, any> { protected getColumnsKey() { return "CustomerPortal.OrderDetails"; } protected getDialogType() { return OrderDetailsDialog; } protected getIdProperty() { return OrderDetailsRow.idProperty; } protected getLocalTextPrefix() { return OrderDetailsRow.localTextPrefix; } protected getService() { return OrderDetailsService.baseUrl; }
} namespace MovieTutorial.CustomerPortal {
}
What Serenity Nuget Versions are you seeing the problem on? (separated by comma)
Serenity Obsolete 2.0
Relevant log output
No response
Serene template version
No response
Sergen version
No response
Code editor
No response
Operating System
No response
Node.js version
No response
TypeScript version
No response
Database type and version
No response
On which device do you see the problem?
No response
On which operating system do you see the problem?
No response
On which browsers do you see the problem?
No response
On what version of the browsers do you see the problem?
No response
Additional information
No response