Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Is it Possible to have Proposed Solution Attribute on Change notice as well, which is present on OOTB Change Request ?

vuchekar
10-Marble

Is it Possible to have Proposed Solution Attribute on Change notice as well, which is present on OOTB Change Request ?

Hi All,

Is it possible to have Proposed Solution Attribute on Change Notice as well. Out of the Box it present on Change Request only .

Any Idea ?

Regards,

Vivek

11 REPLIES 11

I also have the Same issue and Trying to get the Proposed Solution on Change Task Wizard  =using Alias Attribute

 

Fadel
22-Sapphire II
(To:vuchekar)

I'm not sure what is the requirement here ,do you mean to add Modeled Richt text attribute to the type change notice ?

There is no way to add Rich Text as IBA from UI you need to define a hard type  see PTC Windchill Help Center 

Fede
Fadel
22-Sapphire II
(To:vuchekar)

try this create a string IBA on CN call it Myproposedsolution

 

on below example its called MyProposedSplution (there is a typo, ADHD side effect)

Fadel_1-1735760221223.png

 

in below file  Windchill\codebase\com\ptc\core\components\components.dataUtilities.properties.xconf add line 

<Option serviceClass="com.ptc.core.components.factory.dataUtilities.RichTextDataUtility" requestor="java.lang.Object" selector="MyProposedSplution" cardinality="singleton"/>

 

Fadel_2-1735760397921.png

 

 

 

run a xconfmnager -p + restart 

in the CN layouts add the DU edit attribute properties

Fadel_3-1735760516900.png

 

 

 

 

On the CN you should be able to see the attribute on create and info Page : 

Fadel_4-1735760737997.png

 

 

 

Note the above is not really supported by TS and it won't work on edit

Fadel_6-1735760901438.png

 

 

 

 

 

Fede

I followed the same steps.

vijayaRath_0-1735796352101.png

Like this , on Change Notice page I'm getting the value for Attribute "??UnAssigned" . Still not able to resolve .

 

Fadel
22-Sapphire II
(To:vijayaRath)

I have the same : 

Fadel_0-1735805063581.png

 

This all we can do OOTB , as workaoround you can remove that attribute from the Edit layout .

 

 

 

Fede

Hi,

You may create that attribute in the CN.

I did a quick check.

See the screen shots - create screen and edit screen of my CN.

 

I think it should be possible on the CT also, I just checked in CN.

What is the process you followed?

 

Cheers

Hari

Fadel
22-Sapphire II
(To:Hari_Vara)

you have added a string attribute , we need a Rich text one like this one : 

Fadel_0-1736174314338.png

 

Fede

Hi,

Oh ok, I missed the initial expectation of rich text.

I think its a product gap. Iam not sure if this can e brought in by customization. 

The custo experts can answer here.

 

CHeers

Hari

Hi Hari,

 

What steps you followed for String Type Attribute?

 

Regards,

Vijaya

I used the OOTB attribute  - proposedSoluitons (type: String)  & created a new IBA - proposed Solutions-ud of Type String 

I am able to get the value of the IBA propagated from CR to CN , when Propogate changes checkbox is selected .

 

vijayaRath_0-1736517376205.png

 

However , the Implementation Plan on CN create wizard doesn't get the value from CN . I am on Windchill 12.0 

vijayaRath_1-1736518002254.png

 

Not used any DU .

Fadel
22-Sapphire II
(To:vijayaRath)

Hello All, 

As said in the begining the suppsrted way to achieve this is by using Hard Types as OOTB IBAs do not handle RichText Datatype .

 

Here is an example to achieve this:

  1. Create a folder <Windchill_home>src/com/acme
  2. Copy below to file  AcmeModeledCN2.java 
    package com.acme;
    
    import wt.change2.WTChangeOrder2;
    import wt.util.WTException;
    import com.ptc.windchill.annotations.metadata.*;
    import com.ptc.core.richtext.HTMLText;
    
    @GenAsPersistable(superClass=WTChangeOrder2.class,
       properties={
       @GeneratedProperty(name="proposedSolutions", 
          type=HTMLText.class,
          javaDoc="Rich Text Porposed Solution")
      	  	  
    	  },
     
      iconProperties=@IconProperties(standardIcon="netmarkets/images/stopCN.png", 
        openIcon="netmarkets/images/stopCN.ong")
    )
    public class AcmeModeledCN2 extends _AcmeModeledCN2 {
    
       static final long serialVersionUID = 1;
    
       public static AcmeModeledCN2 newAcmeModeledCN2()
                throws WTException {
          AcmeModeledCN2 instance = new AcmeModeledCN2();
          instance.initialize();
          return instance;
       }
    }​

    3.  Change Directory to <Windchill_home>src/com/acme  in Windchill shell run below commands :

 

 

tools class -Dclass.includes=com\acme\*
tools -Dgen.input=com.acme.* sql_script

 

 

4. Change directory to folder <Windchill_home>db/sql3/com/acme run below commands (depending on db setting scripts may be in <Windchill_home>db/sql/com/acme r ) :

5. run SQL scripts in sqlplus : 

 

create_AcmeModeledCN2_Table.sql
create_AcmeModeledCN2_Index.sql

 

 

in file  <Windchill_home>\codebase\wt\change2\change2.properyties add below line

 

wt.services/svc/default/wt.change2.ConcreteAssociationDelegate/wt.change2.WTChangeActivity2/com.acme.AcmeModeledCN2/1=wt.change2.IncludedIn2Delegate/singleton

 

 

Restart server 

 

Follow below Video to adjust Layouts for the new Type 

 

BranchPP.mp4
Video Player is loading.
Current Time 0:00
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time 0:00
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
      (view in My Videos)

       

      Fede
      Announcements
      Top Tags