Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script checkbox value and then derive issue

7 REPLIES 7
Reply
Message 1 of 8
katelyndwilson
411 Views, 7 Replies

Script checkbox value and then derive issue

I have a checkbox that is populated via  a script (if a picklist says one of two values it writes the checkbox to true otherwise it makes it false).  This checkbox is then derived into another workspace.  I can derive the checkbox if I don't have the script determine the value in the workspace it is derived from.  However, if I do use the script to fill it in, the script errors and returns:

 

java.lang.String cannot be cast to java.lang.Boolean

 

I'm not sure why I am getting this error since I am able to use "item.FIELD_ID = true" and "item.FIELD_ID = false" with no issues if I am not deriving the field.

Tags (1)
7 REPLIES 7
Message 2 of 8
cgong
in reply to: katelyndwilson

Have you gotten a resolution to this? I'd be interested to see what your script looks like. We use scripting quite a bit to see if certain records have specific values. If so, we have check-boxes fill via the script.

Message 3 of 8
bastien.mazeran
in reply to: cgong

Using a single selection linking picklist, I cannot reproduce your issue. If I run my on-demand script, there is no issue with setting the checkbox value to true via a script. Please share script code and linking picklist definition for review.

 

Regards,



Bastien Mazeran

Technical Support Specialist

Message 4 of 8
bastien.mazeran
in reply to: cgong

Hello,

 

Using a single selection linking picklist, I cannot reproduce your issue. If I run my on-demand script, there is no issue with setting the checkbox value to true via a script. Please share script code and linking picklist definition for review.

 

Regards,



Bastien Mazeran

Technical Support Specialist

Message 5 of 8

I finally was able to duplicate the issue after using a derived checkbox field. Is this your configuration?

 

Thank you,



Bastien Mazeran

Technical Support Specialist

Message 6 of 8

Yes, that was my configuration in this scenario.
Message 7 of 8

Yes, that was my configuration in this scenario.

Message 8 of 8

Katelyn,

 

Since you are deriving the checkbox, you have access to the pivot. Why don't you try getting the value directly through the pivot / picklist in your script? In other words, you could do item.LINK_PL.CHECKBOX = item.PIVOT.SOURCE.

 

Thank you,



Bastien Mazeran

Technical Support Specialist

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report