D3Automation / angular2-c360-sample

2 stars 0 forks source link

Unit of Measure Hoses Individual Parameters #4

Open AppliedDesignIntelligence opened 7 years ago

AppliedDesignIntelligence commented 7 years ago

I'm still having issues showing specific properties. I believe it has to do with how the properties are retrieved. For example, I cannot get the parameter Height to show up. In the UI it is automatically shown as Height(in) as seen in this image:

image

The height parameter will not show up using Height or Height(in). There is also a parameter called LadderPrice that is shown on the form as Ladder. That parameter shows up., so it looks like the (in) unit of measure that is automatically added to the form in C360 is the problem.......but only when showing individual parameters. When "show all" is used, everything shows up fine. I've tried renaming parameters etc, and this is the only thing it could be.

bencameron commented 7 years ago

The property names in the angular2-c360 library are created using the names that are returned from the C360 viewer, with any invalid characters (characters not allowed by javascript when naming properties) being replaced. The invalid characters are, by default, replaced with empty strings, but this behavior can be modified using a custom model adapter.

My guess is that your property would be named "Heightin", since the spaces and parentheses would be removed. However, the best way to see which properties are available would be to inspect the client-side model within Chrome dev tools.

Do you see a "Heightin" property when you look at the client-side model?

bencameron commented 7 years ago

@AppliedDesignIntelligence -- did you ever have any luck with this? If the documentation above resolved your problem, I'd like to go ahead and close this issue.