cancel
Showing results for 
Search instead for 
Did you mean: 

Check for existance

former_member540174
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can check if(wdContext.nodeManager().size())>0