activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.
UiPath logo, featuring letters U and I in white

Atividades do fluxo de trabalho

Última atualização 9 de mar de 2026

Execução do bloco Fazer durante alteração de opção em menu suspenso

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

Tutorial

Para usar este recurso:

  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);
    }
    

    O fragmento de código acima dispara a execução das atividades do bloco Fazer quando a opção da lista suspensa é alterada.

  8. Salve o formulário.

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

Fluxo de trabalho amostral

Para verificar o fluxo de trabalho completo ou ter uma referência futura, baixe o exemplo XAML

  • Tutorial
  • Fluxo de trabalho amostral

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades