UI Action for assigned to me button

Bharath Reddy M
Tera Contributor

Hello

Kindly help me to do this task

scenario : I have a forum button on my table ,named as assigned to me . Whenever users clicks the button the current loggedin user should get populated on the field called "assigned to" and "assignment group" should be cleared if it is filled in.

find_real_file.png

1 ACCEPTED SOLUTION

You already have Assign to me UI action configured for task table, you can leverage that, you just need to add one line that I have shared above.

Please go to Left navigation > type UI actions > Search by name "Assign to me"

This will give you rough idea how to create this button for your table

Best Regards
Aman Kumar

View solution in original post

7 REPLIES 7

Awesome!

Glad that it worked out for you 🙂

Best Regards
Aman Kumar

Hey,

 

I don't want to set the value for assignment group,here i want to clear the assignment group whenever assigned to field is populated with loggedin user.

How can i do that

 

Vaishnavi Lathk
Mega Sage
Mega Sage

Hi,

Use setDisplayValue() to set the value in assigned to field in UI action.

Try this,


current.assignment_group = ' ';
current.assigned_to.setDisplayValue(gs.getUserName());//here i set the logged in username to assigned_to reference field
current.update();
action.setRedirectURL(current);

 

Please Mark Correct/Helpful answer if it help you in any way.

Thanks and Regards,

Vaishnavi Lathkar