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?
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.
Process Button on Form
-
- Posts: 1463
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Process Button on Form
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
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
Re: Process Button on Form
Unfortunately putting the BO in the process input didnt work, am I missing something?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
As for the positioning of the button, thank you very much, I will take a look at that.
Best Regards
-
- Posts: 1463
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Process Button on Form
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.
Also you may need to refresh the form after you've run a process on it.
Re: Process Button on Form
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 madePointsWell 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 want it to still make the change after saving the form.
Any ideas why this is happening? Are there any workarounds for this behavior?
-
- Posts: 1463
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Process Button on Form
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.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?
https://www.awareim.com/dokuwiki/doku.p ... to_refresh