Hi everyone,
I’m trying to create an output set element called ‘Research tab notes’ with a parameter of note type. I set up the parameter just fine and was able to construct my output set, but am running into an error with the element. When I try to execute the output set I get an error stating “the multi-part identifier c.id could not be bound.” Here’s how I’ve created the element:
Data select: !.notes
Data from: (select a.notes, b.customer_no from tx_cust_notes_ext a JOIN tx_cust_notes b ON a.cust_notes_no=b.cust_notes_no JOIN tr_cust_notes_type c ON b.note_type=c.id)
Data where: c.id in (<<p4>>)
(c.id being my element parameter of note type, pulled from tr_cust_notes_type)
Does anyone have any suggestions?
Cheers,Kathleen
Oh happy days! Thanks for your help, everyone!
Cheers,
Kathleen
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Ryan CrepsSent: Wednesday, 4 April 2012 4:50 AMTo: Kathleen SmithSubject: RE: [Tessitura Technical Forum] research notes and output set builder
You can make a simplified version of this query using the function FS_GET_CUST_NOTES(). It takes care of the concatenation of the note columns in TX_CUST_NOTES_EXT (sic).
(select a.customer_no, a.note_type, notes = dbo.FS_GET_CUST_NOTES(a.cust_notes_no) from vxs_cust_notes a)
+Ryan Creps
+Tessitura Network