Normal Topic REPORTS - "PRINT IMMEDIATELY" DISPLAYED (Read 3796 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Feb 16th, 2005 at 7:48pm
Print Post Print Post  
Is there a way to hide reports labeled "print immediately" in the DB ?

I am finding it is cluttering up my report section as I add more and more reports.

I always preview the report before printing.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #1 - Feb 16th, 2005 at 8:00pm
Print Post Print Post  
Hello,

Yes you can hide them. You will want to look at the SBasic command @HideTreeItem(), which is covered on page 45 of the 1.1 documentation supplement

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #2 - Feb 16th, 2005 at 8:41pm
Print Post Print Post  
Thanks for your help !

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #3 - Mar 4th, 2005 at 4:11pm
Print Post Print Post  
I utilized the HideTreeItem command but it does not seem to be hiding this report for me.  I think it has something to do with where I am placing the programming.

I placed the following code in the specific report as GLOBAL CODE  as follows:

//HIDES THE PRINT IMMEDIATE OPTION ON MENU TREE

VAR vHideTree as INT

vHideTree = @HideTreeItem("Employee Database!Forms!Search/Update!Employee!Employee!Reports!Employee!407ETR TRANSPONDERS (Print Immediate)")


I Test my program and no errors pop up.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #4 - Mar 4th, 2005 at 4:29pm
Print Post Print Post  
You will want to put the code in the form on form entry event for the Employee form. The code will be similiar to the following.

Code
Select All
Var vHideTree as Int

If @Mode = 1 Then
{
	vHideTree = @HideTreeItem("Search Update Menu!Results Commands!Reports!Employee!407ETR TRANSPONDERS (Print Immediate)")
}
 

  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #5 - Mar 4th, 2005 at 10:34pm
Print Post Print Post  
Ray:

This works very well.  Thanks for the quick response.

However, with so many reports in my database, this would be cumbersome to copy and update this statement to include each and every report.

Is there a symbol that captures all reports that (print immediate) ? I tried the * but it doesn't work.

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #6 - Mar 5th, 2005 at 1:45pm
Print Post Print Post  
Quote:
Is there a symbol that captures all reports that (print immediate) ? I tried the * but it doesn't work.


No, there isn't. But what a good idea! I'm going to investigate this one and you are likely to see it in a future version if The Cow thinks it's viable.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: REPORTS - "PRINT IMMEDIATELY" DISPLAYED
Reply #7 - Mar 5th, 2005 at 5:13pm
Print Post Print Post  
This might be a place where we could be using Regular Expressions.  Would also be useful in programming referencing multiple LEs, searching for strings in srings, etc. 

I know I bring this up every six months, but I was quite sure I was told in the early stages that RegEx would be available, but so far it seems only Mark may have access to that as a tool.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged