22
michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Embed Size (px)

Citation preview

Page 1: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

michaels, ross and cole (uk) ltd.

Tips and Techniques

Adam Flynn

Senior Consultant

Page 2: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Topics

• “Work with” Maintainer• Report with Graph• Simple Dropdowns and Radio Buttons• Simple Report Selection Dropdowns• Report Selection Dropdown with External Object• Calendar Popup with Report Selections• Subtotal Calcs• Calendar Retrievals• Performance

Page 3: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

“Work with” Maintainer

• *AUTOSEQ on Contact No.– Auto-generate key fields when adding

records– Put *AUTOSEQ into the Field Description on

Pre-format

• Customer Lookup smartlink

• Copy functionality

• All the Advanced Search and Sort functionality you get with Retrievers.

Page 4: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 5: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 6: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 7: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Report with Graph

• Several forms of graph available.– Bar 2D/3D– Stacked Bar 2D/3D– Pie Chart 2D/3D– Grouped data

• Highly customizable– Colours– Fonts– Orientation– Size– Legends

Page 8: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 9: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Simple Dropdowns and Radio Buttons

• Specify Validity check in Preformat– LS for dropdown list– RD for radio buttons

Page 10: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 11: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Simple Report Selection Dropdown

• Specify an ‘A’ as the user defined control field in Preformat.

• This causes all possible values to be used by default.

• Caution! It might take some time to populate if there are a lot of values.

Page 12: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 13: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Report Selection Dropdown with Ext Object

• Create a retriever with 2 fields.– First field is value– Second field is description

• Register retriever as an external object.• Use external object in the *SELECT location for the

report.• Note: The dropdown list is displayed in the sequence of

the display field not the key selection field being passed to the report. This is OK for this example but not for all cases (e.g. month name dropdown – April, August, December, etc). To fix this, set control code X against the field to be used for sequencing and control code D against the field to be displayed in the ex object retrieval.

Page 14: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 15: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Calendar Popup on Report Selection

• Set the User defined control field to C in Preformat.

Page 16: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 17: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Subtotal Calcs in Reports

• Edit the HTML template using a special syntax.– e.g. F_EXPR[9,2,J] = F_G_TN_[REV10] /

F_G_TN_[UNIT10];– Standard arithmetic operations allowed + * - /– Lots of options for the field values. The

manual describes these in full.

Page 18: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant
Page 19: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Calendar Retrievals

• Create a retriever that sequences over a date field.

• Specify the format of the date in the HTML template properties.– mrcDTfmt = “yyyymmdd” (The Movex

convention)

Page 20: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Example Applications

Page 21: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

Performance Tips

• Turn off record count for multi-file queries.– go_lastpage = “-1”

• Turn on case sensitivity.– caseSensitive = “1”

• Build helper logicals– Helps the database optimize and execute

your sql.– Requires quite advanced tech knowledge

Page 22: Michaels, ross and cole (uk) ltd. Tips and Techniques Adam Flynn Senior Consultant

michaels, ross and cole (uk) ltd.

For more information

Web www.mrcuk.comEmail [email protected] +44-20-8282-1600Mail mrc (UK) Ltd

Claridge House29 Barnes High StreetLondonSW13 9LWUK