|
POST
|
That worked for now, thank you. This will allow me to proceed with certain operations that i normally stop in my code. In this case below I want to see if the tool being used is "Merge", this function will return the name of the open window, which has a dialog header of "Merge". This is only temporary I hope. Will this EditOperation be available to query anytime soon? public static Task<string> GetActiveWindowTool()
{
return QueuedTask.Run(() =>
{
string ReturnActiveWindowTool = "";
try
{
IFrameworkWindow window = FrameworkApplication.ActiveWindow;
if (window != null)
{
var currentToolProp = window.GetType().GetProperty("DialogHeading");
if (currentToolProp != null)
{
string currentTool = currentToolProp.GetValue(window).ToString();
ReturnActiveWindowTool = currentTool;
}
}
}
catch (Exception e)
{
LogError("GetActiveWindow", e);
}
return ReturnActiveWindowTool;
});
}
... View more
06-04-2019
08:19 AM
|
0
|
1
|
1965
|
|
POST
|
I found a way to get to what I want, but i cannot figure out how to get the value from the object? I wand to get the value for the variable DialogHeading from the window object. All my attempts to get the value have failed. This is what I have so far. IFrameworkWindow window = FrameworkApplication.ActiveWindow; var currentTool = window.GetType().GetProperty("DialogHeading"); This should return "Merge" (When the Merget tool is the active Tool), but is just give me back "DialogHeading" again. What am I missing?
... View more
06-03-2019
10:49 AM
|
0
|
1
|
1965
|
|
POST
|
Is this possible now to query the editoperation? I need to detect which operation is running
... View more
06-03-2019
08:20 AM
|
0
|
0
|
1965
|
|
POST
|
I just created a Web map with these layers I then call up a MapView page pointing to this Web Map and loader like the code I have above. It give me duplicates for the the operational layers when I loop through the layers on the load of the map. This happens when I Pop the MapView off and then back on, which in turn forces the map on the mapview to reload as it is a new page. It happens about every other time and ONLY on my mobile devices.
... View more
05-22-2019
10:28 AM
|
0
|
0
|
402
|
|
POST
|
That would be so helpful. You will need to load a mapview/loader/map page again and again, looking at the operational layers on load. Mine seems to repeat them quite frequently as I mentioned above
... View more
05-22-2019
09:44 AM
|
0
|
1
|
2353
|
|
POST
|
Could I get an email in which to send the URL of the WebMap to. I will need to grant you access and give you a username and password to our portal that holds the web map. I cannot make the whole thing public.
... View more
05-22-2019
09:28 AM
|
0
|
3
|
2353
|
|
POST
|
I am loading a MapView page with a loader, but on mobile when looping through the operational layers I am getting duplicates. When I return to the page or come into the mapview for the first time.
MapView {
map: MapFieldSelectedLoader.item
.
.
.
Component.onCompleted: {
MapFieldSelectedLoader.sourceComponent = MapFieldSelected;
}
.
.
.
.
Loader {
id: MapFieldSelectedLoader
}
Component {
id: MapFieldSelected
Map {
id: mapFieldSelected
autoFetchLegendInfos: true
initUrl: app.webMapUrl
//This returns the duplicate layer when looping through on mobile
onLoadStatusChanged:
{
if (loadStatus === Enums.LoadStatusLoaded)
{
operationalLayers.forEach(function(lyr) {
popupMessageBox.messageText += "\n Loaded lyr.name = " + lyr.name
});
}
}
}
}
... View more
05-21-2019
02:22 PM
|
0
|
5
|
2353
|
|
POST
|
Is there a way to requery the operationallayers of a map? It is almost like on mobile, it takes longer to load and somehow a duplicate is getting returned in my above loop. Again, this only happens on the mobile and it happens using the AppStudio mobile app.
... View more
05-21-2019
02:12 PM
|
0
|
0
|
2353
|
|
POST
|
I can not figure out why this is happening. It is happening in both IOS and Android and i am running the latest version of Runtime. I have added 4 layers to my webmap and on mobile (cell) only, it sometimes is repeating the layers when I loop through the operational layers of a given map.
... View more
05-21-2019
02:04 PM
|
0
|
0
|
2353
|
|
POST
|
Has anyone ever had an issue with the operational layers repeating a layer when looping through them? It seems to happen on mobile devices and on appstudio mobile but not on desktop app. I am simply wanting to loop though the layers, but I seem to have a repeating layer. map.operationalLayers.forEach(function(value) {
popupMessageBox.messageText += "\nvalue.name = " + value.name
}); In this above example with 4 layers, the first time I run it, it gives me this result layer.name = 1 layer.name = 2 layer.name = 3 layer.name = 4
Then I run it again and I get this result. It seems to happen intermittently and only on my mobile device layer.name = 1 layer.name = 2 layer.name = 2 layer.name = 4 Wondering if anyone has seen this type of behavior?
... View more
05-15-2019
01:41 PM
|
0
|
10
|
2925
|
|
POST
|
I have figured out how to get this to work in IOS and had to comment out the lines of code XFormSketchCanvas.qml that specifically reference IOS. Here are the 3 places I had to comment out the scaleFactor code to get the sketch to work on IOS. Is this known? XFormSketchCanvas.qml - 286 if (Qt.platform.os === "osx" || Qt.platform.os === "ios") {
//scaleFactor = Screen.devicePixelRatio;
}
XFormSketchCanvas.qml - 370
if (Qt.platform.os === "osx" || Qt.platform.os === "ios") { //scaleFactor = Screen.devicePixelRatio; console.warn("Using Qt canvas bug workaround scaleFactor:", scaleFactor); } XFormSketchCanvas.qml - 390 if (Qt.platform.os === "osx" || Qt.platform.os === "ios") { //scaleFactor = Screen.devicePixelRatio; console.warn("Using Qt canvas bug workaround scaleFactor:", scaleFactor); }
... View more
04-30-2019
11:02 AM
|
0
|
1
|
1262
|
|
POST
|
This also appears to happen for the camera and the photo selection option. If you select a map/photo/take picture, in the new XFormSketchCapture it appears to only take the upper left of the picture/image. Is this a know bug for this code?
... View more
04-30-2019
09:08 AM
|
0
|
0
|
1262
|
|
POST
|
I am using the latest code for survey123 available in AppStudio. I am wondering if anyone has seen an issue on IOS with the new Map Capture/Attachement functionality. This doesn't happen in appstudio desktop, but does happen on the AppStudio App and the native IOS app that i build. Here is what happens 1. I fist have a survey with attachements, I then add attachment 2. I then select the Map Icon and center my map where I want the snap shot to be taken, then click the check box 3. After i click the check box, the snap shot appears to only take a snap shot of the top left quadrant of the map? This is only on IOS as i have confirmed the behavior does not happen on android, Notice the pin below is in the lower right corner of the snap shot and not in the center? 4. The resulting attachment then looks the same Is this a know bug to Survey 123, or is this only a bug in the code available in AppStudio
... View more
04-30-2019
07:05 AM
|
0
|
3
|
1322
|
|
POST
|
I have downloaded the beta 3.3 from the Google Play store and it now fails using AppStudio too, not just the sideloaded version. This did not do this on the 3.2 version of appstudio that was loaded on this device, it only failed previously on the sideloaded version. What steps should we take now to get this to work. I need to get my PROD build out into the field ASAP, and need the old cloud build as this doesn't seem to work any longer. Please advise me on the next steps you want me to take. Matt
... View more
04-18-2019
07:23 AM
|
0
|
0
|
894
|
|
POST
|
Is there anyway I could get the old Cloud Factory to build my code? I have a local build for the IOS, so that doesn't seem to be a problem, but use your cloud for the Android. All of my code which was originally created by ESRI also references Runtime 100.1. Will all of that need to be updated. I will need some advice on the best way to proceed here. The code works from old App Studio player on computer and phones (ios/android), but fails on Android sideloaded. I will try the Beta 3.3 today, but don't know what that gets me? I still need the build. Please advise
... View more
04-18-2019
04:40 AM
|
0
|
0
|
894
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-23-2018 06:49 AM | |
| 1 | 08-02-2023 08:28 AM | |
| 1 | 01-03-2020 10:54 AM | |
| 1 | 11-30-2017 06:41 AM | |
| 1 | 08-20-2018 01:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-27-2026
08:03 AM
|