Normal Topic Question about ThisElement command (Read 392 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Question about ThisElement command
May 7th, 2013 at 3:35pm
Print Post Print Post  
Can the  ThisElement command work inside a retrieve spec?

Basically should this code that works in StatHistory82:

{@Year(@todate(StatHistory82)) = @Year(@Date) AND @Month(@todate(StatHistory82)) = @Month(@Date)}{@month}

Work as this if placed in StatHistory82

{@Year(@todate(ThisElement)) = @Year(@Date) AND @Month(@todate(ThisElement)) = @Month(@Date)}{@month}

Thanks
  

Team – Together Everyone Achieves More
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Question about ThisElement command
Reply #1 - May 7th, 2013 at 3:49pm
Print Post Print Post  
No. It can't work. Search spec programming is compiled and run on the engine, where "elements" are fields - not elements, so "ThisElement" can't resolve.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged