activities
latest
false
Wichtig :
Bitte beachten Sie, dass dieser Inhalt teilweise mithilfe von maschineller Übersetzung lokalisiert wurde. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.
UiPath logo, featuring letters U and I in white

Workflow-Aktivitäten

Letzte Aktualisierung 13. März 2026

Ausführen des Do-Blocks bei Änderung der Dropdown-Option

You can configure activities inside the Do block to execute when the dropdown option changes.

Tutorial

So verwenden Sie diese Funktion:

  1. Add the Create Form activity to your workflow.

  2. Inside the Do block, configure the desired activities.

  3. Open the Form Designer from the Create Form activity.

  4. Drag and drop a Drop-down List component.

  5. In the Data tab > Data Source Values section, add your dropdown options.

  6. Scroll down to the Custom Default Value section and expand it.

  7. In the JavaScript subsection, enter the following JavaScript code:

    const updateOnChange = instance.updateOnChange;
    instance.updateOnChange = function(flags, changed) {
        if (flags.modified) {
            instance.emit('dropdownChanged', 'drop');
        }
        return updateOnChange.call(instance, flag, changed);
    }
    const updateOnChange = instance.updateOnChange;
    instance.updateOnChange = function(flags, changed) {
        if (flags.modified) {
            instance.emit('dropdownChanged', 'drop');
        }
        return updateOnChange.call(instance, flag, changed);
    }
    

    Das obige Code-Snippet löst die Ausführung der Aktivitäten aus dem Do- Block aus, wenn sich die Dropdownoption ändert.

  8. Speichern Sie das Formular.

  9. At runtime, when you change the dropdown option, notice the activities in the Do block being executed.

Beispielworkflow

Laden Sie das XAML-Beispielherunter, um den vollständigen Workflow zu überprüfen oder später darauf zurückgreifen zu können

  • Tutorial
  • Beispielworkflow

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben