Binny Mathew | Hi Asher,
getElementData always needs 2 input arguments first being the Element name for which you are trying the get the value and second the attribute (eg:- "value")
But i am not sure what are you trying to achieve here. What is "savedCount"? Is it some session variable you are setting somewhere and using it here?
Below is an example of the usage of getElementData
public String doDecision(String name, DecisionElementData decisionData) throws ElementException { ... String strMenuName= data.getElementHistory().get(data.getElementHistory().size()-2); // gets you the previous name of the element String strCallerOption = data.getElementData(strMenuName,"value"); // Gets you the bvalue returned by the element (strMenuName) ... }
Note: There are other possible values to the second parameter of getElementData i am not sure of that probabaly you can check that out in the doc.
Also setElementData can be done only locally to that Element i.e you can not set value for a form element in a decision class.
Hope i have answered to the context meant by you.
Binny |
| Please sign in to flag this as inappropriate. |