Platform
Learn
Community
Support
Sign up
or
Log in
Profile
messages
Messages
logout
Logout
Platform
Home
Downloads
IPP
Licensing
Project Sizing
Beta
Learn
Training
Documentation
Evaluation Guide
Community
Jobs
Home
Forums
Forge
Ideas
Badges
Members
Support
Partner Guide
Resources Library
Opportunities
Account Management
Pre Sales Demos
Sign up
or
Log in
Home
Jobs
Forums
Forge
Ideas
Members
Badges
Dear ,
What would improve your OutSystems Community experience? Let us know by taking this 2-minute survey.
Pick up the survey
Community
›
Forums
›
Technology & Integration
Unable to use charts in Email
New Post
New Post
Nagesh Gupta
Posted on 2016-03-28
Nagesh Gupta
Rank: #9730
Posted on 2016-03-28
Can some one help me how to add charts in Email screen?
J.
Posted on 2016-03-29
J.
Rank: #9
Posted on 2016-03-29
Solution
not sure if it's possible.
best bet, imho, save the chart as an image and include that in the email.
Solution
Nagesh Gupta
Posted on 2016-04-11
Nagesh Gupta
Rank: #9730
Posted on 2016-04-11
Solution
i am able to save the chart in hard disk, but i want to save the chart in images folder in service stuido itself. i am not able to find the option how to save that in images folder. can any one help me on this
Solution
Nagesh Gupta
Posted on 2016-04-13
Nagesh Gupta
Rank: #9730
Posted on 2016-04-13
Solution
can any one help me on this ?
i am able to save the chart in hard disk, but i want to save the chart in images folder in service stuido itself. i am not able to find the option how to save that in images folder
Solution
Kilian Hekhuis
Posted on 2016-04-13
Kilian Hekhuis
Rank: #5
Posted on 2016-04-13
Solution
Hi Nagesh,
First, the reason why charts in an e-mail do not work, is that charts are SVG (vector) images, and not many e-mail programs will render those correctly. Not to mention that there's probably a lot of JavaScript needed, and no sane e-mail program will run JavaScript.
Secondly, you are confusing some stuff. First, you need to save the chart server side, not client side as I assume you mean by "save the chart [to the] hard disk". However, this is not easily done (see below). Also, you talk about "images folder in Service Studio", but the images in Service Studio can only be added design-time, not run-time. However, the images end up in the /img directory, and are accesible via eSpaceName/img/ImageName.jpg, so if you can save the image server-side, you need to put it there.
The only way to save charts server site, as far as I know, is to use server-side rendering code like PhantomJS. But unless you are well-versed in JavaScript and C#, that's not going to be easy (you need to create an extension etc.). You may be able to use the Forge component Html2PdfConverter, but that seems to have problems with HighCharts charts, and I'm not sure it can output images instead of PDFs.
Solution
Nagesh Gupta
Posted on 2016-04-13
Nagesh Gupta
Rank: #9730
Posted on 2016-04-13
Solution
Thanks for the reply Hekhuis.
Yes i need to save my chart in server side, so that while generating mail i can dynamically add the chart image into mail.
Solution
Login to reply
New Post
Available Forums
Technology & Integration
News and Announcements
Forge Discussions
Meta
Hints and How-To Guides
Usability
Installation Troubleshooting
Personal Environment Troubleshooting
Forum Notifications
Email Digest Settings
Loading...
(hidden) New Badge Popup