Formulario em botão

Olá amigos!

Desenvolvi meu appsheet para ser útil como agendamento de clientes e pagamento. Coloquei um botão na aba de clientes junto com cada cliente para que ao clicar possa ser registrado o pagamento da cliente através de uma função: "adicionar nova linha em outra tabela (tabela FINANCEIRO)" ele pega os dados já existentes na planilha AGENDA (NOME, PROCEDIMENTO, PROFISSIONAL, HORA) .
Colocarei abaixo uma foto do botão (Behavior)

juniorussenco_0-1677716541116.png

 

Minha necessidade é:

Preciso que ao clicar nesse botão possa escolher apenas entre 3 pontos:
1) Pagamento PIX
2) Cartão
3) Dinheiro

PERGUNTA:

Existe essa possibilidade de fazer isso com o appsheet? Ao clicar no botão aparecer um form para selecionar a opção de pagamento, e após selecionar ele então copiar os dados já existentes na planilha AGENDA onde está marcada a cliente e adicionar em uma nova planilha FINANCEIRO?

Solved Solved
0 5 869
1 ACCEPTED SOLUTION

The INPUT function can be finicky (and is a beta feature).

If you deem it worthwhile, you could try making the Valor column a Ref type that references another table comprising the (short) list of values, PIX and CARTÃO. I have actions using INPUT for Ref columns that work.

Otherwise, consider simply making two distinct actions for users to select--one  action that populates Valor with PIX and one that populates Valor with CARTÃO.

View solution in original post

5 REPLIES 5


@juniorussenco wrote:

Ao clicar no botão aparecer um form para selecionar a opção de pagamento


Consider experimenting with the INPUT function.

Vamos imaginar a seguinte cena:

Tabela 1:

NOMEPREÇODATA
João100,0002/03/2023

Tabela 2:

NOMEPREÇODATAVALOR
    

 

Eu adiciono um botão (behavior) no appsheet com a função:
Data: add a new row to another table using values from this row

Nome = Nome
Preço = Preço
Data = Data
Valor = XXXXX

Onde está escrito XXXXX gostaria de atribuir uma opção de escolha, PIX ou CARTÃO, para então o botão (behavior) possa colocar essa escolha na nova tabela.

Baseado nesta cena, como poderia atribuir o input ?

Try:

  • Make the Valor column an Enum type and define its values as PIX and CARTÃO.
  • Use an expression like the following for the Valor column in the action.
INPUT("valor_input", "")

Infelizmente ele adiciona o campo como vazio.

The INPUT function can be finicky (and is a beta feature).

If you deem it worthwhile, you could try making the Valor column a Ref type that references another table comprising the (short) list of values, PIX and CARTÃO. I have actions using INPUT for Ref columns that work.

Otherwise, consider simply making two distinct actions for users to select--one  action that populates Valor with PIX and one that populates Valor with CARTÃO.

Top Labels in this Space