NetTalk Central

Author Topic: tag record to be filtered  (Read 4502 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
tag record to be filtered
« on: April 30, 2009, 12:08:24 PM »
is there a way to have records in a browse tagged or marked and apply filter to only show the tagged items ?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: tag record to be filtered
« Reply #1 on: May 01, 2009, 12:31:14 AM »
sure.
There's an example called "tagging" you might want to look at.

Cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: tag record to be filtered
« Reply #2 on: May 01, 2009, 04:22:04 AM »
ok using the tag example i was able to get it to work(almost), my only problem now is deleting the session entry after i close down my filtered browse because i do not want to keep this information so where do i put my delete code?

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: tag record to be filtered
« Reply #3 on: May 01, 2009, 04:46:01 AM »
I would add the code at Procedure Setup, that is before and not after.
Then you begin your browse always untaged.
Hope it helps.
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: tag record to be filtered
« Reply #4 on: May 01, 2009, 06:46:03 AM »
Hi Olu,

One option you have is to delete the entries as soon as they are used. In your case that's probably not helpful, as you may want to use them for more than 1 browse view.

On the other hand there is no guarenteed way of knowing the user has finished with the browse. They may just close their browser, or type something into the address bar - in the web there's no guarenteed "close'.

So the best place is in the DeleteSession method (webServer). When a session is automatically deleted then this related session information can be deleted as well.

Of course you can add the code to a button or something as well if you want the user to be able to "clear the tagging" anytime they like.


Cheers
Bruce


olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: tag record to be filtered
« Reply #5 on: May 01, 2009, 07:52:45 AM »
just a quick question where do i change the clour of hyperlink strings?