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

Re: Sending parameter through from UI to the bean

$
0
0

In your FormProcessor, try getting the parameter like this:

 

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

String[] operations = (String[])params.get("operation");

 

Or if you don't know the exact name of the parameter, like this:

 

String valueString = null;

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

while (iterator. hasNext()) {

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

   if (keyName.contains("myParam___textbox") && !keyName.contains("___old")) {

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

     valueString = valueArray[0];

   }

}

 

Something like that.


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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