chuck’s academy of function academy an aceware webinar

21
Chuck’s Academy of Function Academy An ACEware Webinar

Upload: georgina-weaver

Post on 16-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chuck’s Academy of Function Academy An ACEware Webinar

Chuck’s Academy of

Function Academy

An ACEware Webinar

Page 2: Chuck’s Academy of Function Academy An ACEware Webinar

Welcome from Jacksonville, FL!

Page 3: Chuck’s Academy of Function Academy An ACEware Webinar

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

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

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

Writing Report Functions

• Functions consist of:– Name– Parameters– Punctuation

Page 7: Chuck’s Academy of Function Academy An ACEware Webinar

Begin with a function namefollowed by parenthesis

ADDNAME ( )

NICEDATE ( )

GETCEU ( )

Page 8: Chuck’s Academy of Function Academy An ACEware Webinar

Add the details

ADDNAME (nmid,”nmdphone”)

GETCEU (rgcrse)

NICEDATE (cobegdate)

Page 9: Chuck’s Academy of Function Academy An ACEware Webinar

How do we knowwhat details are necessary?

Student ManagerOnline Help!

Page 10: Chuck’s Academy of Function Academy An ACEware Webinar

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

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

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

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

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

Where will I find a list of functions?

Page 16: Chuck’s Academy of Function Academy An ACEware Webinar

Let’s look at “add” functions

ADDCRSE( )

ADDREG( )

Page 17: Chuck’s Academy of Function Academy An ACEware Webinar

ADDCRSE (on an invoice)

Page 18: Chuck’s Academy of Function Academy An ACEware Webinar

ADDREG

Page 19: Chuck’s Academy of Function Academy An ACEware Webinar

How do you knowif a field is in the cursor?

Page 20: Chuck’s Academy of Function Academy An ACEware Webinar

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

We’ll be back in Manhattan, KS!Part 2

June 15th, 1:00 pm central time