How to integrate with web API .Net and Angular 6

Answered
PARESH AHER asked on February 20, 2019

Hello,
I want to integrate flexmonster with web Api and angular 6 could u please give me solution for it 
 
Thanks 

8 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster February 20, 2019

Hello, Paresh,
Please find here the instructions on how to embed Flexmonster into an Angular application: https://www.flexmonster.com/doc/integration-with-angular/.
Hope they will be useful. Please inform us in case of questions.
Regards,
Tanya

Public
PARESH AHER February 21, 2019

I want with ASP.NET WEB API also 

Public
Ian Sadovy Ian Sadovy Flexmonster February 21, 2019

Hello Paresh,
 
Could you please specify what kind of sample you need for ASP.NET?
Being a client-side component, Flexmonster is embedded into your front-end as any other Angular component.
 
Do you need an example of how to integrate Flexmonster Compressor into Web API?
 
Look forward to hearing from you.
 
Regards,
Ian

Public
PARESH AHER February 21, 2019

Getting error with Angular 6 and Webpack
 
p.html:3 ERROR TypeError: window.Flexmonster is not a function
at e.ngOnInit (vendors~main.7973343bb19486e8ed60.bundle.js:1649)
at vendors~main.7973343bb19486e8ed60.bundle.js:1260
at vendors~main.7973343bb19486e8ed60.bundle.js:1260
at ca (vendors~main.7973343bb19486e8ed60.bundle.js:1260)
at Qa (vendors~main.7973343bb19486e8ed60.bundle.js:1267)
at vendors~main.7973343bb19486e8ed60.bundle.js:1267
at Object.eval [as updateDirectives] (p.html:3)
at Object.Wa [as updateDirectives] (vendors~main.7973343bb19486e8ed60.bundle.js:1267)
at ua (vendors~main.7973343bb19486e8ed60.bundle.js:1260)
at va (vendors~main.7973343bb19486e8ed60.bundle.js:1260)

Public
Ian Sadovy Ian Sadovy Flexmonster February 21, 2019

That error means Flexmonster dependency is not included in your project.
Please refer to the Webpack integration tutorial, it might be helpful: Integration with Webpack
Also, you can send a ZIP of your project to let us check.
 
Regards,
Ian

Public
PARESH AHER February 25, 2019

