Skip to main content
1-Visitor
Jun 27, 2014 8:08 AM UTC
Question

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

1-Visitor
Jun 27, 2014 8:37 AM UTC

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

Translate
23-Emerald II
Jul 1, 2014 4:40 PM UTC

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

Translate
1-Visitor
Jul 3, 2014 9:43 AM UTC

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?

Translate
2-Explorer
Jul 10, 2014 9:52 PM UTC

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];

}

}

Translate
1-Visitor
Jul 14, 2014 11:16 AM UTC

Thanks, Teresa! I'll try it later.

Translate
12-Amethyst
Jul 16, 2014 6:29 AM UTC

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

Translate