Configuring the Sourcing Status Values
You can add additional sourcing status values to the values provided out-of-the-box.
* 
Once a new sourcing status has been added and assigned a numeric value, it must not be modified.
To add customized sourcing status values:
1. Edit the AXLPreferenceRB.rbInfo file located in the /$WT_HOME/src/com/ptc/windchill/suma/axl directory. Define new values, and specify their order by assigning a numeric value to each new sourcing status value.
* 
All the internal values in AXLPreferenceRB.rbInfo must be in lower case.
Once the AXLPreferenceRB.rbInfo file is updated, run the Resourcebuild com.ptc.windchill.suma.axl.AXLPreferenceRB command to propagate the changes to the codebase (restart is required).
* 
You can assign an integer from 1 to 100 as a numeric value for the sourcing status. A higher numeric value indicates a higher ranking. The out-of-the-box sourcing status values are as follows:
do_not_use=20
approved=40
preferred=60
For example, to add a new value, Recommended, add the following lines to the AXLPreferenceRB.rbInfo file:
recommended.value=Recommended recommended.order=50
The new sourcing status value Recommended is now listed between Approved and Preferred.
* 
When you add customized sourcing status values, the value reflected on the OEM part is the sourcing status with the highest numeric value on the supplier part added to the AML/AVL. In the example above, the OEM part has a Recommended sourcing status assigned to it because there are no other supplier parts in the AML/AVL with a numeric value greater than 50.
2. Add an icon for each new value in the service.properties.
Sourcing status icons are configured using the xconfmanager. To change or add a sourcing status icon, add a configuration to the $WT_HOME/site.xconf file, similar to the following:
<Resource targetFile="codebase/service.properties" context="default"
name="AXLPreferenceIcon">
<Option requestor="null"
selector="recommended"
resource="/wtcore/images/com/ptc/windchill/suma/recommended.gif"/>
</Resource>
<Resource targetFile="codebase/service.properties" context="default"
name="AXLPreferenceIcon">
<Option requestor="null"
selector="recommended.ss"
resource="/wtcore/images/com/ptc/windchill/suma/single_source.gif"/>
</Resource>
* 
The recommended.ss option configures the icon used to identify a particular sourcing status when the part is single-sourced.
Once your configurations are added to site.xconf, run xconfmanager -p to propagate the changes to the codebase, then restart the Method server. For more information on the xconfmanager utility, see the Windchill Installation and Configuration Guide.
¿Fue esto útil?