Retreive media information from database [message #431482] |
Tue, 17 November 2009 10:41 |
uducharm
Messages: 2 Registered: November 2009
|
Junior Member |
|
|
Hi,
I would like to have the media information from an item in iStore. In short, I would like to use the inventory_item_id to obtain the urls of the images and related products in iStore. I have found this SQL that give me hints of what I would like but it is not complete:
SELECT d.object_id, e.access_name, f.access_name
FROM ibe_dsp_obj_lgl_ctnt d,
ibe_dsp_context_b e,
jtf_amv_items_b f
WHERE d.item_id = f.item_id
AND d.object_type = 'I'
AND e.context_type_code = 'MEDIA'
AND d.context_id = e.context_id
AND d.object_id IN ( SELECT a.inventory_item_id
FROM ibe_dsp_section_items a,
ibe_dsp_sections_b b,
ibe_dsp_msite_sct_items c
WHERE a.section_item_id = c.section_item_id
AND a.section_id = b.section_id
AND b.section_type_code = 'F'
AND c.mini_site_id = 10022)
The result of this SQL does not give me the URL though. How can I get the url of these files?
|
|
|
|
|
|