research notes and output set builder

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

  • Hi Kathleen,

    We created what sounds like the same thing, but used the setup on pages 33-34 of the ever-handy Output Set Builder Cookbook to do the job (http://www.tessituranetwork.com/Search.aspx?q=output%20set%20elements&c=Full+Website).

    Hope it helps you too!  Catherine

    Kathleen Smith wrote:

    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



    --
    View this message online at http://www.tessituranetwork.com/COMMUNITY/forums/p/6983/22013.aspx#22013 or reply to this message

    Catherine Goodwin
    Tessitura Lead
    Team DATA
    Harbourfront Centre
    235 Queens Quay West
    Toronto, Ontario M5J 2G8

    Office: (416) 973-4085
    Fax: (416) 954-0366
    cgoodwin@harbourfrontcentre.com

    www.harbourfrontcentre.com

    heart of toronto's waterfront
    Harbourfront Centre

    A 10-acre public trust powered by the creative cultures of Canada and the world.

    Follow us on Twitter  Friend us on Facebook  Find us on YouTube

    Check out our official blog.

  • Former Member
    Former Member $organization

    Maybe try c.id = <<p4>> instead of c.id in (<<p4>>) 

     

     

    Penny Tabor

    IT Manager

    Midland Center for the Arts

    Midland, MI 48640    

                                         Description: Comptia                                              

     

     

     

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Kathleen Smith
    Sent: Monday, April 02, 2012 10:45 PM
    To: Tabor, Penny
    Subject: [Tessitura Technical Forum] research notes and output set builder

     

    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




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • I rewrote your Data from and Data where slightly:

     

    Data from:  (select a.customer_no, a.note_type, b.notes from tx_cust_notes a JOIN tx_cust_notes_ext b on a.cust_notes_no = b.cust_notes_no)

    Data where: note_type in (<<p4>>)

     

    Make sure you don’t have single row selected.

     

    It should work now.

     

    However, any note that is over 255 characters long will be broken up. I’ll continue to play with this a little longer to see if I can shoehorn a way of clumping notes into one long field (I wrote a report that does this, so that’s what I’m borrowing from).

     

    Lucie

    ______________________________

    Lucie Spieler
    IT Development and Training Manager

    Florida Grand Opera

  • Correction: use view, rather than table—vxs_cust_notes

     

    My note_type parameter is not multi-select, and is passing a number value.

     

    (select a.customer_no, a.note_type, b.notes from vxs_cust_notes a JOIN tx_cust_notes_ext b on a.cust_notes_no = b.cust_notes_no)

     

    ______________________________

    Lucie Spieler
    IT Development and Training Manager

    Editor, Season Program

    FLORIDA GRAND opera
    8390 NW 25th Street
    Miami, FL 33122
    305.854.1643 x. 1521
    Box Office: 800.741.1010
    To Give a Gift: 305.403.3315
    www.FGO.org

    2011-2012
    71ST SEASON LOVE FORBIDDEN, NOT FORGOTTEN
    Luisa Fernanda
    La rondine Rigoletto Roméo et Juliette

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Lucie Spieler
    Sent: Tuesday, April 03, 2012 12:20 PM
    To: Lucie Spieler
    Subject: RE: [Tessitura Technical Forum] research notes and output set builder

     

    I rewrote your Data from and Data where slightly:

     

    Data from:  (select a.customer_no, a.note_type, b.notes from tx_cust_notes a JOIN tx_cust_notes_ext b on a.cust_notes_no = b.cust_notes_no)

    Data where: note_type in (<<p4>>)

     

    Make sure you don’t have single row selected.

     

    It should work now.

     

    However, any note that is over 255 characters long will be broken up. I’ll continue to play with this a little longer to see if I can shoehorn a way of clumping notes into one long field (I wrote a report that does this, so that’s what I’m borrowing from).

     

    Lucie

    ______________________________

    Lucie Spieler
    IT Development and Training Manager

    Florida Grand Opera




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • 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

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Lucie Spieler
    Sent: Tuesday, April 03, 2012 1:55 PM
    To: Ryan Creps
    Subject: RE: [Tessitura Technical Forum] research notes and output set builder

     

    Correction: use view, rather than table—vxs_cust_notes

     

    My note_type parameter is not multi-select, and is passing a number value.

     

    (select a.customer_no, a.note_type, b.notes from vxs_cust_notes a JOIN tx_cust_notes_ext b on a.cust_notes_no = b.cust_notes_no)

     

    ______________________________

    Lucie Spieler
    IT Development and Training Manager

    Editor, Season Program

    FLORIDA GRAND opera
    8390 NW 25th Street
    Miami, FL 33122
    305.854.1643 x. 1521
    Box Office: 800.741.1010
    To Give a Gift: 305.403.3315
    www.FGO.org

    2011-2012
    71ST SEASON LOVE FORBIDDEN, NOT FORGOTTEN
    Luisa Fernanda
    La rondine Rigoletto Roméo et Juliette

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Lucie Spieler
    Sent: Tuesday, April 03, 2012 12:20 PM
    To: Lucie Spieler
    Subject: RE: [Tessitura Technical Forum] research notes and output set builder

     

    I rewrote your Data from and Data where slightly:

     

    Data from:  (select a.customer_no, a.note_type, b.notes from tx_cust_notes a JOIN tx_cust_notes_ext b on a.cust_notes_no = b.cust_notes_no)

    Data where: note_type in (<<p4>>)

     

    Make sure you don’t have single row selected.

     

    It should work now.

     

    However, any note that is over 255 characters long will be broken up. I’ll continue to play with this a little longer to see if I can shoehorn a way of clumping notes into one long field (I wrote a report that does this, so that’s what I’m borrowing from).

     

    Lucie

    ______________________________

    Lucie Spieler
    IT Development and Training Manager

    Florida Grand Opera




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!




    This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • Thanks, Ryan. I’d heard of, but not used, FS_GET_CUST_NOTES(). Works like a charm!

     

    Lucie

  • Oh happy days!  Thanks for your help, everyone! 

     

    Cheers,

    Kathleen

     

    From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Ryan Creps
    Sent: Wednesday, 4 April 2012 4:50 AM
    To: Kathleen Smith
    Subject: 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