Allow usage of List actions on Client Actions that are functions
586
Views
5
Comments
On our RadarOn our Radar
Frontend (App Interfaces)

We can use the List actions (ListAppend, ListAny, etc) inside Server Actions that are marked as a function.

However, this isn't the case for Client Actions. Right now we have, for example, to implement or own ListAppend in Javascript, if we want to keep the action as a function.

With this idea implemented, the List actions would have the same behavior for Server and Client actions, allowing us to use them inside Client Actions marked as functions.


Screenshot1.png
Changed the category to
Frontend
and the status to
On our RadarOn our radar

Hi David,

Great idea, indeed that would be better. I'll add this to our radar so we can keep an eye on this idea.

Thanks,
Tiago Simões

UserImage.jpg
Emma Thurlow

I hope this will be supported soon, many times I expect to do simple things like initialize or filter a list inside a function, but need to resort to using JavaScript and JSON deserialization.

Merged this idea with 'Be able to use List system actions in functions' (created on 22 Sep 2023 15:22:27 by Patrícia Glória Ferreira)

We have several cases where the use of a List client action from the System module would be helpful since would avoid the need to do a for each.

When trying to use such function service center we see the error below in True Change:

Invalid Client Function

'ListAny' action cannot be used in the 'IsAllow' action. Only actions that are functions can be used in other functions. Change the 'Function' property of the 'IsAllow' action to 'No'.


Would it be possible to set such client actions as functions?