Konfigurieren von Startaktionen für Indoor Viewer

ArcGIS Enterprise (10.9.1)    |

Verfügbar für ArcGIS-Organisationen mit Lizenz für die Erweiterung "Indoors".

ArcGIS Indoors unterstützt Startaktionen für die Apps von Drittanbietern direkt aus dem Informationsfenster in Indoor Viewer. Aktionen für den App-Start bieten die Möglichkeit zur Einbindung Ihrer Business-Systeme in ArcGIS Indoors.

Eine Startaktion kann zum Öffnen einer Webseite oder nativen mobilen App und automatischen Übergeben von Indoor-Daten an das Zielsystem oder die Ziel-App konfiguriert werden. Auf diese Weise können Benutzer Ereignisse oder Anforderungen für ein ausgewähltes Feature in Viewer senden. Benutzer können über eine Webseite bzw. eine mobile App Informationen zu einem in der Viewer-App ausgewählten Feature anzeigen und automatisch Formularfelder mit aktualisierten Informationen ausfüllen.

Sie können mit den folgenden Methoden Startaktionen für Viewer konfigurieren:

  • Mit dem Bereich Indoors-Startaktionen konfigurieren in ArcGIS Pro. Startaktionen, die in ArcGIS Pro konfiguriert wurden, können später während der App-Konfiguration modifiziert werden.
    Hinweis:

    Änderungen, die im Fenster App konfigurieren vorgenommen werden, wirken sich nur auf die Startaktionen in der Viewer-App aus.

  • Mit dem Fenster App konfigurieren, wenn Sie eine App erstellen oder ändern. Sie können im Konfigurationsfenster in ArcGIS Pro erstellte Startaktionen ändern oder neue Startaktionen erstellen.

Hinweis:

Indoors ermöglicht die Platzierung von Pins für Positionen außerhalb eines Gebäudes, z. B. in Campus-Parkanlagen oder Außenanlagen. Wenn eine Startaktion im Konfigurationsfenster auf Alle Layer angewendet wird, ist die Aktion auch für die hinzugefügten Pins verfügbar.

Konfigurieren von Startaktionen mithilfe des Konfigurationsfensters

Führen Sie während der Konfiguration der Viewer-App die folgenden Schritte aus , um in ArcGIS Pro erstellte Aktionen für den App-Start zu ändern oder neue Aktionen zu erstellen:

  1. Navigieren Sie im Bereich App konfigurieren zum Abschnitt App-Start.
    Hinweis:

    Wenn Sie Startaktionen in ArcGIS Pro konfiguriert haben, werden sie im Abschnitt App-Start angezeigt, und Sie können sie bei Bedarf aktualisieren.

  2. Fügen Sie optional eine neue Aktion hinzu.
    1. Klicken Sie auf Hinzufügen, um eine neue Aktion hinzuzufügen.
    2. Geben Sie in das Textfeld Beschriftung einen Namen für die Aktion ein.
    3. Fügen Sie die URL für die Aktion im Textfeld URL hinzu.
    4. Klicken Sie auf Kategorien und Layer auswählen, und aktivieren Sie das Kontrollkästchen für die Layer und Kategorien, mit denen diese Aktion verknüpft werden soll.

      Standardmäßig sind alle Layer und Unterkategorien ausgewählt.

    5. Klicken Sie auf OK.
    6. Wiederholen Sie für etwaige weitere Aktionen die vorstehenden Schritte.
  3. Klicken Sie neben Startaktionen, die Sie entfernen möchten, auf die Schaltfläche Entfernen Entfernen.
  4. Ordnen Sie die Aktionen bei Bedarf mit den Auf- und Abwärtspfeilen neu an.
  5. Klicken Sie auf Speichern, um Aktualisierungen der App-Vorlage zu speichern.

Wenn Sie im Informationsfenster für Features in den Kategorien und Layern mit konfigurierten Startaktionen auf die Schaltfläche Mehr Mehr klicken, werden Startaktionen in einer Liste angezeigt.

URL syntax

Launch actions are enabled by URLs, and the syntax must follow common URL conventions. For example, special characters in the arguments must be URL encoded, and the argument or value pairs must be separated with standard URL conventions.

For Indoors, values must be contained in curly brackets and match the following syntax:

?arg={Layer.Attribute}&arg={Attribute}

Hinweis:

