Skip to main content
2-Explorer
March 11, 2014
Question

Create Wizard not closing when complete in Windchill 10.1

  • March 11, 2014
  • 1 reply
  • 2610 views

I have a create wizard with 2 steps in it that I brought over from my Windchill 9.1 installation into my Windchill 10.1 installation. The wizard was created using JSP with JCA tags. The wizard itself works just fine to create my object, but the wizard window will not close upon completion. I'm calling the ootb CreateObjectFormProcessor in my action. I think I'm including the appropriate JSP fragments in my wizard JSPs (beginWizard.jspf, includeWizBean.jspf, end.jspf). The wizard comes up, I enter my data and click finish. A new object gets created, but the wizard doesn't disappear and the folder view doesn't get refreshed. Is there something I'm missing? My object type is extended from Managed, not Document.

1 reply

12-Amethyst
March 12, 2014

HI Theresa,

Is there any error related to javascript in methodserver log.

Try different browser with multiple user if possible.

I believe in your processor you are calling proper super classes methid also.

It may happen because setResultNext method is not executing properly.

Thanks,

Kaushik

tstacy2-ExplorerAuthor
2-Explorer
March 12, 2014

There are no errors in any logs. I am using Internet Explorer, I also tried it with Mozilla FireFox and had the same issue. I don't have a custom processor, I'm using the ootb CreateObjectFormProcessor in my action definition.

<action name="createManaged" ajax="component">

<command url="com/myCompany/jsp/managed/createManaged.jsp" class="com.ptc.core.components.forms.CreateObjectFormProcessor"

method="execute" windowType="popup" />

<includeFilter name="showNewActionPreValidation" />

</action>

<action name="createAttributesWizStep" afterVK="setAttributesWizStep" id="setAttributesWizStep" preloadWizardPage="false"

required="true" resourceBundle="com.myCompany.managed.managedResource">

<command windowType="wizard_step" method="execute" url="com/boeing/jsp/busObj/createGmdManagedDetails.jsp"/>

</action>

Do I need to write my own processor instead of using the one provided by PTC?

12-Amethyst
March 13, 2014

Hi Theresa,

Usually for custom wizard we wrote our own custom form processor.

Enable ALL logger for the class "CreateObjectFormProcessor " and reproduce the step to check whether there is any exception or not.

Usually if there is no exception thrown wizard should close automatically after clicking "FINISH"

<action name="createAttributesWizStep" afterVK="setAttributesWizStep" id="setAttributesWizStep" preloadWizardPage="false"

required="true" resourceBundle="com.myCompany.managed.managedResource">

<command windowType="wizard_step" method="execute" url="com/boeing/jsp/busObj/createGmdManagedDetails.jsp"/>

</action>

From the above line delete method="execute".

Since there is no delegate for this wizard_step this is not required

Thanks,

Kaushik