Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 01-15-2008, 08:21 PM   #1 (permalink)
Junior Member

Join Date: Sep 2007
Posts: 11
Rep Power: 0 mobius is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- API/VBA

Stuck trying to create a spouse individual relationship

Hi everyone,

I'm creating an easy data-entry form for our volunteers, and I'm stuck on what is probably a very easy problem to solve (just not for me!)

I'm trying to add a new Spouse individual as a relationship on an existing constituent, but when I create a new CIndividual using constituent.relations.individuals.add I keep getting an error which is missing field 'Relation ID'. I've realised that I must need to create an entry in the Records table to generate this missing ID, but when I create a CRecord it becomes a full constituent not just a relationship.

Is there an easy way to create a relationship that's not a constituent as well? I think I'm missing something pretty basic here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 01-15-2008, 08:43 PM   #2 (permalink)
Junior Member

Join Date: Sep 2007
Posts: 11
Rep Power: 0 mobius is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- API/VBA

Turns out I was missing something basic - I've set oSpouse.Fields(RECORDS_fld_IS_CONSTITUENT) = False


... which seems to work like a charm.


The only problem now is how do I link the addresses together? I can't find anything in the sparse programmers notes

Last edited by mobius; 01-15-2008 at 10:00 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 01-16-2008, 05:00 AM   #3 (permalink)
Likes to customize RE!

DavidZ's Avatar

Join Date: Jul 2006
Location: London, UK
Posts: 335
Rep Power: 3 DavidZ is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- API/VBA

Good that you solved the problem. However I would not recommend using the methods you have done.

The CIndividual object and constituent.relations collection was discontinued. That is why there is no intellisense when you use them. Instead you should use the CIndividual2 object (and corresponding collections). This is a top level object that should be created as such. I am sure that your method works but it is uncertain when Blackbaud will turn of that functionality (it was made obsolete many versions ago)

David
__________________
David Zeidman
Zeidman Development
http://www.zeidman.info

Check out my RE API blog
http://www.re-decoded.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
re7, relationships


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Cheap Electricity - Renegade motorhomes - Mobile Phones - Credit Cards
All times are GMT -6. The time now is 01:51 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64