on 01-21-2008 1:32 PM
Hi sdns ,
can anyone expalin the following statement.
wdContext.currentMainElement().modelObject()).get_details();
What is modelobject();
What is the use of this methid?
where it helps?
How is it handfull?
Thanks & Regards,
Lokesh@EDS.
hi,
with model nodes your nodes are mapped onto java classes. So the attribute values of the node, for example attributeA ,will be resolved by calling the corresponding getter in the underlying class. (getAttributeA())
With the modelObject() method, u get a reference to the underlying class. so u can call other methods on it.
So wdContext.currentMainElement().modelObject().get_details() means that the node Main is mapped to a class that has a method get_details().
kind regards.
Edited by: Joren Crauwels on Jan 21, 2008 2:40 PM
Edited by: Joren Crauwels on Jan 21, 2008 2:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.