NetTalk Central

Author Topic: Hot Dates example web12 issue with sorting data  (Read 2686 times)

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Hot Dates example web12 issue with sorting data
« on: October 06, 2012, 06:58:13 AM »
Hi Bruce,

Looking through the hotdates example and modifying the HorizontalWeekPlanner procedure, I wanted to sort the users by name on the left hand side. I found the Order setting on the template tab and selected the USE:Name field. The template genereated the following code but it did not sort the data:

  open(View:User2)
  View:User2{prop:order} = p_web.CleanFilter(View:User2,USE:Name)
  View:User2{prop:filter} = p_web.CleanFilter(View:User2,loc:filter)
  ! Start of "PopulateData Insert"
  ! [Priority 5000]
  ! End of "PopulateData Insert"
  set(View:User2)

At that embed point I added the following line just after the ![Prioority 5000] line above and it seems to sort fine.

  View:User2{prop:order} = 'USE:Name'

Might there be an issue with the p_web.CleanFilter function?

I couldn't make the filter work there either but I think I just don't understand that setting well enough to use it effectively.

Regards

Parker

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Hot Dates example web12 issue with sorting data
« Reply #1 on: October 06, 2012, 07:19:50 AM »
Sorry, User Stupidity!!!

If in the Order field on the template I put 'USE:Name' as opposed to USE:Name without the quotes it works as inteded.

Now let me see if I can totaly misunderstand the filter piece  ;D

Cheers

Parker