on 03-06-2008 2:19 PM
How do you check to see if the element exists for a node? I have a node singleton=true cardinality=0..1 selection=0..1
I use this to create it
IPublicManagerMassRosterCust.IManagerElement elem = wdContext.nodeManager().createManagerElement();
How do I check to see if it's there?
Initally I was wanting to overloading the method with two versions public boolean setManager() and public boolean setManager(string userId) but the wizard isn't letting me.
Diane
Edited by: Diane Fuller on Mar 6, 2008 3:20 PM
Hi,
you can use
// Change the nodeName(nodeOrders) to that of yours
if ( wdContext.nodeOrders().isEmpty())
// code here when the node is empty.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can check if(wdContext.nodeManager().size())>0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.