Hello,
I am making server call from angular 6 typescript and I am getting ocsv2 data from server how to append data to report.
DATA:
___ocsv2___2.6.14/2.213
+Category,+Size,+Color,+Destination,+Business Type,+Country,-Price,-Quantity,-Discount
Accessories,262 oz,red,Australia,Specialty Bike Shop,Australia,174,225,23
^0,214 oz,yellow,Canada,^0,Canada,502,90,17
^0,147 oz,white,France,^0,France,242,855,37
^0,112 oz,^1,Germany,^0,Germany,102,897,42
^0,256 oz,^0,United Kingdom,^0,United Kingdom,126,115,44
^0,278 oz,^1,United States,^0,United States,1246,88,47
^0,8 oz,green,^0,Value Added Reseller,^0,680,66,80
^0,181 oz,^1,^1,^1,^1,1241,939,66
^0,^7,^1,^1,^1,^1,1241,939,66
^0,344 oz,^1,^2,^1,^2,150,67,30
^0,291 oz,^0,^3,^1,^3,244,963,22
^0,126 oz,^1,^4,^1,^4,501,556,9
^0,317 oz,^0,^5,^1,^5,4960,898,41
^0,124 oz,^1,^0,Warehouse,^0,9,578,8
^0,23 oz,^0,^1,^2,^1,3655,64,70
^0,^12,^3,^2,^2,^2,1654,556,95
^0,310 oz,^1,^3,^2,^3,1190,292,36
^0,277 oz,^0,^4,^2,^4,1222,730,38
^0,47 oz,^2,^5,^2,^5,7941,73,53
Bikes,264 oz,^2,^0,^0,^0,6829,19,56
^1,76 oz,^0,^1,^0,^1,1664,19,75
^1,217 oz,^0,^2,^0,^2,2995,98,88
^1,251 oz,^3,^3,^0,^3,1487,96,100
^1,292 oz,^3,^4,^0,^4,9245,51,29
^1,266 oz,^3,^5,^0,^5,9008,76,66
^1,198 oz,^3,^0,^1,^0,9376,92,7
^1,109 oz,^0,^1,^1,^1,1531,56,31
^1,54 oz,^1,^2,^1,^2,5421,83,22
^1,93 oz,^0,^3,^1,^3,6975,73,41
^1,297 oz,blue,^4,^1,^4,4320,59,100
^1,339 oz,^0,^0,^1,^5,3200,27,41
^1,205 oz,^4,^1,^2,^0,6688,22,41
^1,226 oz,^4,^2,^2,^1,699,22,42
^1,311 oz,purple,^3,^2,^2,5403,75,70
^1,282 oz,^0,^4,^2,^3,6377,28,49
^1,286 oz,^4,^5,^2,^4,2471,93,14
^1,100 oz,^4,^0,^2,^5,6650,40,4
Clothing,218 oz,^1,^1,^0,^0,865,4513,70
^2,216 oz,^4,^2,^0,^1,511,4615,20
^2,284 oz,^4,^3,^0,^2,981,1854,36
^2,325 oz,^4,^4,^0,^3,57,1187,10
^2,192 oz,^2,^5,^0,^4,675,1527,38
^2,25 oz,^5,^0,^0,^5,40,4342,72
^2,95 oz,^0,^1,^1,^0,400,8975,63
^2,39 oz,^5,^2,^1,^1,971,3522,90
^2,36 oz,^3,^3,^1,^2,357,3939,93
^2,208 oz,^0,^4,^1,^3,820,3560,40
^2,3 oz,^2,^5,^1,^4,520,3892,32
^2,^2,^2,^0,^1,^5,448,3906,24
^2,68 oz,^0,^4,^2,^0,513,9790,40
^2,267 oz,^4,^5,^2,^1,977,6107,8
^2,33 oz,^3,^0,^2,^2,118,4718,84
^2,319 oz,^4,^1,^2,^3,161,7988,29
^2,326 oz,^3,^2,^2,^4,239,840,89
^2,184 oz,^3,^3,^2,^5,327,6574,79
Components,255 oz,^0,^4,^0,^0,284,2471,42
^3,144 oz,^3,^5,^0,^1,827,4772,26
^3,283 oz,^0,^0,^0,^2,967,1646,42
^3,299 oz,^4,^4,^0,^3,569,6568,58
^3,88 oz,^4,^5,^0,^4,156,7585,35
^3,161 oz,^0,^0,^0,^5,845,4208,42
^3,242 oz,^4,^1,^1,^0,838,6460,41
^3,^40,^0,^2,^1,^1,51,410,97
^3,^11,^4,^3,^1,^2,95,2307,64
^3,295 oz,^0,^2,^1,^3,885,6843,10
^3,69 oz,^4,^3,^1,^4,239,7541,36
^3,320 oz,^4,^4,^1,^5,145,7978,78
^3,104 oz,^3,^5,^2,^0,605,458,72
^3,34 oz,^2,^0,^2,^1,778,8918,89
^3,194 oz,^4,^1,^1,^0,434,1297,60
^3,340 oz,^0,^0,^1,^1,732,8420,62
^3,49 oz,^4,^1,^1,^2,780,5535,29
^3,94 oz,^0,^2,^1,^3,85,2063,98
^3,203 oz,^4,^3,^1,^4,672,316,62
^3,350 oz,^4,^4,^1,^5,389,4900,46
^3,106 oz,^3,^5,^2,^0,81,3674,34
^3,348 oz,^2,^3,^2,^1,959,4819,14
^3,200 oz,^3,^4,^2,^0,666,780,88
^3,209 oz,^2,^5,^2,^1,326,7308,29
^3,220 oz,^2,^0,^2,^2,550,3635,99
^3,303 oz,^4,^1,^2,^3,192,2895,77
^3,193 oz,^2,^0,^2,^4,564,4306,53
^3,53 oz,^4,^1,^2,^5,751,4835,34
^3,43 oz,^0,^2,^0,^0,750,178,62
^3,114 oz,^3,^3,^0,^1,106,4571,12
^3,231 oz,^0,^4,^0,^2,436,7733,94
^3,26 oz,^4,^5,^0,^3,314,1033,14
^3,140 oz,^4,^0,^0,^4,370,5788,76
^3,158 oz,^0,^1,^0,^5,984,6047,35
^3,^40,^4,^2,^1,^0,531,7845,83
^3,^80,^0,^3,^1,^1,907,3829,15
^3,150 oz,^4,^4,^1,^2,233,5546,80
^3,258 oz,^0,^5,^1,^3,548,2777,74
^3,119 oz,^4,^0,^1,^4,723,9333,10
^3,116 oz,^4,^1,^1,^5,55,9755,21
^3,^28,^3,^3,^2,^0,523,3115,73
^3,263 oz,^2,^4,^2,^1,978,1561,43
^3,30 oz,^4,^5,^1,^0,522,7101,52
^3,349 oz,^0,^0,^1,^1,681,6964,47
^3,67 oz,^4,^1,^1,^2,166,1589,8
^3,70 oz,^0,^0,^1,^3,342,7198,14
^3,17 oz,^4,^1,^1,^4,654,8039,10
^3,270 oz,^4,^2,^1,^5,259,8551,18
^3,247 oz,^3,^3,^2,^0,756,3897,40
^3,^79,^2,^4,^2,^1,751,2158,16
^3,^42,^3,^5,^2,^0,830,4341,63
^3,^25,^2,^0,^2,^1,789,7973,37
^3,^8,^2,^1,^2,^2,324,1908,73
^3,^42,^4,^2,^2,^3,831,6912,62
^3,314 oz,^2,^3,^2,^4,86,4346,96
^3,324 oz,^4,^4,^2,^5,181,3045,48
^3,148 oz,^0,^5,^0,^0,295,3429,68
^3,105 oz,^3,^0,^0,^1,675,2581,3
^3,91 oz,^0,^1,^0,^2,302,5919,46
^3,^42,^4,^4,^0,^3,620,180,64
^3,4 oz,^4,^5,^0,^4,390,2174,22
^3,^22,^0,^0,^0,^5,698,2281,61
^3,^79,^4,^1,^1,^0,195,3606,1
^3,^74,^0,^2,^1,^1,542,6412,55
^3,15 oz,^4,^3,^1,^2,159,7231,79
^3,^68,^0,^4,^1,^3,190,6419,100
^3,257 oz,^4,^5,^1,^4,440,9871,88
^3,236 oz,^4,^0,^1,^5,935,9985,1
^3,50 oz,^3,^4,^2,^0,971,4955,72
^3,^64,^2,^5,^2,^1,95,9544,69
^3,293 oz,^4,^0,^1,^0,365,1431,94
^3,128 oz,^0,^1,^1,^1,566,3776,49
^3,^76,^4,^2,^1,^2,770,3037,59
^3,342 oz,^0,^3,^1,^3,590,434,60
^3,44 oz,^4,^4,^1,^4,903,9479,96
^3,123 oz,^4,^5,^1,^5,278,8185,91
^3,235 oz,^3,^0,^2,^0,551,1950,51
^3,307 oz,^2,^4,^2,^1,842,8212,55
^3,197 oz,^3,^5,^2,^0,480,4721,56
^3,^55,^2,^0,^2,^1,705,9027,51
^3,174 oz,^2,^1,^2,^2,628,4955,30
^3,^101,^4,^2,^2,^3,458,8561,69
^3,108 oz,^2,^3,^2,^4,549,2214,73
^3,346 oz,^4,^4,^2,^5,179,6684,94
^3,^104,^0,^5,^0,^0,96,2187,56
^3,323 oz,^3,^0,^0,^1,361,3485,76
^3,187 oz,^0,^0,^0,^2,734,8064,42
^3,210 oz,^4,^1,^0,^3,807,9929,32
^3,^117,^4,^2,^0,^4,

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster February 26, 2019

Hello Paresh,
Thank you for providing the details.
Please refer to our documentation of using Flexmonster Pivot with OCSV data from server: https://www.flexmonster.com/doc/connecting-to-relational-database-with-net/.
Let us know if everything works fine for you.
Regards,
Dmytro

Public
PARESH AHER February 28, 2019

Thanks for your reply everyone.

🙂

Please login or Register to Submit Answer