SM101 - Registrations Session 3 of 5 An ACEware Presentation.
Chuck’s Academy of Function Academy An ACEware Webinar.
-
Upload
georgina-weaver -
Category
Documents
-
view
218 -
download
0
Transcript of Chuck’s Academy of Function Academy An ACEware Webinar.
![Page 1: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/1.jpg)
Chuck’s Academy of
Function Academy
An ACEware Webinar
![Page 2: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/2.jpg)
Welcome from Jacksonville, FL!
![Page 3: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/3.jpg)
Today we will dissect . . .
• What is a function?
• What can a function do?
• Writing report functions
• Function writing tips
• Embedding functions
• Common errors
• Function help
![Page 4: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/4.jpg)
What is a function?
Report functions are special tools
or utilities that have a specific purpose
![Page 5: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/5.jpg)
What can a function do?
• Display a field not in the report cursor
• Format information
• Perform calculations
• Do a specific task after the report runs
![Page 6: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/6.jpg)
Writing Report Functions
• Functions consist of:– Name– Parameters– Punctuation
![Page 7: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/7.jpg)
Begin with a function namefollowed by parenthesis
ADDNAME ( )
NICEDATE ( )
GETCEU ( )
![Page 8: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/8.jpg)
Add the details
ADDNAME (nmid,”nmdphone”)
GETCEU (rgcrse)
NICEDATE (cobegdate)
![Page 9: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/9.jpg)
How do we knowwhat details are necessary?
Student ManagerOnline Help!
![Page 10: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/10.jpg)
From the online help . . .Function name
and what it will do
Where you can use the function
You must supply these piecesExtras!
Examples!
![Page 11: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/11.jpg)
ADDNAME(nmid, ”nmdphone”)Function name
Beginning parenthesis
First required parameter (from which table do you want to pull the information)
Comma
Opening quotes
Second parameter (which fielddo you want to pull)
Closing quotes
Ending parenthesis
![Page 12: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/12.jpg)
A few tips to remember
Parameters are always separated by commas
Use opening and closing parentheses to begin and
end parameters
Single quotes or double quotes are acceptable
![Page 13: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/13.jpg)
You can combine or embed functions
Commonly you will need to include a field not in the cursor, and format the same field.
NICEDATE(addcudfs(cocrse,”cudfd1”))
NICETIME(addcrse(number,'cocrsetm'))
The rules
are almost the same
![Page 14: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/14.jpg)
Common errors
Field doesn’t exist
The field you want to use doesn’t exist in the cursor
Use an “add” function to fix the problem
Syntax error
Usually mismatched quotes, missing parentheses or missing commas
Check your punctuation!
Operator/Operand Mismatch
You’ve mixed numeric and character field types
Read about the transform function!
![Page 15: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/15.jpg)
Where will I find a list of functions?
![Page 16: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/16.jpg)
Let’s look at “add” functions
ADDCRSE( )
ADDREG( )
![Page 17: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/17.jpg)
ADDCRSE (on an invoice)
![Page 18: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/18.jpg)
ADDREG
![Page 19: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/19.jpg)
How do you knowif a field is in the cursor?
![Page 20: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/20.jpg)
That’s plenty for today
At our next meeting . . .
Specific functions
Specialty functionsDate StampingJustDoIt
Questions?
![Page 21: Chuck’s Academy of Function Academy An ACEware Webinar.](https://reader034.fdocuments.in/reader034/viewer/2022051417/56649edc5503460f94bec106/html5/thumbnails/21.jpg)
We’ll be back in Manhattan, KS!Part 2
June 15th, 1:00 pm central time