Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

addResource() UI Rule Function

Highlighted
Patrick Danko
Occasional Advisor

addResource() UI Rule Function

Is anyone using the addResource() function in the UI rules?

The description in the docs is a bit vague. What I'm hoping is that I can use this function in a rule against user field to add/remove work against a the resource selected in that field. I've tried using this function, but it seems to just hang and "crash" the form.

Thanks!
2 REPLIES
Joana Garcia
Super Collector

Re: addResource() UI Rule Function

Hi Patrick, 

 

Finally, did you use the addResource function? Could you help me? I'm trying to use it but I have a lot of errors...

Thx a lot.

Kr,

Joana.

Utkarsh_Mishra
Honored Contributor

Re: addResource() UI Rule Function

How you are using it, can you paste it here and also what issue error you are facing.. please sahre the details. Here are some facts about this UI rule.

 

  1. Make sure the Feild "Assigned To" is enabled and have feild level security for the user that is changing it (or editable to all).
  2. The Field whose token you are passing sould NOT be multi select auto complete list

 

Basically what addResource() function is doing is, it will just add the user to "Assigned To" field and then who ever is assigned to "Assigned To" field gets automatically added to "Resource Section". Just make sure the auto complete list validation is single select rather than multi select.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
//Add this to "OnDomLoad" event