It's the only one I have seen ;-) Ben Johansen - http://www.pcforge.com -Authorized WiTango Reseller http://www.pcforge.com/WitangoGoodies.htm -Authorized Alt-N Reseller http://www.pcforge.com/AltN.htm
-----Original Message----- From: Campbell Steve [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 2:11 PM To: [EMAIL PROTECTED] Subject: Re: Witango-Talk: Comparing date on display page Steve That does help! I understand completely..this is what I thought but the untested code you sent makes complete sense as to your explanation..thanks so much Steve Forerunners org Hey..is this the only WiTango mail today? I haven/t seen any come across On 9/15/03 2:58 PM, "Steve Smith" <[EMAIL PROTECTED]> wrote: > I think we're looking at two different ways to skin a cat. I'm > suggesting that for every insert, you include the date. Then when you > want to display the records, you sort them by date and use the method I > suggested earlier. That way you don't have to worry about deleting the > record with the date and being left with a bunch of records without a > date in them. > > Here's a quick bit of untested code: > > <@ASSIGN NAME="r_tempdate" VALUE="" SCOPE="REQUEST"> > <@ROWS> > <@IF EXPR="<@COLUMN 'table.datefield'> = <@VAR > NAME='request$r_tempdate'>"> > don't display anything for the date field here, just display the > other fields outside of the <@IF></@IF> but inside of the > <@ROWS></@ROWS> > <@ELSE> > Display date field <@COLUMN 'table.datefield'> > Reassign variable <@ASSIGN NAME="r_tempdate" VALUE="<@COLUMN > 'table.datefield'>" SCOPE="REQUEST"> > </@IF> > </@ROWS> > > Hope this helps, > > Steve Smith > > Oakbridge Information Solutions > Office: (519) 624-4388 > GTA: (416) 606-3885 > Fax: (519) 624-3353 > Cell: (416) 606-3885 > Email: [EMAIL PROTECTED] > Web: http://www.oakbridge.ca > > > On Monday, September 15, 2003, at 03:13 PM, Campbell Steve wrote: > >> Steve >> >> I really worked with this that you explained and as far as I can >> tell...doing a compare type tag is still probably the best way unless >> I am >> missing the boat on your details below. >> >> >> Steve >> >> >> On 9/13/03 1:42 AM, "Steve Smith" <[EMAIL PROTECTED]> wrote: >> >>> What I do for situations like this is: >>> >>> - Sort the search results by date >>> - Assign a variable (local/request scope) before the <@ROWS> loop >>> begins and make the value empty >>> - Once inside the <@ROWS> loop, check to see if the value of the date >>> for the current record is equal to the variable. If it is, don't >>> display the date. If it isn't, assign the value of the date for the >>> current record to the variable, then display the value of the date. >>> >>> The first time through, the check always fails because the variable is >>> empty. From then on, it only shows if it is changed. >>> >>> Hope this helps, >>> >>> Steve Smith >>> >>> Oakbridge Information Solutions >>> Office: (519) 624-4388 >>> GTA: (416) 606-3885 >>> Fax: (519) 624-3353 >>> Cell: (416) 606-3885 >>> Email: [EMAIL PROTECTED] >>> Web: http://www.oakbridge.ca >>> >>> On Friday, September 12, 2003, at 11:56 PM, Campbell Steve wrote: >>> >>>> Hey everyone >>>> >>>> I have a simple detail page that I am using to show daily news. >>>> �Nothing special and/or nothing really out of the ordinary. �What I >>>> need is this. >>>> >>>> I need to display these daily news posts on my news page. �The only >>>> thing is that I don�t want to display my date on every post. �What I >>>> mean by this is the following. >>>> >>>> >>>> My fields show like this �� >>>> �Date � datehere >>>> Title �- �news Title here >>>> Story � scrollable textare here for the story. >>>> >>>> Now, when I come in later in the day and post another news item, I >>>> don�t want the same date to show up again on my detail page...news >>>> page..the page that I am using to show all my news. >>>> >>>> So, I would presume the easiest way to do this is to go ahead and let >>>> it add the date each time I post a new news item, then do �a search >>>> action at the beginning of my taf that can compare to see if the >>>> day-date is already there. Then if it is, it would just leave it >>>> blank >>>> with the elseif. ���Would that be the easiest way??? >>>> >>>> If this makes sense and you have some idea of what I am needing to >>>> find out here, then any help would be appreciated. If it doesn�t make >>>> sense, I am sorry. My explaining skills aren�t that great sometimes. >>>> >>>> Thanks >>>> Steve >>>> Forerunners Org >>>> >>>> >>>> � >>> >>> ______________________________________________________________________ >>> __ >>> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> >> _______________________________________________________________________ >> _ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> >> > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
