Grant User Role by dynamic name evaluation

Grant User Role by dynamic name evaluation

  
We're building a user security app.  We're using the Roles and User tables so we can take advantage of the Check, Grant and Revoke functions.  We would like to be able to dynamically determine which Check/Grant/Revoke function to at run-time without having to pre-define and ugly switch/lookup action.  Is there any way to do this?  perhaps with some kind of string evaluation like
Grant{AccountHolder}Role(UserId:)
where AccountHolder would be the 'name' value in the Roles table 
err,

It's a bit hard to read what your actual question is.

anyways, the answer is No for now.

do you mean at design time you don't code the function/method/action to invoke/call but invoke via dynamic call like in C# and Java you could use Reflection or C++ you can load DLL at runtime or execute from a command line etc. This technique I have used in dynamic menu systems and automated testing but most dislike for security reasons. Sorry I can't say if Outsystems supports dynamic calling of user actions, cant find any mention of it except for https://www.roelvanlisdonk.nl/?p=3545  which i got from http://www.outsystems.com/forums/discussion/10139/dynamically-calling-an-action/


Is it not easier to just manipulate the User_Role table directly? (create-update-delete)
This allows you to do exactly what you need.
Tim Timperman wrote:
Is it not easier to just manipulate the User_Role table directly? (create-update-delete)
This allows you to do exactly what you need.
 Thanks Tim.  Yeah I was thinking that shortly after I wrote this request.  I'm new to OS and was leery of poking my greasy paws into system tables directly.