cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

C14814925: When a form is submitted two times, the JS will not be considered for the second submit.

agao
15-Moonstone

C14814925: When a form is submitted two times, the JS will not be considered for the second submit.

C14814925: When a form is submitted two times, the JS will not be considered for the second submit.

 

 

Details: WebEx recording(Watch from 05:45): http://internal.ptc.com/salesforce/attachments/cases/14/81/49/25/14814925-20190322_0303-1.mp4

Lenovo customized a menu UpLoad CMLoadsheet

[06:01] - On UpLoad CMLoadSheet page, when OK is clicked, the form will be submitted for the first time to the processor, and Warning Message pop widow comes up saying "Have aarning message, do you want to continue?"

[06:05] - Then select Yes, the form is submitted for a second time to the processor

However, the page keeps loading without stop.

[06:09] - But in fact, the action completed. It is just that the page keeps loading without returning.

Note that this customization worked well in 10.2 but not in 11.1 M020. The problem is that the JS is not executed for the second sumit.

 

Steps to reproduce:

  1. Put custom-action.xml and custom-actionModels.xml in /opt/ptc/Windchill_11.1/Windchill/codebase/config/actions/
  2. Deploy netmarkets/jsp/com/demo/TestProcessDemo.jsp and netmarkets/jsp/com/demo/TestProcessDemoStep.jsp
  3. Put TestProcessorDemo.java in src/com/lenovo/plm/elois/custommodel/spi and run: ant -f bin/tools.xml class -Dclass.includes=com/lenovo/plm/elois/custommodel/spi/TestProcessorDemo.java
  4. Restart Windchill
  5. Create a document and go to its Details page. Expand Actions and click on the first empty menu.
  6. 1.png
  7. Click on Precheck
  8. 2.png
  9. Click on Ok on the Waring Message pop window
  10. 3.png
  11. Result: the window keeps loading without returning
  12. 4.png

 

If you did not click Precheck and directly click on Ok on the UpLoad CMLLoadSheet page, it works.

The problem is with a second submit to the processor which does not execute the js for the second submit. It worked in 10.2 but not in 11.1.

 

Any idea?

0 REPLIES 0
Announcements

Top Tags