Hi All:
I've got a oddball here. I'm attempting to create a contact form which has a checkbox list of SobiPro listings. The general idea is that a user will select checkboxes of all the listings they are interested in, so that additional information can be sent to them.
SobiPro has a data structure that makes it a bit hard to just do a typical databasejoin + concat of other fields. The reason is because all the data is stored in one table like this:
sobipro_field_data
-record 1
--baseData "ListingName"
--fid "1"
--sid "1"
-record 2
--baseData "Listing City"
--fid "2"
--sid "1"
You can see that the sid field is used to relate these two records, to become "one" record later on for output. This is smart way of doing things, but unfortunately I hit a wall when trying to use Fabrik on top of that.
This SQL query works great when I'm using it in PhpMyAdmin. It's a self-join to relate the records using aliases:
I'm hoping to find a way to get the same effect using the databasejoin, or perhaps another alternative. I need to get three pieces of data from this table and display it as a "single" checkbox for the user (listing name, city, and a photo).
Is this going to be possible? Or should I start looking at making a custom fabrik element to handle it?
-Chad
I've got a oddball here. I'm attempting to create a contact form which has a checkbox list of SobiPro listings. The general idea is that a user will select checkboxes of all the listings they are interested in, so that additional information can be sent to them.
SobiPro has a data structure that makes it a bit hard to just do a typical databasejoin + concat of other fields. The reason is because all the data is stored in one table like this:
sobipro_field_data
-record 1
--baseData "ListingName"
--fid "1"
--sid "1"
-record 2
--baseData "Listing City"
--fid "2"
--sid "1"
You can see that the sid field is used to relate these two records, to become "one" record later on for output. This is smart way of doing things, but unfortunately I hit a wall when trying to use Fabrik on top of that.
This SQL query works great when I'm using it in PhpMyAdmin. It's a self-join to relate the records using aliases:
PHP:
SELECT
name.fid as nameFID,
name.baseData as name,
city.baseData as city,
city.fid as cityFID
FROM k7p8q_sobipro_field_data as name left join
k7p8q_sobipro_field_data as city on name.sid = city.sid
WHERE name.fid = 1 AND city.FID = 2
I'm hoping to find a way to get the same effect using the databasejoin, or perhaps another alternative. I need to get three pieces of data from this table and display it as a "single" checkbox for the user (listing name, city, and a photo).
Is this going to be possible? Or should I start looking at making a custom fabrik element to handle it?
-Chad