Normal Topic REPORT COMMAND BUTTON (Read 1713 times)
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
REPORT COMMAND BUTTON
Apr 19th, 2005 at 2:04pm
Print Post Print Post  
I read with interest the January 2005 Inside Sesame article ""Creating Custom Menus" and specifically setting up a command button to list and print reports.

So, I created a Report command button and it works for the most part with a couple of exceptions.

The programming is as follows:

var vReport as String      
var VReport1 as string
var vNav

//offer user choice of reports to print

vReport = @PopupMenu("407ETR Transponders (Preview);Absenteeism - YTD (Preview);Avis Preferred Wizard Numbers (Preview);Bonus Payments (Preview);
Car Drivers Licenses & Plates (Preview);Car Fleet (Preview);Car Insurance Deduction (Preview);Car Monthly Lease Costs & Tax Bfts (Preview);
Car Non Deductible Lease Costs (Preview);Car Year End GST Calcs (Preview);Consultants Home Locations (Preview);Employee Listing - Addresses (Preview);
Employee Listing - Alpha (Preview);Employee Listing - Dept (Preview);Employee Listing - Dept/Ext (Preview);Employee Listing - Golf Teams (Preview);
Employee Listing - Golf Teams Alpha (Preview);Employee Listing - Seniority (Preview);Employee Listing - Spouses (Preview);Employee Listing - Titles (Preview);
Feedback Ratings - YTD (Preview);Incent Comp - Vac/Holpay Projection (Preview);Life Insurance Taxable Benefit (Preview);Payroll Hol/Vacpay Owing - YTD (Preview);
Payroll Hol/Vacpay Paid - YTD (Preview);Payroll LOA/Brvmt/Sick - YTD (Preview);Payroll Salaries/Bonus/Quotas - YR (Preview);Qtrly Paystub Summary - MKT - QTR 1 (Preview);
Qtrly Paystub Summary - MKT - QTR 2 (Preview);Qtrly Paystub Summary - MKT - QTR 3 (Preview);Qtrly Paystub Summary - MKT - QTR 4 (Preview);
Qtrly Paystub Summary - TC/CC - QTR 1 (Preview);Qtrly Paystub Summary - TC/CC - QTR 2 (Preview);Qtrly Paystub Summary - TC/CC - QTR 3 (Preview);
Qtrly Paystub Summary - TC/CC - QTR 4 (Preview);Quota Performance - MKT - QTR 1 (Preview);Quota Performance - MKT - QTR 2 (Preview);
Quota Performance - MKT - QTR 3 (Preview);Quota Performance - MKT - QTR 4 (Preview);Quota Performance - MKT - YTD (Preview);
Quota Performance - TC/CC - QTR 1 (Preview);Quota Performance - TC/CC - QTR 2 (Preview);Quota Performance - TC/CC - QTR 3 (Preview);
Quota Performance - TC/CC - QTR 4 (Preview);Quota Performance - TC/CC - YTD (Preview);Security Keys - By Emp (Preview);Security Keys - By Key (Preview);
T4 Totals - 12 Mths Inc Comp Empl (Preview);T4 Totals - All Empl (Preview);Taxable Bfts & T4 Adjust (Preview);Telephone - Bell Call Cards (Preview);
Telephone - Cell & Bell Cards (Preview);Telephone - Home & Cell (Preview);Vacation Schedule - By Days Earn (Preview);Vacation Schedule - By Dept (Preview);
Vacation Schedule - LOA Days (Preview)", "SELECT A REPORT")

//Create the SelectTreeItem Statement

vReport1 = "Search Update Menu!Results Commands!Reports!EMPLOYEE!" + vReport

//Run the SelectTreeItem Command

vNav = @SelectTreeItem(vReport1)

vNav=""
vReport1=""
vReport=""


Two problems: First, reports at the begiining of the next line of programming do not work.  i.e: Car Drivers Licenses & Plates, Car non deductible Lease Costs, etc. They appear on the pop up menu but do not run. This is consistent throughout.  Does the programming have to be all on one line ? I would hit enter to start a new line so that I could see all the info on screen.

Second, it appears that where the report name is very lengthy, an arrow appears showing the balance of the name.  In some cases they do not work which could be related to problem 1 above.  Also, is there a way to enlarge the pop up menu so that it fits the entire name of the report ?

Thanks,

Louis
  

Louis Galvao
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: REPORT COMMAND BUTTON
Reply #1 - Apr 19th, 2005 at 2:30pm
Print Post Print Post  
To continue a single string onto more than one line - end the line with double quotes and a plus sign:
Code
Select All
var aa as string

aa = "One" +
" Two" +
" Three"
 



Will make a single string that reads: "One Two Three".
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: REPORT COMMAND BUTTON
Reply #2 - Apr 19th, 2005 at 2:45pm
Print Post Print Post  
Quote:
Second, it appears that where the report name is very lengthy, an arrow appears showing the balance of the name.  In some cases they do not work which could be related to problem 1 above.  Also, is there a way to enlarge the pop up menu so that it fits the entire name of the report ?


It's not the length, it the slash character (/). The slash tells the popup menu to create a submenu. To have a slash character appear on the menu as a slash, you have to double it (//).

BTW, you may not be aware of this,  but it is an internet convention that typing all in caps means you are yelling at someone. If you are not intended to scream your subject lines at us, you might consider turning off your caps lock key.  Smiley
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: REPORT COMMAND BUTTON
Reply #3 - Apr 19th, 2005 at 2:58pm
Print Post Print Post  
I am not trying to make a single string.  Each report must show and run separately.

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: REPORT COMMAND BUTTON
Reply #4 - Apr 19th, 2005 at 3:04pm
Print Post Print Post  
Quote:
I am not trying to make a single string.  Each report must show and run separately.


Yes, but you do this by passing a single semicolon separated string of report names to @PopupMenu.

To break the assembly of this string onto multiple lines of code so it is easier to read, you use + to tack them together instead of pressing Enter in the middle and breaking your string. In your case, you would do:

var vReports as String

vReports = "ReportName1;ReportName2;ReportName3;"
vReports = vReports + "ReportName4;ReportName5;ReportName6;"
vReports = vReports + "ReportName7;ReportName8;ReportName9"

vReport = @PopupMenu(vReports, "SELECT A REPORT")
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Louis Galvao
Full Member
***
Offline


"Sufferin' Succatash"

Posts: 265
Location: Canada
Joined: Feb 14th, 2005
Re: REPORT COMMAND BUTTON
Reply #5 - Apr 19th, 2005 at 4:17pm
Print Post Print Post  
Thanks for the input on both accounts.  Pop Up Menu works great now.

Is it possible to load retrieve specs into this programming without having to Open Spec Manager ?

Each one of my reports has a sort spec attached to it but not a retrieve spec in the design. 

PS  no screaming intended with caps on subject line.  I will not use caps in future.

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: REPORT COMMAND BUTTON
Reply #6 - Apr 19th, 2005 at 4:34pm
Print Post Print Post  
Quote:
Is it possible to load retrieve specs into this programming without having to Open Spec Manager ?


@LoadRetrieveSpec()
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged