on 09-04-2008 6:28 PM
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?
Hi Patsy -
To clear the value of the Estimated Value field, try the following construct:
doc.setEstimatedValue(TypeFactory.createPrice());
Regards,
Rob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.