We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Alias field in select?

Thread ID:





144338 May 1,2019 12:29 PM UTC May 3,2019 08:36 AM UTC JavaScript - EJ 2 1
Tags: Chart
Asked On May 1, 2019 12:29 PM UTC

   var chartData = _DataManager.executeLocal(new ej.data.Query()
                .where('group.dnis.length', 'equal', 12)
                .select(['group.DNIS_Campaign', 'flattenedMetrics.nOffered_count', 'flattenedMetrics.tIvr_count', 'flattenedMetrics.tAnswered_count'])

is there a way to map or alias a field to a new name? 

Something akin to

 .select(['group.DNIS_Campaign as DNIS_Campaign', 'flattenedMetrics.nOffered_count as nOffered_count', 'flattenedMetrics.tIvr_count as tIvr_count', 'flattenedMetrics.tAnswered_count as tAnswered_count'])

Baby Palanidurai [Syncfusion]
Replied On May 3, 2019 08:36 AM UTC

Hi Christopher, 

Greetings from Syncfusion. 

We have analyzed your query. You have mentioned how to map the selected fields to new name. but we are not clear about your query, whether you want to map the selected fields to add the new series and map the property to the dataSource?. We are aware of your exact scenario  about the selected to map. Kindly provide the clear details about your requirement which will be helpful in furthermore analysis and provide you the solution sooner. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon