WebAppBuilder - Query Oracle Database

1416
12
03-24-2019 04:47 AM
KafilBaig
New Contributor III

Hey, I am very new  to WebApp Builder. I have a requirement where i need to query from Oracle Database and show the result in widget. Is this posibble to do .

In the tabular data i need to have a button on that click it should zoom that point .

Thanks in Advance.

0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus

Kafil,

   Your require array is out of order.

define([
        'dojo/_base/declare',
        'jimu/BaseWidget',
        'dijit/_WidgetsInTemplateMixin',
        'dgrid/OnDemandGrid',
        'dgrid/Selection',
        'dojo/store/Memory',
        'esri/layers/FeatureLayer',
        'esri/symbols/SimpleFillSymbol',
        'esri/tasks/query',
        'esri/Color',
        'dojo/_base/array',
		'dojo/_base/lang',
        'dijit/form/Button',
		'dojo/json',
		'dojo/Deferred',
		"esri/request",
		"esri/lang"
		
    ],
    function(declare, BaseWidget, _WidgetsInTemplateMixin,
        Grid, Selection, Memory, FeatureLayer, SimpleFillSymbol,
        Query, Color, array, lang, esriRequest, JSON, Deferred, esriLang) {

esriRequest is a 'dijit/form/Button' based on your require order...

0 Kudos
KafilBaig
New Contributor III

Thanks for the help Robert. You Rock.

I have created a new widget and am successful in getting the data. I am trying to add this data to dgrid but no luck in displaying the grid in widget.

Please help me where am going wrong in binding the grid.

Please find attached widget for your reference.

Thanks in advance.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Kafil,

  So what is the error you are getting now?

0 Kudos