Developers Tessitura Community
  • Topical Tessitura Community Groups
  • More
Developers Tessitura Community
Community Docs Wiki Custom Contributions in TNEW
  • Discussions
  • Community Docs Wiki
  • Events
  • Files
  • Members
  • Mentions
  • Tags
  • More
  • Cancel
  • New
Developers Tessitura Community requires membership for participation - click to join
  • +Community Developer Documentation
  • Browser-based custom screen auth token API authentication
  • Deploying network ticket printers via Windows Group Policy
  • +HTML Templates
  • +Impresario Database
  • List Filters in Custom Reports
  • New to Using Tessitura in a Software Developer Role? Start here!
  • SSRS Report Open Detail Window Links
  • The Secret Life of HTML Templates
  • -TNEW Customizations
    • Custom Contributions in TNEW
    • TNEW Custom Form Stored Procedures
    • Transitioning TNEW Customizations to V16
  • Understanding Contributions endpoints in the REST Services

You are currently reviewing an older revision of this page.

  • History View current version

Custom Contributions in TNEW

TNEW's cart displays contribution objects based on configuration in LTR_TNEW_CONTRIB_TYPE. If you add a contribution to the cart using the API (either CLR procedures or via shared session), the contribution will not appear in the cart unless you tell TNEW which ID to use from the LTR_TNEW_CONTRIB_TYPE table.

TNEW stores this reference in order notes in the format c<contrib_type_id>_<contribution_ref_no>; .

Example implementation code is provided for a precart SQL procedure:

  DEC LARE @CC_cont_ref_no_LV int;
  -- After the contribution is added, populate the order notes field by appending the contrib type ID token.
  SEL ECT TOP 1 @CC_cont_ref_no_LV = ref_no
    FROM dbo.T_WEB_CONTRIBUTION
    WHERE order_no = @order_no
    ORDER BY ref_no DESC;

  UPD ATE dbo.T_WEB_ORDER
    SET notes = ISNULL(notes, '') + 'c' + CAST(@CC_ContribType AS varchar) + '_' + CAST(@CC_cont_ref_no_LV AS varchar) + '; '
    WHERE order_no = @order_no;