Need a special offer?Find out if your project fits.
+

Angular 8 property measure does not exist in type ConditionalFormat

Resolved
Muni Do asked on June 10, 2020

Hi
Recently we have upgraded Flexmonster last version 2.8.8.
After Upgrade we had some issues kind of Properties(specially Report properties).

  • In type ConditionalFormat 'measure' doesn't exist. (measureName doesn't work)
  • In type Hierarchy 'sort' doesn't exit ( ok we can change property name as sortName: unsorted, it works)
  • Sort property from Row( it works with sortName: 'asc')

Question:

Thanks
Muni
 

7 answers

Public
Vera Didenko Vera Didenko Flexmonster June 12, 2020

Hello, Muni,
 
Thank you for writing to us and for giving us some time. 

Looking deeper, the mentioned properties do need to be updated in the TypeScript definitions according to the documentation on our website. We would like to confirm that the documentation is up to date.
 
Our team will provide the fix in the minor release version with the ETA 15th of June.
 
Please let us know if this would for you.
 
Kind regards, 
Vera

Public
Muni Do June 14, 2020

Hello Vera
Thanks for your prompt reply and release information.  The new version and documentation would be very helpful. 
Kind regards
Muni
 

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster June 16, 2020

Hi Muni,
 
We are happy to let you know that the sortName & measureName properties were updated to sort & measure correspondingly.
 
This is included in the 2.8.9 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component. Here is our updating to the latest version guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/ 
 
Please let us know if everything works fine for you.
 
Best regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster June 23, 2020

Hi Muni,
 
Hope you're doing well!
 
We were wondering if you've had a chance to check out the latest v2.8.9 release. Were the previously discussed issues fixed on your side, or do you still have any questions you would like to discuss? 
 
We would be happy to hear your feedback.
 
Regards,
Mykhailo

Public
Muni Do June 29, 2020

Hello Mykhailo
Thanks for your reply and sorry about lately feedback. 
Yes. Report Properties works pretty good. But I have still problem about using Highcharts.
getData Method request right now "GetDataValueObject". Do you have any highcharts-Angular example with new Version ?
 
Below you can find a sample method.
 
Thanks for your support.
 
Best regards Muni

createColumnChart() {
 
this.child.flexmonster.highcharts.getData(
    {
     
slice: {
       
rows: [{uniqueName: 'AssetClass'}],
       
columns: [{uniqueName: '[Measures]'}],
       
measures: [{uniqueName: 'SAA'}, {uniqueName: 'TAA'}, {uniqueName: 'TAA Previous Month'}]
      }
,
     
type: 'column'
   
},
   
data => {
     
this.Highcharts.setOptions({
       
plotOptions: {
         
column: {
           
pointPadding: 0.2
         
},

       
},
       
yAxis: {
         
labels: {
           
formatter: function() {
             
return (100 * this.value).toFixed(0) + '%';
           
}
          }
        }
,
       
colors: ['#303F9F', '#F57C00', '#8BC34A'],
       
tooltip: {
         
shared: true,
         
useHTML: true,
         
headerFormat: '<span style="font-size: 10px"><b>{point.key}</b></span><table>',
         
pointFormat: '<tr><td style="color: {series.color};padding:0">{series.name}: </td><td style="padding:0"><b>{point.y:.3f}</b></td></tr>',
         
footerFormat: '</table>'
       
}
      })
;
      this
.Highcharts.chart('highchartsContainer', data); //here No overload matches this call.
   
},
   
data => {
     
this.Highcharts.setOptions({
       
plotOptions: {
         
// series: {
          //   color: '#00a3cc' // set colors of the series
          // }
       
}

      })
;
      this
.Highcharts.chart('highchartsContainer', data);
   
}
  )
;
}

 
 

Public
Vera Didenko Vera Didenko Flexmonster July 2, 2020

Hello, Muni,
 
Thank you for your reply. 
 
We are glad to hear that the report properties work well for you.
 
Regarding the "No overload matches this call" issue, we kindly suggest casting data to the Highcharts.Options type, for example:

Highcharts.chart('highcharts-container', <Highcharts.Options>data);

Also, we have added a Highcharts example to our sample Angular project on GitHub. You are welcome to check it out by the following link.
 
 
Please let us know if this helps. 
Looking forward to your reply.
 
Kind regards, 
Vera

Public
Muni Do July 2, 2020

Hello Vera
Thanks for your reply and your help.
I has quickly tried to cast "data" to "Highcharts.Options". It looks like pretty good.
 
Thanks again and have a great day.
Best regards
Muni
 

Please login or Register to Submit Answer