Anaristos Sorcerer
 
  Joined: 17 Jul 2007 Posts: 821 Location: California
  | 
		
		  
			
			   Posted: Sun Mar 30, 2008 4:35 pm   
  Problem with #LOOPVIEW   | 
			 
			
				As a test I ran the following script:
 
 
	  | Code: | 
	 
	
	  
 
#LOOPVIEW Portals|ax {#ECHO eploc = &PortalEntryPoint}
 
 | 
	 
 
 
 
The result was:
 
 
Portals |ax
 
Portals |ax
 
Portals |ax
 
Portals |ax
 
Portals |ax
 
Portals |ax
 
Portals |ax
 
Portals |ax
 
 
It so happens that there are 8 records in that view. However, changing the view to All made no difference. #LOOPVIEW evidently understands which view I want because if I close the database, the script returns blanks. The output then is not echoing the requested view, but doing something else. Notice the blank between the viewname and the "|" in the output. I modified the script to use %viewrec and it displayed the data as requested.
 
It is my experince that specifying viewname|dbid does not always work as stated in the help files, but this is going somewhat beyond the pale.
 
 
EDIT:
 
I re-ran the test with no commands, i.e:
 
 
	  | Code: | 
	 
	
	  
 
#LOOPVIEW Portals|ax {}
 
 | 
	 
 
 
 
With no variation in the result. | 
			 
		  |