Activities of "ersin.gundogdu"

  • ABP Framework version: v4.3.0
  • UI type: Angular
  • DB provider: EF Core
  • Steps to reproduce the issue:

I have two ListService and two ngxdatatable in my component. When i press page 2 button on one of the datatables , both of them tries to retrieve their(self) second page's results.

my.component.ts:

constructor(
    public readonly purchaseList: ListService, 
    public readonly expenseList: ListService, 
  ) { }
  ngOnInit(): void {
    this.getListPurchase();
    this.getExpenseList();
  }
  getListPurchase()
  {
    let temp={} as GetServicePurchasesInput;
    const purchaseStreamCreator = (query) => this.servicePurchasesService.getList({...query,...temp});
    this.purchaseList.hookToQuery(purchaseStreamCreator).subscribe((response) => {
      this.purchaseDto=response;
    });    
  }
  getExpenseList()
  {
    let temp={} as GetServiceExpensesInput;
    const expenseStreamCreator = (query) => this.serviceExpensesService.getList({...query});
    this.expenseList.hookToQuery(expenseStreamCreator).subscribe((response) => {
      this.expenseDto=response;
    });
  }

my.component.html:

 <ngx-datatable
              [rows]="expenseDto.items"
              [count]="expenseDto.totalCount"
              [list]="expenseList"
              class="material striped"
              default
            >
            // Columns Definition...
</ngx-datatable>
 <ngx-datatable
          [rows]="purchaseDto.items"
          [count]="purchaseDto.totalCount"
          [list]="purchaseList"
          class="material striped"
          default
        >
      // Columns Definition...
</ngx-datatable>
Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35