Process Button on Form

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
edvwruhs
Posts: 20
Joined: Wed Jan 18, 2023 11:18 pm

Process Button on Form

Post by edvwruhs »

Hello Everyone,

I am trying to change a yes/no value with a process via button in a form, the problem is when calling the process the value doesnt change at all. I already checked, the process does find the correct record, but it doesnt change the value.

Any ideas?
This is the process
This is the process
process.PNG (6.71 KiB) Viewed 2247 times

2. Oh and by chance does anyone know why I cant place my button next to my attribute? When I try to drag and drop it, it just replaces the field with the button.
buttonprocess.PNG
buttonprocess.PNG (2.04 KiB) Viewed 2247 times
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Process Button on Form

Post by PointsWell »

You don't need to Find the BO, it is already in context. You just need to set the process input to be the BO name that you're using. https://www.awareim.com/dokuwiki/doku.p ... cess_input

If you want the button to be next to the check box you need to add a new column on the form and place the button in the new column.

https://www.awareim.com/dokuwiki/doku.p ... le_columns
edvwruhs
Posts: 20
Joined: Wed Jan 18, 2023 11:18 pm

Re: Process Button on Form

Post by edvwruhs »

PointsWell wrote: Thu Jun 01, 2023 11:55 am You don't need to Find the BO, it is already in context. You just need to set the process input to be the BO name that you're using. https://www.awareim.com/dokuwiki/doku.p ... cess_input

If you want the button to be next to the check box you need to add a new column on the form and place the button in the new column.

https://www.awareim.com/dokuwiki/doku.p ... le_columns
Unfortunately putting the BO in the process input didnt work, am I missing something?

As for the positioning of the button, thank you very much, I will take a look at that.

Best Regards
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Process Button on Form

Post by PointsWell »

Can you show a screen grab of the panel that shows what the button does please.

Also you may need to refresh the form after you've run a process on it.
edvwruhs
Posts: 20
Joined: Wed Jan 18, 2023 11:18 pm

Re: Process Button on Form

Post by edvwruhs »

PointsWell wrote: Thu Jun 01, 2023 12:09 pm Can you show a screen grab of the panel that shows what the button does please.

Also you may need to refresh the form after you've run a process on it.
I just realized, when I click the button and afterwards close the form the change is made, but when I click the button and then click save then the change is not made :?

I want it to still make the change after saving the form.

Any ideas why this is happening? Are there any workarounds for this behavior?
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Process Button on Form

Post by PointsWell »

edvwruhs wrote: Thu Jun 01, 2023 12:16 pm
I just realized, when I click the button and afterwards close the form the change is made, but when I click the button and then click save then the change is not made :?

I want it to still make the change after saving the form.

Any ideas why this is happening? Are there any workarounds for this behavior?
This is happening because you are making the change in two places, running a process and saving the form. You can get round this by checking the save flag before you run the process if the user has made changes to the form before they press the button and then setting the refresh form after you've run the process.

https://www.awareim.com/dokuwiki/doku.p ... to_refresh
Post Reply