Grundlegende Anpassung > User Interface Customization > Configurable Links > Configurable Link Tables > Customizing the History of ModuleVariantInformationLink Using a Custom Delegate
Customizing the History of ModuleVariantInformationLink Using a Custom Delegate
This section describes how to use a custom delegate to record the history information for ModuleVariantInformationLink.
Steps to Customize the Delegate
1. Create a custom delegate, such as CustomDefaultModuleVariantInfoHistoryDelegate.java by copying content codes from DefaultModuleVariantInfoHistoryDelegate to CustomDefaultModuleVariantInfoHistoryDelegate at OptionsCore/src/com/ptc/windchill/option/delegate/.
2. Build the OptionsCore module.
3. Update the OptionsCore.service.properties.xconf file and replace DefaultModuleVariantInfoHistoryDelegate with CustomDefaultModuleVariantInfoHistoryDelegate.
<!-- ModuleVariantInfoHistoryDelegate -->
<Service context="default" name="com.ptc.windchill.option.delegate.ModuleVariantInfoHistoryDelegate">
Option cardinality="singleton"
requestor="null"
selector="null"
serviceClass="com.ptc.windchill.option.delegate. CustomDefaultModuleVariantInfoHistoryDelegate"/>
</Service>
4. Open a terminal and run the following command:
Xconfmanager -pF
5. Restart the Method Server.
6. Verify whether the custom delegate works as per the customization. For example, for the CustomDefaultModuleVariantInfoHistoryDelegate, to verify that the ModuleVariantLinkInfo history is not getting saved after creating ModuleVariantLinkInfo, run the following command to create the ModuleVariantLink:
windchill com.ptc.windchill.option.utilities.ModuleVariantInfoLinkGenerator -u=wcadmin -p=wcadmin -container=GENERIC_COMPUTER -prefix=NEW_MVL_ -parts=1000 -variantSpecs=100 -revisions=1
Check ModuleVariantinfoLink and ModuleVariantinfoLinkHistory table in the database. The ModuleVariantinfoLink table row count gets updated but the ModuleVariantinfoLinkHistory table row count remains unchanged.
War dies hilfreich?