Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Scripting    userInput
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Apprentice
Picture of Jason Hawkins
Posted
trying this... to grab the contacts related to a specific project name entered by the user - it is returning NO DATA however... can any help...

myProjectName := element valueForKeyPath:'userInput.thisProjectName'.

qual1 := BDQualifier qualifierWhereValueOfKey:'projects.name' isEqualTo:myProjectName.

qualifiers := {qual1}.

andQual := (((BDAndQualifier alloc) initWithQualifierArray:qualifiers) autorelease).

objectContext objectsForEntityNamed:'Contact' matchingQualifier:andQual.


KND Web Consultants
 
Posts: 11 | Location: Australia | Registered: November 22, 2006Reply With QuoteEdit or Delete MessageReport This Post
AJ
Marketcircle Team
Picture of AJ
Posted Hide Post
Can you please try this with 3.2. We fixed a bug that may resolve this.

You also don't need the 'qualifiers' and 'andQual' since you only have one qualifier. Skip andQual and use qual1 directly.

objectContext objectsForEntityNamed:'Contact' matchingQualifier:qual1.

Come to think of it, that may be the issue.
 
Posts: 893 | Location: Toronto | Registered: May 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Scripting    userInput

© Copyright 2006 Marketcircle Inc. All rights reserved.