Method Community

 

Custom SQL

Last post 12-02-2011 10:31 AM by SMcGovern. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-01-2011 6:11 PM

    Custom SQL

    This is my first post.  I have been working on some customization and have hit a issue that I can seem to get around.  The powers that be want the Mobile Activity Screen to show the Customer's Terms next to the Customer on this screen.  Below is the Custom SQL statement that is stock with the Mobile Screen with the exception that I added the location for TERMS in the statement.

    (CASE WHEN [Entity] IS NULL THEN '' ELSE '<b>' + [Entity] +TERMS + '</b><br/>' END) + ISNULL(ActivityType, '') + ', ' + ISNULL(ActivityStatus, '')   + ', ' + ISNULL(ActivityPriority, '')

    Any help would be greatly appreciated!!!

     

    Thanks,

     

    Shawn McGovern

     

  • 12-02-2011 10:07 AM In reply to

    Re: Custom SQL

    Answer

    Shawn,

    The way you have it setup is correct you may just want to replace Terms with ISNULL(Terms, '').

    The step you are probably missing is adding Terms to the Activity table as a linked field from Entity

    -Michael

    Michael Melo
    Product Manager
    Method Integration Inc.
    Website: http://www.method.me
    LinkedIn: http://www.linkedin.com/in/MichaelMelo
  • 12-02-2011 10:31 AM In reply to

    Re: Custom SQL

    Thanks Michael.  That did the trick!

Page 1 of 1 (3 items)