more information about action buttons

Hi all

I want to understand well how the action buttons work. The explanations provided in Essential don’t help me get into a more specific dynamic and before asking for your help, I want to study better.

I ask you to suggest links that may help.

Tnx for your precious attention.

What kind of help are you looking for? Any specific action type?

1 Like

Hi @AleksiAlkio , thanks for replying.

I want to determine values of a function “income” and “expense” based on the button that is pressed.

I’m not a programmer and therefore I’m not familiar with coding. However, if I have understood correctly, in the formula that I have to use to determine the “stock” value, it is possible to insert an “if” condition which reads the choice made on the buttons and chooses to apply a “subtraction” or an “addition” to a value in “stock”.

How can I write this?

1 Like

For me it sounds you are looking for an app formula calculating those values on a form view depending on the dropdown selection instead of action doing something similar. Is my assumption correct?

I’m not sure I understand what you mean.

On your printscreen, the Rifornimento_Form has an Enum button where you select either “Cisterne” or “Veicolo”. Depending on the selection, you would like to calculate a value. Do you want to calculate it when the form view is still open?

1 Like

Thank you for your clarification. The new result will be updated when the form is closed.

Updated where? In the same record? Record in another table?

1 Like

I apologize I am giving incomplete information. The previous answer is valid, but I need to get a “conditional view” on the form while it is still open. That formula you see gives me the result I want, however filling out the form is messy. The operator must “skip” the fields that are not needed. I hope I have given a clearer answer. Thanks for your attention.

So.. you actually want to hide or show columns depending on the dropdown selection. For that purpose you need to use the " Show If" option. For that purpose you can write for example [seleziona ambito]=“Rifornimento cisterne”

1 Like

HI @AleksiAlkio .Thanks for the time you dedicated to me. I’ll get to work on the solution you’re proposing. I will be sure to update you on the outcome of my work. Thanks again!!!

You’re welcome!

1 Like

HI @AleksiAlkio .I’m definitely making a mistake. I’m close to what I want to visualize, but I have a problem on this field. He should be seen if one of the conditions seen in the photo exists. Unfortunately it doesn’t happen. What am I doing wrong?

no field even with this solution. :face_without_mouth:

EUREKA!!!

It worked like this.Thanks for your help @AleksiAlkio .I learned something very useful.

Good to hear you were able to solve it!

1 Like