Displaying SQL Server Data in Geocortex Workflow [Geocortex Tech Tip]

Displaying SQL Server Data in Geocortex Workflow [Geocortex Tech Tip]

Patrick Fingler
Patrick Fingler
Technical Marketing Specialist
August 16, 2019

Displaying SQL Server Data in Geocortex Workflow [Geocortex Tech Tip]

Geocortex Workflow extends what you can do with your Geocortex and Web AppBuilder for ArcGIS applications. A key component of this is providing a way to efficiently connect spatial data in a GIS application with non-spatial data stored externally.

In this week’s tech tip video, we show you how can pull data from a SQL server to display in Geocortex Workflow without replicating the data. This streamlined process allows you to get a complete picture of your assets, enabling better informed decisions.

Watch on YouTube.

Video Transcript

“Hi everyone, my name is Patrick Fingler. I work on our Technical Marketing team, and in this tech tip video I’m going to show you how you can display SQL server data inside of Geocortex Workflow. Let’s take a look!”

In this tech tip video, I am going to show you how you can display data from SQL databases when you select features on the map, using Geocortex Workflow. Here I am in Web AppBuilder and I’ll just show you the workflow right off the bat, and then we’ll dive in and see how it’s all put together.

Here I added a client-side workflow as a widget to my Web AppBuilder instance. It’s an extremely simple workflow: all it’s asking you to do is to enter the facility ID of one of my hydrants. If I click submit, then it’s going to pan to that hydrant and now we are actually displaying related inspections. This inspection information is actually being pulled dynamically from the SQL server, but we also do have an ArcGIS relationship, so if you do want to quickly confirm that we are pulling those three inspections, here they are. This data here is being pulled from a SQL server and being populated in this form. So, how do we accomplish this?

You can see I’ve installed the on-premise version of Geocortex Workflow designer. If I navigate to the info tab, you can see this is a client workflow, so that means that I can add it to Web AppBuilder and I can essential display forms and present information to my end users.

I have an initial form here asking the user to enter their facility ID. You can see that this says ‘textBox1’ and it’s ‘form 1’. I added some graphics to the map to select that hydrant, and then this is where I run a server-side workflow to then query that SQL database. This is the URL of my server workflow, which is this workflow here on the right. Then I’m passing in some arguments. I’m passing in the name (this could be anything you want), and I’m passing in the ‘textBox1’ value. I can zoom in a little bit here to show you what that looks like.

Essentially, the workflow then kicks off the server workflow and what this does is it gets the workflow inputs and then, I’m using the ‘Run SQL Query’ activity. This requires a provider name, so here I entered in ‘Microsoft SQL Server’. I added a connection string and you can see that I greyed out some of these items because some of this is sensitive information. But here you can see that this requires a data source. In this example: an initial catalog to production, integrated security is false, this is my User ID and also a password. The activity for this shows you how to configure those connection strings.

Last but not least, I need a command text here. This is where I’m performing my query in SQL server. I’m doing a ‘SELECT’ statement to select the facility ID, hydrant condition, inspector, and last update. These are attributes within my inspections table in SQL server. ‘FROM’ – this is the table I am querying, ‘WHERE’ the facility ID is ‘LIKE’ the name that I pass it. This name is essentially configured in the parameter section here. Again, this can be anything you want, I just happened to call them both ‘names’. But this could be where ‘Facility ID = $getWorkflowInputs1.inputs.name’.

Now this ‘.name’ is the name that we sent from the client-side activity. That’s going to run and perform that query. The next step is setting up the workflow output. Here I’m just giving it a name called ‘SQL query output’ – this could be anything you want. I’m passing back the data table from the SQL query activity to my client workflow. I’m actually running a log activity so we can see what that looks like. Then I’m essentially creating a variable called ‘Inspections’ and it is taking the results of my SQL query out.

This is a data table that we passed back to our client-side workflow. This has to match the name that you set in your ‘Set Workflow Output’ activity. Then what I’m doing is I have another form here that is in the item picker I’ve added. If I edit the item’s sub-workflow here, you can see I’m using ‘Get From Element Items From Collection’ (that’s important). I’m passing in the variable that I created, so this is my ‘inspection.result’. Alternatively, you could just do your run workflow ‘output.SQLqueryout’.

Here’s the variable that I created, and I’m just creating a label using markdown. I’ve bolded my ‘condition,’ I’m passing in the hydrant condition attribute from the SQL server table. Then I’m adding in some new lines to break it up. That’s pretty much it. That’s how we are able to display those inspections in that form.

Now if I quickly run this once more, open up the console, clear that and run it, we’ll see that once the server-side workflow runs, it returns this SQL query out. This is being passed from the service-side workflow back to the client-side workflow. Here you can see these are the four attributes that I selected to be returned.

That’s how you can display data from SQL databases when you select features on the map, using Geocortex Workflow. Bye for now!”

Want to learn more about Geocortex Workflow or see it in action? Click the button below for more information or to request a demo.

Discover Geocortex Workflow


Categories:
Archive
Open: 2019
2019
November 1, 2019

