on 07-10-2008 2:04 PM
Hi Experts,
Can anyone tell me the default parameter for the input field. I need the default parameter for the parameter mapping for on action. I wrote the below code in the ModifyView, if i gave some other paramter it is showing following error.
"com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Parameter input not found "
IWDInputField inputField = (IWDInputField)view.getElement("InputField1");
inputField.mappingOfOnEnter().addParameter("input",1);
inputField.mappingOfOnEnter().addSourceMapping("input","element");
What is the default parameter for the input field ?..
Regards,
Suresh.T
Hi,
You are trying to do parameter mapping for the onEnter action for the inputfield. The error here means that you need to have a parameter for the onActionEnter method for the inputfield of some type. I dont know for what purpose you are doing this. So add a parameter with exact name as "input" of relevant type as per your requirement.
Hope this helps.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
actually i am using a Tree by Nesting Table column in my application where i map a default parameter path to my parameter in the onLoadChildren action. I have a requirement in the same UI like , there is an input field in one of the columns of the table. when i enter some number in the input field and press enter , some child elements are created as many as the input given. Hence i need to do some parameter mapping.Please give me a possible solution.
if(firstTime)
{
IWDTreeByNestingTableColumn tableColumn = (IWDTreeByNestingTableColumn)view.getElement("MasterColumn1");
tableColumn.mappingOfOnLoadChildren().addSourceMapping("path","element");
IWDInputField inputField = (IWDInputField)view.getElement("InputField1");
inputField.mappingOfOnEnter().addParameter("input",1);
inputField.mappingOfOnEnter().addSourceMapping("input","element");
}
I think you need only nodeElement
if(firstTime)
{
IWDTreeByNestingTableColumn tableColumn = (IWDTreeByNestingTableColumn)view.getElement("MasterColumn1");
tableColumn.mappingOfOnLoadChildren().addSourceMapping("path","element");
IWDInputField inputField = (IWDInputField)view.getElement("InputField1");
inputField.mappingOfOnEnter().addSourceMapping("nodeElement","element");
}
nikhil
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.