NetTalk Central

Author Topic: Browse start at current record - how?  (Read 5380 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Browse start at current record - how?
« on: July 24, 2014, 03:41:02 AM »
Hi

Probably quite easy ....

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Browse start at current record - how?
« Reply #1 on: July 24, 2014, 10:11:24 PM »
more context required...

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Browse start at current record - how?
« Reply #2 on: July 25, 2014, 01:07:22 AM »
Table with dates, starting on the current date.

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Browse start at current record - how?
« Reply #3 on: December 20, 2014, 05:04:48 AM »
Anyone??

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Browse start at current record - how?
« Reply #4 on: December 23, 2014, 06:13:24 AM »
Niels, if i can understand what you are trying to do

Maybe a filter with a LocDate = TODAY() where LocDate refers to the field in the table containing the date you want to set


Then add two buttons with -1 +1 day to move forward and backwards in specific date using this embed in the button

    LocDate = p_web.GSV('LocDate') + 1
    p_web.SSV('LocDate',LocDate)

Let me know if this helps. I can try to make an example later and make it more clear =D

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Browse start at current record - how?
« Reply #5 on: December 23, 2014, 07:06:52 AM »
Niels, here it is one example using the books dictionary and data files shipped with Bruce examples.

Inside, look at the procedures
FormBrowseInvoice
BrowseInvoice

The FormBrowseInvoice has some additional stuff i made in my apps to go to specific dates including a calendar, Day Forward button and day back button.

In the procedure BrowseInvoice check the filter i set.

Is a quick example, but i hope this gives you some ideas to your project.

The example was made using Clarion 9.1.11396 and NetTalk version 8.32

PD. Any ideas how to make this better are welcome so please don't be shy ;D

[attachment deleted by admin]

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Browse start at current record - how?
« Reply #6 on: December 24, 2014, 03:52:36 AM »
Thansk for the feedbacks !!

I'll try to re-phrase.
It's infact very simple. I have a table with dates. Starting 1.1.2000, ending 1.1.2020. One record for each day. When i'm entering my browse I just want today() as the selected/highlighted record.
I'm using it as a calendar showing all kinds of stuff. And no, i can't use the Hotdate alternative ;-)

Regards and a very happy Christmas
Niels


urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Browse start at current record - how?
« Reply #7 on: December 24, 2014, 04:12:32 AM »
Ah Neils different story =D

Let me see if i can get you a solution