How to reference symbology from web maps [Geocortex Tech Tip]

October 25, 2019

How Geocortex Mobile can integrate with other apps [Geocortex Tech Tip]

October 18, 2019

Implementing Arcade Expressions in Geocortex Essentials [Geocortex Tech Tip]

October 17, 2019

Customer Spotlight: Geocortex Mobile

October 11, 2019

How to Format Your Reports [Geocortex Tech Tip]

October 4, 2019

Showing an image in a form after a file picker [Geocortex Tech Tip]

October 2, 2019

Richard Wiegmann Joins VertiGIS as President and CEO

September 27, 2019

Understanding the toolbar in Geocortex Web [Geocortex Tech Tip]

September 20, 2019

Refining Results in Geocortex Web [Geocortex Tech Tip]

September 19, 2019

Charting data using Geocortex Reporting: Honing your charting skills

September 13, 2019

Utilizing the flexibility of layout in Geocortex Web [Geocortex Tech Tip]

September 6, 2019

Creating Geocortex Web applications that move seamlessly between 2D and 3D [Geocortex Tech Tip]

August 28, 2019

Geocortex adds support for Arcade scripting and ArcGIS Online smart mapping

August 23, 2019

How to create sections and groups for your reports [Geocortex Tech Tip]

August 16, 2019

Displaying SQL Server Data in Geocortex Workflow [Geocortex Tech Tip]

August 14, 2019

Customer Spotlight: Geocortex Essentials

August 8, 2019

City of Austin: Spreading floodplain awareness with Geocortex

August 1, 2019

Geocortex Essentials 4.12: Improved integration with ArcGIS® Online

July 25, 2019

Introduction to Geocortex Printing: Learn to build stunning print templates

July 17, 2019

Updates to the Geocortex Product Life Cycle

July 8, 2019

Extending Web AppBuilder for ArcGIS® with Geocortex Essentials [Webinar]

July 4, 2019

City of Bellingham: Using Geocortex to take the stress out of water shut-off

June 27, 2019

Geocortex at the 2019 Esri User Conference

June 14, 2019

Customer Spotlight: Geocortex Workflow

May 17, 2019

Important Notice - Outage Issues & New Support Cases

May 17, 2019

How to build a summary report with aggregations of feature data [Geocortex Tech Tip]

May 16, 2019

Technology Q&A: Geocortex Mobile

May 10, 2019

How to create print templates for Web AppBuilder for ArcGIS®[Geocortex Tech Tip]

May 8, 2019

Dive into Geocortex Printing [Webinar]

May 3, 2019

Using Geocortex Workflow and Geocortex Reporting to produce a multi-layer report [Geocortex Tech Tip]

May 1, 2019

Market-Leading GIS Software and Services Companies Join to Form VertiGIS

May 1, 2019

Introducing VertiGIS

April 18, 2019

Integrating Workflows into Geocortex Mobile [Geocortex Tech Tip]

April 17, 2019

Customer Spotlight: Geocortex Reporting

April 12, 2019

Using Geocortex Go to preview app configurations [Geocortex Tech Tip]

April 10, 2019

How to Address Complex Form Navigation Using Geocortex Workflow

April 5, 2019

Building native, offline IOS, Android and Windows apps with Geocortex Mobile Viewer [Geocortex Tech Tip]

April 3, 2019

Streamlining mobile operations with Geocortex Mobile Viewer [Webinar]

March 29, 2019

A better way to run geoprocessing tasks in Web AppBuilder for ArcGIS [Geocortex Tech Tip]

March 28, 2019

Extend the reach and capabilities of your applications with integrations [eBook]

March 22, 2019

Displaying data from SQL Database when you select features [Geocortex Tech Tip]

March 20, 2019

How Geocortex users are enriching the communities they serve

March 15, 2019

How to Configure a Geocortex Essentials layer report with Geocortex Reporting 5 [Geocortex Tech Tip]

March 14, 2019

Region of Waterloo: How GIS & Geocortex technology helped meet local Source Protection Plan requirements

March 6, 2019

Integrating Business Intelligence and Data Sources with Geocortex Essentials [Webinar]

March 1, 2019

How to quickly add attachments to new features when editing [Geocortex Tech Tip]

February 22, 2019

Generating a report with sub reports from external data sources [Geocortex Tech Tip]

February 20, 2019

Geocortex Essentials 4.11: Saving Time & Increasing Efficiency

February 15, 2019

Accessing Samples and Building your First Workflow [Geocortex Tech Tip]

February 12, 2019

Open Beta of Geocortex Printing 5 Has Begun

February 8, 2019

Different Ways of Creating Selections of Features in Geocortex Viewer for HTML 5 [Geocortex Tech Tip]

February 6, 2019

4 Best Practices to Follow When Using Geocortex Workflow 5

February 1, 2019

Creating a Report that Displays a Screenshot of the Map [Geocortex Tech Tip]

January 28, 2019

Diving Into Geocortex Reporting 5 [Geocortex Tech Tip]

January 24, 2019

How Geocortex is Advancing Water Management Solutions

January 16, 2019

