CodeSmith Community
Your Code. Your Way. Faster!

GetPaged problem

Latest post 02-28-2008 3:19 AM by july.liu. 1 replies.
  • 02-27-2008 4:31 PM

    • MattBell
    • Not Ranked
    • Joined on 02-07-2008
    • Posts 5
    • Points 145

    GetPaged problem

    Hello,

    I'm having a problem with the net tiers that I have to assume has come up before.  We have a database column called import_header_nb which gets turned into ImportHeaderNb by net tiers.  The problem comes when I need to do some sort of filter or sort on the fields.  My control set returns a string such as "([ImportHeaderNb] = 100)"  which I can't pass as a whereClause on the getPaged method, because the columns are not named the same.

    So I guess the question is:  Do I have to write my own column translator?  Or does NetTiers have some method which will handle that for me if I pass in the string in a particular format?

    Thanks for any help

    Matt

     

    • Post Points: 35
  • 02-28-2008 3:19 AM In reply to

    • july.liu
    • Top 500 Contributor
    • Joined on 11-28-2007
    • Posts 14
    • Points 190

    Re: GetPaged problem

    Hello ,MattBell,

    you needn't to write a translator ,when use the where clause or sortExpression , the expression should write the same as your database tables's colum , the nettier generated code have replace the '_' with space . Otherwise you can alse set the netters generation setting not to replace it .

    Nettier Funs . Make programe easier and fatster ! July.Liu
    Filed under:
    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems