cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Attributes using OIR

Newbie

Hiding Attributes using OIR

Hiding Attributes using OIR for WTPart using hidden constraint doesnt work. All attributes are defined at Site level? Is there a way to achieve the same.

8 REPLIES 8

Re: Hiding Attributes using OIR

I don't know about hiding attributes with an OIR. Did you hide them with a constraint in the Type Manager? What constraint and value?

Re: Hiding Attributes using OIR

Hi Mathew,

I tried using the constraint " com.ptc.core.rule.server.impl.GetHiddenConstraint algorithm" in OIR.

Can we hide them using constraint in the Type Manager for Particular Org; wherein all the attributes are created in Site level.

Re: Hiding Attributes using OIR

It looks like the GetHiddenConstraint on the OIR should work but I haven't tested

Re: Hiding Attributes using OIR

Hi. You might want to look at http://communities.ptc.com/message/172231#172231

Re: Hiding Attributes using OIR

Are the attributes you are trying to hide modeled?

If they are attributes you created I think need to add them to you site.xconf to be able to hide them via the OIR.

Ex for our OIR we had to add:

<Property name="wt.change2.WTChangeRequest2" overridable="true"

targetFile="codebase/com/ptc/core/rule/server/delegate/init/RuleConfigurableTypeAttribute.properties" value="name,number,lifeCycle.id,lifeCycle,teamTemplate,teamTemplate.id,folder.id,organization.id,description,needDate,change_proposedChanges,theCategory,theComplexity"/>

Then you can use the OIR to hide them.

<AttrConstraint id="theComplexity" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">

<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>

<Value algorithm="com.ptc.core.rule.server.impl.GetHiddenConstraint"/>

</AttrConstraint>

Re: Hiding Attributes using OIR

Thanks Mathew for your suggestion..Let me try the same and let you know.

Re: Hiding Attributes using OIR

Hi Mathew,

I got the following error ( as below image) in the create part UI after performing the steps.

In the site.xconf the following had been added

<Property name="wt.part.WTPart" overridable="true" targetFile="codebase/com/ptc/core/rule/server/delegate/init/RuleConfigurableTypeAttribute.properties"

value="number,name,lifeCycle,lifeCycle.id,teamTemplate,teamTemplate.id,folder.id,organization.id,COMPONENT_CATEGORY,Customer,Description,Manufacturer 1,Manufacturer Part No 1,PROJECT_NUMBER,ROHS Compliance,Project Name"

" Need to hide ROHS Compliance "

In theOIR the following had been added

<AttrConstraint id="ROHS Compliance" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetHiddenConstraint"/>
</AttrConstraint>

Kindly let me know the above procedure is correct.Picture1.jpg

Re: Hiding Attributes using OIR

Hello Uthayan Sir,

How r u ?

i need your help to solve this issue.

it is possible to rehost the Windchill 8.0M040 from "testplm.ttrpune.com" to "tatatoyoplm.tachogroup.com"

Thanks,

Vivek Uchekar

9850879590