Expose Controller as JS Function

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
JefferyD
Posts: 178
Joined: August 31st, 2021, 11:37 am
Contact:

Expose Controller as JS Function

Unread post 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.
word count: 133

Tags:
SumanPrasad
Posts: 88
Joined: August 26th, 2021, 5:21 pm
Contact:

Re: Expose Controller as JS Function

Unread post by SumanPrasad »

Task 10348 is created.
word count: 4
Post Reply