Where can i write this calculatedFields in angular

Posted by: bemes9226 on 9 February 2021, 3:57 am EST

  • Posted 9 February 2021, 3:57 am EST

    ERROR TypeError: ‘ownKeys’ on proxy: trap returned duplicate entries

    how can i bind in angular this calculatedFields

    this.data = new wjcCore.CollectionView(this.reportsDataReports, {

    calculatedFields: {

    Favorite: $ => +$.favorite

    }

    });

    how can i bind in angular calculatedFields,if i am removing calculatedfiels issue resolved but favorite icon not shown in grid

    https://stackblitz.com/edit/js-avjc6w?file=index.js

  • Posted 10 February 2021, 12:23 am EST

    how can i bind in angular calculated Fields , if i am removing calculatedfiels issue resolved but favorite icon not shown in grid, instead of rating icon shown checkbox

  • Posted 10 February 2021, 6:13 am EST

    Hi bemes9226,

    You will need to change the name of the calculated field to something different because Favorite and favorite are similar.

    const data = new wjcCore.CollectionView(getData(), {
      calculatedFields: {
        fieldFavorite: $ => +$.favorite
      }
    });
    

    Regards,

    Ashwin

  • Posted 10 February 2021, 7:52 am EST

    working fine

  • Posted 10 February 2021, 7:52 am EST

    how can i write hyperlink click eventin cellmaker

  • Posted 11 February 2021, 4:12 am EST

    The cells which use CellMaker are created internally. We cannot add custom content such as hyperlinks inside them.

    ~regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels