Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How to get text field values in formProcessor?

$
0
0

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

   }

}


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>