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

Pass JSP Form values to ForomProcessor

Manoj_Dokku4
11-Garnet

Pass JSP Form values to ForomProcessor

I have a requirement where, when a form from JSP is submitted from the JSP page in windchill, all the values from the form has to be retrieved and populated in the FormProcessor.

 

@HelesicPetr 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Manoj_Dokku4 

All inputs from page are usually populated to a NmCommandBean object. 

 

From the commandBean object you can retrieved all html inputs from the wizard or page.

eddited>

that's not correct,

Only wrapers can be retrieved from nmCommandBean 

<%@ taglib prefix="wrap" uri="http://www.ptc.com/windchill/taglib/wrappers" %>

HelesicPetr_1-1666003570917.png

So you should use wrapers as a input in your JSP page

<wrap:textBox name="filterName" id="filterName" value="" size="50" maxlength="100"
onkeypress="filterNumberenter(event)"/>

You just need to find where your inputs are stored.

HelesicPetr_2-1666003614866.png

input types>

text, radio, checked, textArea, comboBox  and so on.

You can retrieve the types by functions get....

HashMap textArea nmCommandBean.getTextArea()
HashMap checked = nmCommandBean.getChecked(); // if something is not checked it is not included in this Hash
HashMap radio = nmCommandBean.getRadio();
HashMap texts = nmCommandBean.getText();
HashMap comboboxes = nmCommandBean.getComboBox();

 

you need to process all your inputs from this HashMaps each input should own identification from JSP. 

 

hope this can help

 

PetrH

 

View solution in original post

1 REPLY 1

Hi @Manoj_Dokku4 

All inputs from page are usually populated to a NmCommandBean object. 

 

From the commandBean object you can retrieved all html inputs from the wizard or page.

eddited>

that's not correct,

Only wrapers can be retrieved from nmCommandBean 

<%@ taglib prefix="wrap" uri="http://www.ptc.com/windchill/taglib/wrappers" %>

HelesicPetr_1-1666003570917.png

So you should use wrapers as a input in your JSP page

<wrap:textBox name="filterName" id="filterName" value="" size="50" maxlength="100"
onkeypress="filterNumberenter(event)"/>

You just need to find where your inputs are stored.

HelesicPetr_2-1666003614866.png

input types>

text, radio, checked, textArea, comboBox  and so on.

You can retrieve the types by functions get....

HashMap textArea nmCommandBean.getTextArea()
HashMap checked = nmCommandBean.getChecked(); // if something is not checked it is not included in this Hash
HashMap radio = nmCommandBean.getRadio();
HashMap texts = nmCommandBean.getText();
HashMap comboboxes = nmCommandBean.getComboBox();

 

you need to process all your inputs from this HashMaps each input should own identification from JSP. 

 

hope this can help

 

PetrH

 

Top Tags