cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Estimated Value of a Project

Former Member
0 Kudos

Hi,

Am trying to set the value of Estimated value of a project to null or 0 in scripting. But am having issues with the syntax. I tried the following:

doc.setEstimatedValue(null);

This is showing a blank project module page when the script gets executed. The args of setEstimatedValue is expecting :

setEstimatedValue(com.frictionless.api.common.types.PriceIfc estimatedValue)

And am not sure what the syntax needs to be.

If i try the same with status of the project it works fine.

I had tried:

doc.setStatus(null);

and this is expecting:

setStatus(com.frictionless.api.common.types.LocalizedObjectReferenceIfc value)

Also, would anyone know where can i find good documentation or guides for scripting in frictionless?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Patsy -

To clear the value of the Estimated Value field, try the following construct:

doc.setEstimatedValue(TypeFactory.createPrice());

Regards,

Rob

Former Member
0 Kudos

Thank You Rob, that was perfect!

Answers (0)