I am creating a custom action for a report based on Time period selected in first step, using this to create report for specific time in second step. I have created multiple JSPs based on time selection to show user. But I can see all steps in wizard steps are not getting dynamically hidden.
Custom Actions :
<jca:wizard title="Product Transaction Status History" buttonList="DefaultWizardButtons">
<jca:wizardStep action="Dashboard_Step0" type="object" label="Select Time Period" />
<jca:wizardStep action="Dashboard_Step1" type="object" label="Transaction Status" />
<jca:wizardStep action="Dashboard_Step2" type="object" label="Transaction Status for Last 2 Months" />
</jca:wizard>
Solved! Go to Solution.
Hi @HO_10736653
Check an example in a catalog
http://serveradress/Windchill/app/#netmarkets/jsp/componentCatalog/wizardComponent.jsp
You just need to use a js script to insert and remove the step. methods are in a main.js
here is an example
function addDynamicTable() {
var showExludeTable = document.getElementById('selectTableline').checked;
if (showExludeTable) {
insertStep('PublishTaskWizStep');
} else {
removeStep('PublishTaskWizStep');
}
}
also you need to define the action in a xml file with attributes
<action name="PublishTaskWizStep" id="PublishTaskWizStep" preloadWizardPage="false" required="false" hidden="true">
PetrH
Hi @HO_10736653
Check an example in a catalog
http://serveradress/Windchill/app/#netmarkets/jsp/componentCatalog/wizardComponent.jsp
You just need to use a js script to insert and remove the step. methods are in a main.js
here is an example
function addDynamicTable() {
var showExludeTable = document.getElementById('selectTableline').checked;
if (showExludeTable) {
insertStep('PublishTaskWizStep');
} else {
removeStep('PublishTaskWizStep');
}
}
also you need to define the action in a xml file with attributes
<action name="PublishTaskWizStep" id="PublishTaskWizStep" preloadWizardPage="false" required="false" hidden="true">
PetrH