The layer is optional and, if not included, defaults to the active item in the Indoors app. Many use cases require passing attributes from a different layer in the map or scene. This is supported with the layer operator. Arguments and values are not case sensitive.

See the following samples:

Single value

?Name={KNOWNAS}&building={facility_name}&space={Units.Name}

Multiple values

?center={shape.y},{shape.x}

Value from another feature class

&site={FACILITIES.SITE_ID}

Pass value to a specific field

&field:room={units.name}

Supported argument and value formats

The launch action URL can support either passing a value with a generic argument (field={Units.UNIT_ID}) or pointing the value at a specific field in the Survey123 form (field:room={Units.Name}).

In addition, multiple arguments can be listed together, and you can add text between them.

Example

https://<MySurveyURL>?Name={knownas}&office=office%3A%20{units.NAME}&loc={shape.x},{shape.y},{shape.z}

Integration mit Survey123

Survey123 is included with your Indoors license. In the absence of any other supported work order or ticketing system, launch actions can be configured to use Survey123.

To customize the experience of the action button with Survey123, append valid argument or value pairs onto the URL.

When you create a survey in your ArcGIS Online organization, the URL to share the survey is shortened by default. To enable launch actions, you must use the full URL when appending arguments and pairs. To get the full URL for an existing survey, complete the following:

  1. In Survey123, click the My Surveys tab and click the survey for which you want to create a launch action.
  2. Click the Collaborate tab and click Share survey.
  3. Copy the shortened URL, paste it into a browser, and load the survey.

    The full URL appears in the address bar.

  4. Copy the full URL from the address bar.

You can now append arguments and pairs to this URL as necessary when configuring launch actions.

Example: Base URL for default behavior

https://survey123.arcgis.com/share/surveyformGUID?portalUrl=https://myportal.myorg.com/portal

Example: Custom

This example overrides the default room input with the name field from the Units layer.

https://survey123.arcgis.com/share/surveyformGUID?portalUrl=https://myportal.myorg.com/portal&field:room={Units.NAME}

Example: Launch the Survey123 native app on mobile devices

arcgis-survey123://?itemID=surveyformGUID&portalUrl=https://myportal.myorg.com/portal&field:comments={Units.NAME}

Hinweis:

Be careful when using URLs specific to native mobile apps when configuring launch actions for use in Viewer as these are not supported for desktop users. Using a native app's URL when defining launch actions should be limited to workflows supporting the native Indoors apps or Viewer accessed from a mobile browser.

Integration with third-party systems

The action button can also be configured to open a third-party URL and pass attribute values to it, provided that the third-party system supports URL configurable forms or parameters to drive actions upon launch. In this case, use a URL that calls the system in the Indoors app configuration with an appropriate URL for the integrated system. Some common uses are linking to third-party work order management systems or asset management systems.

Consider the following when working with third-party systems:

  • The field: operator may be different.
  • Web forms that support URL arguments may require additional configuration.
  • Consult the integrated system vendor for details on whether and how this works.

Hinweis:

In some cases, depending on the business system being used, some characters may not be supported, such as the # or + characters.

Integration mit Arbeitsauftragsverwaltungssystemen

Indoors unterstützt das Starten externer Asset- und Arbeitsauftragsverwaltungssysteme. Die Aktionsschaltfläche im Viewer-Informationsfenster kann so konfiguriert werden, dass wahlweise ein Webformular bzw. die native App eines Drittanbieters zum Erfassen neuer Informationen (beispielsweise Ereignisse oder Anforderungen im Zusammenhang mit einem Raum, Asset oder sonstigen Element in Indoors) oder ein vorhandener Arbeitsauftrag in einer separaten App geöffnet wird.

Indoors supports passing work order and Indoors layer attributes as a query string in the URL. The syntax must follow the URL/URI schema for Indoors and work order app system to support launch actions.

The attribute value must be enclosed in curly brackets and match the following syntax:

?arg={Work order Attribute}&arg={Layer.Attribute}

The following are additional syntax samples:

Single value from work order layer

?arg={workorderid}

Multiple values from work order layer

?arg={workorderid}&arg={priority}

Value from work order and Indoors layer

?arg={workorderid}&arg={Layer.Attribute}

ServiceNow URL

The following sample passes the work order number as a parameter and opens an existing work order:

https://<MyServerURL>/nav_to.do?uri=task.do?sysparm_query=number={workorderid}

See more examples of configuring launch actions for ServiceNow.