I'm using CiviCRM 2.2.0, and last versions of Views2 and Locations. I have enabled User Location too.
I read this:http://drupal.org/node/39641 and it made me very happy because that was just what I was needing; that is, to use CiviCRM's profiles billing address/location information in order to list users and their locations in Views. My site collects the user's location in the user's drupal page, via a CiviCRM profile.
So I started working. I created the CiviCRM profile, containing the following fields for users registration:
First Name
Last Name
City <---IMPORTANT
Street Address
State <---IMPORTANT
Country <---IMPORTANT
Postal Code
NOTE1: these fields were set as 'Public User Pages and Listings'.
NOTE2: When creating CiviCRM's Profile fields, the options did not contain any field marked as Location-related, I simply used those from Contact's information...
NOTE3: I used "Billing" in the 3rd dropdown because I'm also using profiles to pre-populate contribution pages, so it would be a shame if I have to change that to Home or Primary since I don't want to bother the user with 2 or 3 address forms. Moreover, changing that option doesn't seem to fix anything.
So users start to register in drupal's user registration and to add their location information via that Civicrm Profile form. It all appears well when viewing/editing their corresponding drupal user's page afterwards.
Then I create a View to list Users; I select as fields the following information from Location Module: Location: City, Location: Province, Location: Country. I do this because I have CiviCRM integrated with Views, but in the available CiviCRM fields for Views I can't any CiviCRM Contacts: City or similar.
But when I use Views to display a user's Location fields (those marked as Important above), they appear empty in the finished View. It doesn't seem that the user's location fields have been populated with CiviCRM's Profile fields information. Maybe there is a SYNC process missing in between, I don't know.
I'm sorry if my english is not too good. I post this also in CiviCRM's forums because I can see it also belongs there as much as here.
Thanks in advance!
Alex.
Comments
Comment #1
alextronic commentedOK, as recommended by Lobo, I upgraded to CiviCRM 2.2.8 and the problem went away.
Only the view has an unexpected behavior now, duplicating items and such. Hmm...
A.
Comment #2
alextronic commented