Skip To Content

Merge Events widget

Available with Location Referencing license.

The Merge Events widget allows you to merge two or more linear events that are part of the same line event feature class in a Linear Referencing System (LRS). You can use the widget to manage pipeline data with ArcGIS Pipeline Referencing and roadways data with ArcGIS Roads and Highways. Merging events reduces fragmentation in an LRS. You can combine multiple adjoining events into a single event. All the input events retire as of the date of the resultant merged event.

By default, the merged event acquires its starting measure value from the first input event in the direction of digitization and its ending measure value from the last input event in the direction of digitization. You can edit the attributes of the merged layer before committing the merge.

Examples for Pipeline Referencing

Use this widget to support app design requirements such as the following:

  • You want to merge two or more adjacent pipeline line events.
  • You need to consolidate changes to attributes, such as operating pressure or inspection range in line events along pipelines.
  • Your organization needs users to be able to merge line events while working in the field.

Examples for Roads and Highways

Use this widget to support app design requirements such as the following:

  • You want to merge two or more adjacent roadway line events.
  • You need to consolidate changes to attributes, such as speed limit or parking status in line events along roadways.
  • Your organization needs users to be able to merge line events while working in the field.

Usage notes

This widget requires connection to a Map widget. To merge events, the Map widget must be connected to a web map data source published with an LRS with the Linear Referencing and Version Management capabilities enabled.

To create an LRS and publish a feature service with the Linear Referencing and Version Management capabilities enabled, follow the steps in ArcGIS Pro documentation:

When you include this widget in an app, a panel provides users with the following options for merging events:

  • Event—Choose the event layer that contains the events to be merged.
  • Events to Merge—Use the selection to choose the events to merge.
  • From Measure—Starting measure value of the merged events. The merged event acquires the lowest value from the FromMeasure fields of the input events.
  • To Measure—Ending measure value of the merged events. The merged event acquires the highest value from the ToMeasure fields of the input events.
  • Start Date—Provide a starting date for the merged event.
  • End Date—Optionally, specify the ending date of the merged event.
  • Merged Event Attributes—The attributes of the merged event.

Settings

The Merge Events widget includes the following settings:

  • Select Map—Select a Map widget.
  • Load Layers—Load layers from the web maps in the connected Map widget. To load layers, the Map widget must be connected to a web map with LRS layers.
  • Clear Layers—Remove all loaded layers from the widget.
  • Layer Configuration—Click a layer to open the Layer Configuration panel.
    • Label—Provide a meaningful label for the layer. This label appears in the widget panel at run time.
    • Use Field Alias—Turn on this setting to display field aliases at run time. An alias, or display name, is an alternative name for a field. It is usually a more user-friendly description of the content of the field. Unlike true field names, aliases do not have to adhere to the limitations of the database, so they can contain special characters such as spaces.
    • Configure Fields—Choose which attribute fields from the layer to include in the widget panel at run time. You can define whether each attribute field is editable at run time by clicking the Editable or Not editable buttons.
  • Default Settings—Configure the default setting for Event. This is the event layer that you want to appear in the widget panel when it first loads.
  • Display Settings—You can choose to hide the Event setting from the widget panel. If you choose to hide the setting here, the setting you configure under Default Settings is unchangeable by the user at run time.

Merge events

Complete the following steps to merge events.

  1. Open Experience Builder. Sign in to an ArcGIS Enterprise portal.
    Note:

    Your ArcGIS Enterprise account must be licensed for Location Referencing.

  2. Add a Map widget. Connect it to a web map with LRS data published with the Linear Referencing and Version Management capabilities enabled.
  3. Add a Merge Events widget. Connect it to the Map widget, then load LRS layers from the map widget.
  4. Publish the app.
  5. Launch the app. If prompted, sign in to your ArcGIS Enterprise portal.
  6. Zoom to the location where you want to merge events.
  7. Open the Merge Events widget.
  8. Use the default line event layer or click the Event drop-down arrow and choose another line event layer.
  9. Select events on the map by clicking and moving the pointer to draw a bounding box.
    Note:

    You can select events using the Map widget selection tools. You can turn on the Select tool in the Map widget's settings.

    Selected events appear in the Events to Merge table with their Object IDs listed. Events appear in order of calibration on the route.

  10. The From Measure and To Measure values of the merged event are populated from the input events and are not editable.

    The merged event acquires its starting measure value from the first input event in the direction of digitization and its ending measure value from the last input event in the direction of digitization.

  11. Specify the starting date of the event by doing one of the following:
    • Leave the default start date in the Start Date text box.
    • Provide a start date in the Start Date box.
    • Click the calendar button Calendar and choose a starting date.
    • Check the Use route start date check box.
      Note:

      This option is unavailable for events from a line network.

  12. Optionally, specify the ending date for the line event by doing one of the following:
    • Provide an end date in the End Date text box.
    • Click the calendar button Calendar and choose an end date.
    • Check the Use route end date check box.
    Note:

    The following notes apply to end dates:

    • The Use route end date check box is unavailable for events from a line network.
    • If you do not provide an end date, the event continues forever into the future.
    • To merge events, the events must be active and must have a null To Date value. You cannot merge retired events.

  13. Optionally, edit the attributes in the merged event attribute table.
  14. Click Merge.

    A confirmation message appears at the top of the widget panel when you merge events.

Interaction options

This widget supports data actions, which you can turn on in the Action tab of widgets' settings.

You can use data actions in the Table widget to launch the Merge Events widget and populate values. To do this, you must add a Merge Events widget and Table widget to your app and turn on the Merge Events data action in the Table widget's settings.

The Table widget's Merge Events data action can populate the Event, Events to Merge, From Measure, To Measure, and Merged Event Attributes parameters in the Merge Events widget.

To use the data action at run time, complete the following steps:

  1. Select two or more records in the Table widget.
  2. Click the Action button at the top of the Table widget panel.
  3. Click Merge Events.
    Merge Events data action
  4. The Events to Merge, From Measure, To Measure, and Merge Event Attributes parameters populate based on the events you selected in the table.
    Note:

    You can change any values after they are populated by the data action. If you do, the Merge Events widget still validates all entries.