POST
|
Hi Hussein, It is not possible to use AppStudio and python conveniently at the moment, however there are some approaches you could take. Following this blog article Qt Creator can support Python. However this was done with the Qt SDK c++ environment. You may want to try this out. Using Python and QML to build native apps | ArcGIS Blog Another approach is that the AppFramework could open a script. the example I am showing is a windows batch file but there is no reason why it couldn't run your python scripts import QtQuick 2.3 import ArcGIS.AppFramework 1.0 import ArcGIS.AppFramework.Controls 1.0 App { id: app width: 400 height: 640 property string batFile: "C:/Users/gare7065/ArcGIS/AppStudio/Data/test.bat" Component.onCompleted: Qt.openUrlExternally(AppFramework.resolvedPathUrl(batFile)) }
The other thing you could is make your python tools GP services and then interact with them via the AppFramework's NetworkRequest object.
There are three options for you. I hope that helps.
Cheers,
Gareth
... View more
12-07-2015
08:22 PM
|
0
|
0
|
363
|
POST
|
Hi Paul, A nice curly one for the morning! Straight out I think it is going to be a bug/by design. A couple of things I quickly thought of. Declare the PictureMarkerSymbol outside of the UVI. Perhaps then it will refer to the binding correctly. Create a custom connection the map rotation for the angle. Then you will have forced the binding yourself and then at least it still within the component. Pseudo code: angle: map.onMapRotationChanged.connect(function(){ text = map.mapRotation}) http://doc.qt.io/qt-5/qtqml-syntax-signals.html I tried this on a Text component at both the text property and the Compoonent.onCompleted and the rotation updated.
Let me know how you go.
P.S. Lucas Danzinger any other thoughts?
... View more
11-29-2015
03:41 PM
|
0
|
2
|
1910
|
POST
|
Hi Michael, Sure you can. That is part of why we built them so you have code to pillage to create your own magnificent app! As a quick suggestion, look at the MapPage.qml in the Quickreport, It was designed for this type of scenario, just never made it into prime time. Take a look at how that works and how we use the stackview to populate the screen. I think you will be able to add a button somewhere and do a "push" to get what you want. Good luck and happy mapping. Gareth
... View more
11-19-2015
08:35 PM
|
2
|
3
|
596
|
POST
|
Hi Paul, If there is nothing in Runtime that hooks in, then you could always get to it via the REST interface using the NetworkRequest component.
... View more
11-19-2015
08:30 PM
|
0
|
16
|
945
|
POST
|
Hi Sascha, The QuickReport sounds like a great start for your application. I will attempt to answer each of your dot points. Taking Pictures of the Reported Damage (included in the Quick Report Template) You feature service just has to have attachments set and the app will automatically give you a camera/file picker Inserting the following Information: Name and Surename and E-Mail adress of the reporter, Description of Damage, Locationof Damage (district, street name and street number), Type of Damage (via Dropdown or something) These will all be fields defined in your feature service. You can set the type of damage as a subtype and it will all flow through to the app. Picking the damaged place on a web map with a marker. These markes should change colours depending on if the problem has been solved, repair is in progress or the problem is reported. These markers should also be visible for all users of the App. This should avoid redundant reportings of the same problem. The quick report app doesn't show the features that have been collected, however you could customise the app to add this functionality. At the simplest, you could add the featureLayer to the map in the page RefineLocation.qml. You could also make an app using the map viewer that could be used to show the ongoing progress. After reporting the damage an E-Mail should be send to one or more receivers within the muncipality automatically contaning the type and place of the Problem and if attached a photo of the scene. (very important) if email was a field in your feature service, you could make it required so a user must fill in the details. Then you could have a back end process that emails the person once the status is complete. I hope this helps. Let me know how you go. Cheers, Gareth
... View more
10-13-2015
10:33 PM
|
2
|
1
|
395
|
POST
|
Hi Paul, If you want to continue to user a feature layer, I found that just using mapRotation will tend to keep the icon upright. I must admit it doesn't seem perfectly react to the mapRotation. FeatureLayer { id: featureLayer featureTable: featureServiceTable renderer: SimpleRenderer { symbol: PictureMarkerSymbol { image: "./Alfred_E._Neuman.png" width: 32 height: 32 angle: (map.mapRotation) } } }
... View more
10-13-2015
10:07 PM
|
0
|
4
|
1910
|
POST
|
Hi Chris, Can you let us know what device you are running on? We have noticed that depending on how many fields are editable for the form. Could you provide access to the service for our testing? Cheers, Gareth
... View more
10-13-2015
08:49 PM
|
0
|
1
|
252
|
POST
|
Hi Dinesh, Just tried your web map but I get an error 400 issue. Could you make sure that the service is up and running so we can have a look at the problem. Cheers, Gareth
... View more
10-04-2015
03:49 PM
|
1
|
3
|
995
|
POST
|
Hi Paul, You need to use map.setRotation(). map.setMapRotation(map.rotation - 15, 0,0) Let me know how you go. Cheers, Gareth
... View more
10-04-2015
03:41 PM
|
1
|
1
|
800
|
POST
|
Hi Patrick, On your points of drawing a temporary polygon, if you add a graphics layer (ArcPad Button, New, Graphics Layer) you can add a point and symbolise to a nice big icon, then mark it on your map at your start point. Then when you are done collecting a polygon you can delete that graphic. I hope this helps as a quick fix for you. Cheers, Gareth
... View more
08-05-2015
07:59 PM
|
0
|
1
|
394
|
POST
|
Hi Philip, Could you please be more descriptive of your issue? Are you working inside of the AppStudio Online template workflow? If so, are you trying the Map Viewer as that is the only app that allows you to use web maps? Look forward to hearing from you. Cheers, Gareth
... View more
08-04-2015
04:49 PM
|
0
|
2
|
292
|
POST
|
Hi Carol, Thanks for the input. We have decided that for that property the validation is not required and have removed it from the template. Give the system a couple of days to update and you will be able to download the map viewer again. If you are keen to have the update, you can manually edit your appschema.json file. Remove the regex and error properties from the organization url - see below: ``` { "type": "string", "label": "Organization url", "name": "companyUrl", "placeholder": "Url" }
```
I hope this helps.
Cheers,
Gareth
... View more
08-03-2015
10:29 PM
|
1
|
0
|
717
|
POST
|
Hi Paul, The QuickReport uses the calendar control. It was introduced at 1.3. You should simply change your import statement (even though you don't see it in the list). Let me know how you go. Cheers, Gareth
... View more
07-15-2015
04:15 PM
|
0
|
1
|
511
|
POST
|
Hi Devin, The User group is straight after this session so you can turn that frown upside down
... View more
07-14-2015
10:34 AM
|
2
|
1
|
397
|
Title | Kudos | Posted |
---|---|---|
1 | 08-03-2015 10:29 PM | |
1 | 10-04-2015 03:41 PM | |
1 | 11-20-2011 03:31 PM | |
1 | 03-20-2013 06:32 PM | |
2 | 11-19-2015 08:35 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|