Proxy settings for Quick Report Template - App Studio for ArcGIS 2.1

597
2
01-24-2018 01:30 AM
Muruganandam_Saravanan
New Contributor II

We are customizing the Quick Report template for based on our requirement ( AppStudioForArcgis v2.1.19).  Here we are using Secured feature service. Is it possible here to create/enable proxy settings (QT QML code).

The following two places we are doing changed and checking the application . but we couldn't succeed.

1. "proxyFilter": null,
2.  //Security
    property string username: 
    property string password:

We are using first time App studio ,needed experts advice , Thanks  

0 Kudos
2 Replies
KE
by
Occasional Contributor

I managed to get this one working with the Quick Report: GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.  I added a new property in the appinfo.json file for the proxy URL. And then edited QuickReportApp.qml to force the use of the proxy:

    //layers
    //property string featureServiceURL: app.info.propertyValue("featureServiceURL","")
    property string proxyURL: app.info.propertyValue("proxy","")
    property string featureServiceURL: proxyURL + "?" + app.info.propertyValue("featureServiceURL","")

The username and password are stored inside of the proxy.

Muruganandam_Saravanan
New Contributor II

Hi K E,

 We will try this    Thanks a lot. 

0 Kudos