Page 1 of 1

Expose Controller as JS Function

Posted: April 12th, 2022, 6:40 pm
by JefferyD
I encountered a situation where JS code was being used to manipulate a page, but a specific EP controller had an UpdateElement that would revert those changes. When trying to keep those changes intact after UpdateElement, I was unable to find a good way to pass information from the JS logic to the controller. The current solution ended up as a very roundabout method of storing the values somewhere on the page using JS that could then be passed into the controller when a hidden button is clicked via JS.

Suggestion
A feature to create a JS function with configurable parameters that could allow JS code to call a controller directly. This would be useful to allow more direct control over parameters passed to a controller when trying to call it using JS.

Re: Expose Controller as JS Function

Posted: April 12th, 2022, 7:21 pm
by SumanPrasad
Task 10348 is created.