NetTalk Central

Author Topic: Start date- browse on a specific date  (Read 3223 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Start date- browse on a specific date
« on: February 23, 2015, 04:55:28 AM »
Hi Bruce

Can you help me to start my date browse on TODAY().
I have a table of dates and want the browse to show a specific date as the first one.
I have attached an example.

Regards Niels

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Start date- browse on a specific date
« Reply #1 on: February 23, 2015, 10:33:59 PM »
Hi Niels,

the solution will depend a bit on when you want to "reset" it back to the default. But in principle the code you want is;

  if p_web.GSV('something') = ''
    if loc:LocatorValue = '' then loc:LocatorValue = today().
    p_web.SSV('something','done')
  end

which goes in the "Start of Browse Filter" embed. (see pic).

cheers
Bruce




[attachment deleted by admin]

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Start date- browse on a specific date
« Reply #2 on: February 24, 2015, 12:42:05 AM »
Thanks!!!