Can we make the Attachment section required?
Hello,
When creating a problem report, can we make the Attachment section required?

Hello,
When creating a problem report, can we make the Attachment section required?

Hi
The article is for ECR, and I have made the necessary modifications according to your requirements. Please refer to the following steps
Step1:
Unzip the file, place it in your IDE environment (such as Eclipse),be sure to place the Java files in this directory <Windchill_Home>\src\formProcessor, and then compile it. Place the compiled file in this directory Windchill\codebase\formProcessor\SecondaryAttachment.class


If you do not have a IDE, you can also compile it with Windchill, run this commad in Windchill Shell, be sure to place the Java files in this directory <Windchill_Home>\src\formProcessor, a file with the same name will be generated, but the format is class, Place the compiled file in this directory Windchill\codebase\formProcessor\SecondaryAttachment.class
ant -f bin/tools.xml class -Dclass.includes=SecondaryAttachment.java -Dclass.source=%WT_HOME%\src\formProcessor

Step2:
Find Windchill\codebase\config\actions\Custom-actions.xml and add below content
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE listofactions SYSTEM "actions.dtd">
<listofactions>
<objecttype name="attachments" class="wt.content.ContentHolder" resourceBundle="com.ptc.windchill.enterprise.attachments.attachmentsResource">
<action name="attachments_step" uicomponent="ATTACHMENTS" ajax="row" postloadJS="preAttachmentsStep" preloadWizardPage="false">
<command class="formProcessor.SecondaryAttachment" windowType="wizard_step"/>
<includeFilter name="hideFromDTI" />
<includeFilter name="EDACompareFilter" />
</action>
</objecttype>
</listofactions>

Step3:
Restart Windchill and test

Good luck for you
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.