I'm having an issue with one of my controllers where when placing the controller into the canvas, the parameters change and the event refuses to fire.
Here is an image of the method and it's parameters
It contains an array Orders of the parameters (OrderNumber, LineNumber, SecondIN, Checked, OrderCompany and Description).
When initially trying to assign fields to these parameters in my event, I believe that everything looks correct
However after the fields have been filled out and I hit save, the Array Name changes to ",Orders" and all of the parameters have been changed to "Orders"
On trying to fire the event on the page, I get no response
Controller Parameters Change After Saving and event doesn't fire
-
- Posts: 15
- Joined: February 18th, 2022, 1:29 pm
- Contact:
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Controller Parameters Change After Saving and event doesn't fire
Resaving events is a known issue. We have task #9899 for this. This post will be updated when the task is completed.
word count: 22
-
- Posts: 15
- Joined: February 18th, 2022, 1:29 pm
- Contact:
Re: Controller Parameters Change After Saving and event doesn't fire
Hi Steve, can I ask if there's a workaround for this, what do I need to delete/remake?
word count: 19
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Controller Parameters Change After Saving and event doesn't fire
Yes for now you will need to delete and remake
word count: 10
-
- Posts: 15
- Joined: February 18th, 2022, 1:29 pm
- Contact:
Re: Controller Parameters Change After Saving and event doesn't fire
Hi Steve, Thank you for your responses in this thread, while remaking my controller, I believe that I have found the reason why the event wouldn't fire in the first place.
In my controllers parameters I had included two specific fields: SDDCTO and SDKCOO. When I first brought up this issue, I had both of these fields set to visibility:false as they are pieces of information that I want to collect, but I do not want the end user to see.
Unfortunately, when either of these fields is invisible, my SendCancellation event would refuse to fire.
Only when both fields were completely visible was I able to get the expected response.
Is there a workaround present that would allow me to hide those fields while still being able to use my controller?
word count: 280
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Controller Parameters Change After Saving and event doesn't fire
You are looking for the property RenderIfNotVisible. If you set that to true the field will still be added to the page but it will have display:none;
word count: 28
-
- Posts: 572
- Joined: August 26th, 2021, 9:56 am
- Contact:
Re: Controller Parameters Change After Saving and event doesn't fire
ControllerParameters have been fixed in an earlier revision.
word count: 8