Dileep Kumar
Newbie
Karma: 0
Posts: 26
|
 |
« on: January 24, 2012, 05:06:07 am » |
|
Hai all
1) I am trying to set a value to my attribute of child object from parent class file . but it is throwing a message that null pointer exception i want to know the reason for this .
The below code is throwing an error
1) MboSetRemote mboset=getMboSet("$req","tablename","id=:id"); 2) mboRemote mbo=mboset.getMbo(); 3) mbo.setValue("name","mynewvalue",11L);
But the below code is working fine .. i want the difference between two
1) MboSetRemote mboset=getMboSet("$req","tablename","id=:id"); 2) mboRemote mbo=mboset.add(); // why we need to call add() method ? 3) mbo.setValue("name","mynewvalue",11L);
|