Skip to main content
1-Visitor
June 27, 2014
Question

How to get text field values in formProcessor?

  • June 27, 2014
  • 2 replies
  • 4659 views

Hi!

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

2 replies

1-Visitor
June 27, 2014

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

23-Emerald I
July 1, 2014

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

1-Visitor
July 3, 2014

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?

2-Explorer
July 10, 2014

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

}

}

1-Visitor
July 14, 2014

Thanks, Teresa! I'll try it later.

12-Amethyst
July 16, 2014

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