Hi Expert,
I Create a custom Role Center and in this Role Center i create an Action
Hi Expert,
I Create a custom Role Center and in this Role Center i create an Action
Unfortunately, you cannot use variables or methods to control the visibility/enability of actions on Role Center page. If your requirement is essential, you may consider using AccessByPermission on your action property or using personalization or user permissions to see if it meets your requirements.
Regards
this is the problem the triggers does not work in role center page, and that why i use a procedure but also does not work
if you are unable to debug the procedure.. then it could mean that procedure is not returning any value even if you manually return 'true,' it will still be considered false.. so it might not be possible to achieve your goal using a method in Role Center page.
One possible solution was to use a global variable and update its value according to your requirement... but again none of the triggers work on role center page.. so I don't think you can use any variable or method to update the enability of your action.. the only way you can do is by using direct value as true or false..
Regards
I add this action in creation section
for debugging i add an error message but it's not appearing.
and there is no problem in the value of the first record
even if the value of the first record is true the procedure return false
Even after emptying the procedure returns false because the default value is false, you need to make sure that your code is being debugged and double-check the IsActivated value of your first record. By the way, which section of the role center page are you adding this action?
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156