Creating Custom User Experiences with Geocortex Workflow 5 [Webinar]

January 11, 2019

Showing the search results using the item picker in Geocortex Workflow 5 [Geocortex Tech Tip]

January 9, 2019

City of Troy: Using GIS and asset management technologies to manage legislative requirements

January 4, 2019

Using scripting to put attachments in reports in Geocortex Reporting 5 [Geocortex Tech Tip]

Open: 2018
2018
December 21, 2018

Integrating Pictometry, Bing and other 3rd party maps within your Geocortex applications

December 19, 2018

Recapping the Texas Geocortex Regional User Group

December 14, 2018

How to use Geocortex Workflow 5 to populate the Attribute Table in Web AppBuilder for ArcGIS [Geocortex Tech Tip]

December 12, 2018

Finding yourself: Using geolocation in mobile and web applications [Webinar]

December 7, 2018

Enabling real-time user-to-user map collaboration within Geocortex Essentials

December 5, 2018

Reflecting on 2018

November 30, 2018

Creating mailing labels with reports with Geocortex Reporting 5 [Geocortex Tech Tip]

November 29, 2018

Alberta Energy Regulator: Supporting safe and responsible energy resource operations

November 26, 2018

Important update for ArcGIS and Transport Layer Security (TLS) Protocol Support!

November 23, 2018

Using fine-grained security to control access to layers, features, attributes and application functionality [Geocortex Tech Tip]

November 21, 2018

Enhancing Web AppBuilder for ArcGIS® with Geocortex Reporting [Webinar]

November 16, 2018

Using Geocortex Workflow 5 to automatically display a form for editing layer attributes [Geocortex Tech Tip]

November 15, 2018

Geocortex Achieves Esri’s “Release Ready Specialty” Designation

November 14, 2018

Celebrating GIS Day with York Regional Police: How GIS Data Has Mitigated Risk & Increased Efficiency in Crime Prevention

November 9, 2018

How to access a SQL database from a workflow using Geocortex Workflow 5 [Geocortex Tech Tip]

November 2, 2018

How to send an email from a workflow using Geocortex Workflow 5 [Geocortex Tech Tip]

October 26, 2018

How to add and configure charts inside reports with Geocortex Reporting 5 [Geocortex Tech Tip]

October 24, 2018

Geocortex Water Webinar Series

October 19, 2018

Integrating Geocortex Essentials with ArcGIS Online and ArcGIS Enterprise portal [Geocortex Tech Tip]

October 17, 2018

Cross-Platform Development with Xamarin [Webinar]

October 12, 2018

City of Fort Collins: Dynamic flood maps for public awareness, and flood insurance rate saving

October 2, 2018

Technology Q&A: Geocortex Workflow 5 “Behind the Firewall”

June 27, 2018

Geocortex Essentials 4.10 is here!

June 12, 2018

Geocortex and the GDPR

June 6, 2018

Geocortex at the 2018 Esri User Conference

May 15, 2018

Technology Q&A: The evolution of Geocortex and Web AppBuilder for ArcGIS

April 25, 2018

How to manage data collected from Geocortex Workflow 5 forms [Geocortex Tech Tip]

April 18, 2018

Delivering accessible mapping applications for everyone [Geocortex Tech Tip]

April 11, 2018

How to search for data in a non-spatial database [Geocortex Tech Tip]

April 5, 2018

Configuring Geocortex Analytics to monitor a new Portal for ArcGIS instance [Geocortex Tech Tip]

March 27, 2018

Getting started with forms in Geocortex Workflow 5 [Geocortex Tech Tip]

March 21, 2018

Using Geocortex Workflow with Web AppBuilder for ArcGIS [Geocortex Tech Tip]

March 15, 2018

Understanding tool usage in your GIS applications [Geocortex Tech Tip]

March 7, 2018

Running Geocortex Essentials workflows from an identify operation [Geocortex Tech Tip]

March 2, 2018

GIS Health Assessment: A new way to think about your system

February 28, 2018

Using the in-app help system in Geocortex Workflow 5 [Geocortex Tech Tip]

February 21, 2018

How to configure a personalized dashboard in Geocortex Analytics [Geocortex Tech Tip]

January 25, 2018

GIS is shifting to SaaS, and it’s a win for everyone


Categories

Popular Tags
Accessibility Active Operating Picture ArcGIS ArcGIS Online customer spotlight Customer Story Data Models Energy Esri Geocortex Geocortex 5-Series Geocortex Analytics Geocortex Essentials geocortex integrations geocortex mobile Geocortex Mobile Viewer geocortex printing Geocortex Printing 5 Geocortex Reporting Geocortex Reporting 5 geocortex tech tip Geocortex Tech Tips geocortex training Geocortex Viewer for HTML5 geocortex web Geocortex Web Viewer Geocortex Workflow Geocortex Workflow 5 GIS GIS Day GIS Health gis integrations Integrations Oil & Gas Pipelines Portal for ArcGIS SaaS Tech Tip Tech Tips Transportation vertigis Water Industry Web AppBuilder Web GIS Xamarin

Contributors