Download presentation
Presentation is loading. Please wait.
Published byAlicia Walton Modified over 9 years ago
1
Chuck’s Academy of Function Anatomy An ACEware Webinar Part 2
2
Function Academy – Part 2 Formatting Functions Function Categories Especially Cool! Advanced and Specialized
3
Formatting Functions NAMER – formats name namer(rgid);nmfirm;nmaddr1;nmaddr2;nmcity,nmstate,nmzip
4
Formatting Functions NICEDATE – formats date nicedate(cobegdate,coenddate)nicedate(cobegdate,coenddate,3)
5
Formatting Functions SHOWPHON – formats phone number showphon(indphone,"Day: ");showphon(inhphone,"Eve: ")
6
Formatting Functions CSZR – concatenates city, state and zip (frequently combined with other functions) namer(nmid);nmtitle;nmaddr1;nmaddr2;cszr(nmid);nmcntry
7
Other Formatting Functions (not an inclusive list) CERTDATE - Date in formal date format (i.e., 10th day of January, 2003). CIVTIME - Returns time in civilian format (if stored in military format) DATETH - Returns formal format of day with "th", "nd", or "rd". DTOC - Converts a date expression to a character expression. INTLPHON - Returns formatted phone number for US names and unformatted number for International names. NICETIME - Translates military time into civilian time. ROUND - Rounds a numeric expression to the nearest value, depending on the number of specified decimals. SHOWDOW - Returns the days of the week a class meets (the record is saved as "_X_XX_X" and is translated to: M W H S). SHOWSAL - Expands abbreviated salutations stored in the NMSALUT field. TNAMER - Returns formatted Instructor Name. TRIM - Trims spaces off the end of a character expression. UPPER - Returns the specified field in Upper Case.
8
Other Function Categories
9
Especially cool! AGE – Calculates the number of years between two dates AGE(nmbirth)
10
Especially cool! GETDATA – Opens a message box in which you can enter a temporary message to be used in a report. (Used in a JUSTDOIT) Required Parameters: Character title expression (i.e. text that will display at the top of the message box) Input variable. Variable can be a date, (e.g. ctod('//') ), a number (e.g. 0.00), or character. If character, use the SPACE() function to specify desired length (i.e. SPACE(50) creates a data entry field 50 characters in length). Note: if you wish to enter a large text block (i.e. a memo), enter a space value 251- SPACE(251). This will let you enter large blocks of text in a scrolling data window.
11
Especially cool! GETDATA (continued)
12
Especially cool! JUSTDOIT with GetData Function GetData Function
13
Especially cool! WHAZZIS – Displays query used on report whazzis(.t.) Optional Parameters: "A" = Query Name, Query Field and Query Value "Q" = Query Name Only "V" = Query Value Only "QV" = Query Name and Value "+" = Query Name and Report Name "++" = Query Name, Report Name and Report Title
14
Especially cool! QuikCode – shows code description (instead of code) iif(empt(rgtrack),'NO CODE',quikcode(RGTRACK))
15
Chuck’s Favorites Sometimes we have to humour the boss!
16
SHOWEXP Don’t forget to add your formatting! SHOWEXP
17
ADDOMNI When it absolutely, positively has to be there! Returns any field from any table in the system (key value must be in cursor). Required Parameters: Table you want to return a field from in quotes (i.e. "NAMES", "COURSE", "REGISTER") Key from above table in quotes (i.e. "nmid" or "nmid+rgcrse") Key from report cursor, NO quotes (i.e. nmid or nmid+cocrse) Field from specified table to return (i.e. "nmsalut", "cosubcode", "rggrade")
18
FINDINST FINDINST can display more than a name! 1= Name and SSN 2= Name only 3= Name, day phone, and eve phone 4= Name-Last Name, First Name 5= Name and Address in block form 6= Name, Address and Phone #'s in block form 7= Name and user defined char string (enter char string as parameter 3) 8= Name, SSN, and Pay description
19
Justdoit JUSTDOIT is a specialized report function that uses SQL to request and manipulate information from the data tables. What can a JUSTDOIT do? change the sort order of data in a report filter out unwanted data execute specialized report functions –gradspec –getdata
20
Writing a J ustdoit All JUSTDOIT’s that change the output order, eliminate duplicates or filter begin the same: justdoit(‘select *,0 as marker from (cursor5) And continue with Order, Group, or Where
21
Writing a J ustdoit Where States a conditional clause that data must meet to be included in the report (e.g. where due-paid > 0.00) Group by Groups data in the cursor by the field you specify, then removes all but one record for each group Order by Changes the sort order of data in the cursor Into cursor (cursor?)Tells the system to place the data back into the cursor once it has finished executing all the select statements, And finishes with...
22
Justdoit Examples Change the Sort Order of Report with "Order By" Statement justdoit(‘select *,0 as marker from (cursor5) order by nmname3,nmname1 into cursor(cursor5)’) Eliminating Duplicate records with the "Group By" Statement JUSTDOIT(‘select *,0 as marker from (cursor5) group by nmid,nmname3 into cursor(cursor5)’) Filter the report with "Where" Statement JUSTDOIT(‘select *,0 as marker from (cursor5) where due-paid>0.00 into cursor(cursor5)’)
23
Justdoit The JUSTDOIT expression box may be placed anywhere on the report template but we recommend placing it in the header band of the report. It's a non-printing element and will not display on the report itself.
24
Adding a field with a JUSTDOIT Add a field to the Cursor and then Sort by it JUSTDOIT(‘select *,addcrse(cocrse,"cobegdate") as date, 0 as marker from (cursor5) order by date into cursor(cursor5)’) Use the ADDCRSE function & add “as date” which identifies the new field for the cursor and continue with the justdoit
25
Additional Help A plethora of additional information on all functions is available in the online help or... Call your tech!
26
Questions???
27
Our next webinar... Wednesday, June 30 th 1:00 Central When we unveil the all new 7.2!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.