on 07-28-2006 8:48 AM
Hi
I got class cast exception here
String value = String.valueOf
(((IPrivateMaterialApplicationView.IMaterial_InputElement)(wdContext.nodeMaterial_Input().nodeT_Matno_in().getElementAt(i))).getMatnr());
valueSet.put(value,value);
Thanks & Regards
Ravi Shankar B
Hi
Tyr This
String value = String.valueOf
(((IPrivateMaterialApplicationView.IT_Matno_inElement)(wdContext.nodeT_Matno_in().getElementAt(i))).getMatnr());
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
You are trying to case element from node T_Matno_in (which`s name most probably is IPrivateMaterialApplicationView.IT_Matno_inElement) to node element from node Material_Input (IPrivateMaterialApplicationView.IMaterial_InputElement).
I would suggest you follwoing piece of code:
wdContext.nodeMaterial_Input().nodeT_Matno_in().getT_Matno_inElement(i).getMatnr()
Make sure that "typed access required" property set to true for all nodes.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It should be:
String value = String.valueOf
(((IPrivateMaterialApplicationView.IT_Matno_inElement)(wdContext.nodeMaterial_Input().nodeT_Matno_in().getElementAt(i))).getMatnr());
valueSet.put(value,value);
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ravi,
the cause of this issue is that
wdContext.nodeMaterial_Input().nodeT_Matno_in().getElementAt(i)
does not return an instance of type
IPrivateMaterialApplicationView.IMaterial_InputElement
.
Check what type is returned by this method (in NWDS place your cursor over the method and the return type is displayed) and cast to that type.
Regards
Sebastian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.