on 02-01-2007 7:29 AM
Hi
How can we convert value attribute to model attribute.
I m using this code..
1. Getting value attribute (ABCD) in a string mat
String mat= wdContext.currentContextElement().getABCD();
2.Then setting the model attribute( MOD) like this
wdContext.nodeAa().nodeBB().currentR_Element().setMOD(mat);
But this code is showing null pointer exception and values r not set.
1 more thing.-> Can v use model attributes in DropDown.. If yes plz tell..
Thanks
Puneet
Hi Puneet,
you can set a model attribute as you want but you must first instanciate it with:
R_Element() rr = new R_Element();
Regards.
Gianluca Barile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
have u bound a modal object to model node before using it?
i think - not
so try:
// in wdDoinit
wdContext.nodeAa().bind(new Aa());
// setting parameters
wdContext.currentR_Element().modelObject().setMOD(mat);
// executing model
wdContext.currentR_Element().modelObject().execute();
wdContext.nodeAa().invalidate()
Of course u can use model attributes in DD - like non model.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.