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

How to get text field values in formProcessor?

AntonBagryanov
Visitor

How to get text field values in formProcessor?

Hi!

Anybody know how to get text field values, that i was inserted in some wizard, in the formProcessor that will handle this wizard?

7 REPLIES 7

Re: How to get text field values in formProcessor?

nmCommandBean.getText().get(...)

Re: How to get text field values in formProcessor?

Anton, did Vasiliy's suggestion get you what you needed?

Re: How to get text field values in formProcessor?

No.

This method return null value. I can't find something about getting text fields values from wizards in customization guide. May be you have any manuals?

Re: How to get text field values in formProcessor?

 this method is returning null value. can u tell me how to get the value given in the text box?

Re: How to get text field values in formProcessor?

If you know the parameter name, you can use something like this:

String myStringValue = nmcommandbean.getTextParameter("myStringParamKey");

Or you can get the parameter map and pull it from there:

HashMap<String,Object> params = ((ObjectBean)list.get(i)).getParameterMap();

Iterator<String> iterator = params.keySet().iterator();

while (iterator. hasNext()) {

String key = (String) iterator.next();

String[] valueArray = (String[])params.get(key);

if (key.contains("myStringParamKey") && !(key.contains("___old"))) {

String myStringValue = valueArray[0];

}

}

Re: How to get text field values in formProcessor?

Thanks, Teresa! I'll try it later.

Re: How to get text field values in formProcessor?

If the jsp is custom jsp then its recommend to use wrapper tag from tag lib to create "TextBox" or If using HTML tag for input, the tag name must be following style for being read at NmCommandBean. “null___[attribute name]___textbox” If you want to use combo box, you must set name like following for NmCommandBean. “null___[attribute name]___combobox”

Regards,

Kauhsik

Polls

Windchill Customers

What browser do you most commonly use? (Chrome, Firefox, Edge Chromium, Internet Explorer 11, Safari, Other)

Announcements
Learn more about how we are using our browser poll here