Alpha Video Training
Results 1 to 3 of 3

Thread: Heads up - e._gridCurrentFilter behavior changed in V12

  1. #1
    "Certified" Alphaholic Lance Gurd's Avatar
    Real Name
    Lance Gurd
    Join Date
    Jun 2005
    Location
    Southampton, UK
    Posts
    1,448

    Default Heads up - e._gridCurrentFilter behavior changed in V12

    I was using e._gridCurrentFilter to get a value(numeric) in a ajax callback as in
    Code:
    args.Add("par_id",convert_type(right( e._gridCurrentFilter,4),"n"))
    this stopped working in V12, because the current filter now has an argument in it rather than a literal value. This makes it better for long term work because I can now use
    Code:
    args.Add("par_id",convert_type(val(e._gridCurrentArguments),"n"))
    which will not matter when the value the filter is based on is more than 4 numbers

  2. #2
    Member
    Real Name
    Sparticuz
    Join Date
    Jun 2009
    Location
    Clearwater, FL
    Posts
    512

    Default Re: Heads up - e._gridCurrentFilter behavior changed in V12

    Don't val(var) and convert_type(var,"N") do the same thing?

    You should be able to just use
    Code:
    args.Add("par_id",val(e._gridCurrentArguments))
    or 
    args.Add("par_id",convert_type(e._gridCurrentArguments,"n"))

  3. #3
    "Certified" Alphaholic Lance Gurd's Avatar
    Real Name
    Lance Gurd
    Join Date
    Jun 2005
    Location
    Southampton, UK
    Posts
    1,448

    Default Re: Heads up - e._gridCurrentFilter behavior changed in V12

    yes thanks Sparticuz, was in such a panic earlier did not think that val() would convert it to a number without using a convert_type()

Similar Threads

  1. Browse read-only and browse restrictions seem to have changed behavior
    By Nick Oldfield in forum Alpha Five Version 10 - Desktop Applications
    Replies: 4
    Last Post: 11-15-2011, 02:02 PM
  2. Browse behavior changed
    By Farren in forum Alpha Five Version 10 - Desktop Applications
    Replies: 16
    Last Post: 10-27-2011, 04:20 AM
  3. Heads up
    By Bill Griffin in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 10-15-2009, 03:30 PM
  4. Query Behavior Changed
    By lcbarker in forum Alpha Five Version 9 - Desktop Applications
    Replies: 1
    Last Post: 03-09-2009, 10:48 PM
  5. ui_get_password behavior changed by recent patch
    By Finian Lennon in forum Alpha Five Version 9 - Desktop Applications
    Replies: 8
    Last Post: 06-22-2008, 10:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •