Web App Builder reporting widget

27264
41
03-31-2015 03:41 AM
MohammedMogahed
Esri Contributor

I need to create a widget in webappBuilder, to generate a report, that will contain map with its graphical layer, charts, and table.

Is there a widget that does this task, can I use the print widget, customize it and generate output that have this kind of report?

Mohammed Mogahed

41 Replies
PabloIzquierdo1
New Contributor III

Frank Roberts​ , I'm trying to develop something very similar to your report tool, how do you add tables to the reports? are you publishing this tool as a print service?

0 Kudos
FrankRoberts
Occasional Contributor III

Yes, we created a custom GP process, that way we could utilize the functionality of selecting one or many features in the WAB map so we could then produce reports on them.  Over the next month we plan to build out our functionality of our GP to allows for expanding and contracting elements in the form.  For example if someone leaves a value blank then there is no reason to have the PDF be so long.  We are finding a fair number of our clients need this capability, so hope to expand upon what we have already learned.

FrankRoberts
Occasional Contributor III

As mentioned above we have rewritten our GP process to use ReportLab open-source toolkit (http://www.reportlab.com/opensource/).  Once the data driven pages and dynamic ReportLab "pages" are generated into a folder they are appended in the appropriate order to make the final PDF.  If anyone is interested in us spinning up similar GP process for them, please contact me.

Here is a link to a newer report:https://dl.dropboxusercontent.com/u/54484896/SiteStrategyReport_2sites.pdf

RobertMueller_Jr1
New Contributor III

Frank-

I am interested in trying to figure this out if you can give me a few pointers. I've been trying to use the layout dynamic text within the GP or trying to modify the PrintWidget. I basically need a 1 page pdf consisting of a map and attributes in the layout for a selected site.

I tried messaging you, but apparently you can only message people that are following you. Now that I am following you, if you would please message me back with a few details.

Thanks

Bob

0 Kudos
FrankRoberts
Occasional Contributor III

Bob, feel free to hit me up at

froberts@innovateteam.com

Frank Roberts

Director, Information Technology

Innovate! Inc.

Phone: (208) 699-2712

Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned

business delivering Geospatial, Information Technology, Security, Business

Consulting, Project Management and Executive Coaching solutions to our

government and private sector clients. Check us out at www.innovateteam.com

.

From: Robert Mueller Jr

Sent: Friday, April 15, 2016 10:20 AM

To: Frank Roberts <froberts@innovateteam.com>

Subject: Re: - Web App Builder reporting

widget

GeoNet <https://community.esri.com/?et=watches.email.thread>

Web App Builder reporting widget

reply from Robert Mueller Jr

<https://community.esri.com/people/rmueller1%40dow.com?et=watches.email.thread>

in Web AppBuilder Custom Widgets - View the full discussion

<https://community.esri.com/message/602281?et=watches.email.thread#comment-602281>

0 Kudos
HillaryBjorstrom
Occasional Contributor

Hi ,

Do you still have a code for this? this is exactly what i'm trying to do. Thank you in advance!!

0 Kudos
Jianxia
Esri Regular Contributor

Hillary,

We are working on a blog to walk through creating a custom widget from Report dijit. Will try to  publish it asap.

Jianixa

DerekLaw
Esri Esteemed Contributor

All,

FYI, as a follow up to Jianxia's post, the blog has been published:

Creating a Custom Widget for Web AppBuilder for ArcGIS using the Report Class | ArcGIS Blog 

Hope this helps,

IonutAlixandroae4
Occasional Contributor

Hi Derek,

Regarding the Reporting widget mentioned in the post from the blog (Creating a Custom Widget for Web AppBuilder for ArcGIS using the Report Class | ArcGIS Blog ), I have added the jsPDF API capability to be able to export the report, client-side, into a pdf document, but there are some problems with the pdf`s template (it doesn`t maintain the template in the html page created by the widget, or some specific characters). Do you guys know a workaround to save that report into a pdf document or generate a pdf report by a custom template?

Thanks,

Ionut

0 Kudos
DerekLaw
Esri Esteemed Contributor

Hi Ionut,

Some suggestions to try:

- You can save the print output to a PDF using Google Chrome’s default option “Save as pdf”;

- There is also this sample http://jsfiddle.net/xzZ7n/4861/ which might enable you to link to a Report widget's ReportTemplate.html file - but I am not a developer - you may want to post a new question in this forum

Web AppBuilder Custom Widgets 

Hope this helps,

 

0 Kudos