Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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.
Solved! Go to Solution.
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" %>
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.
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
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" %>
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.
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