beth l. gamble senior systems analyst smithsonian – nmnh [email protected] na emu users group...

18
Beth L. Gamble Beth L. Gamble Senior Systems Analyst Senior Systems Analyst Smithsonian – NMNH Smithsonian – NMNH [email protected] [email protected] NA EMu Users Group Meeting NA EMu Users Group Meeting October October 22, 2008 22, 2008

Upload: charles-fleming

Post on 01-Jan-2016

222 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Beth L. GambleBeth L. GambleSenior Systems AnalystSenior Systems Analyst

Smithsonian – NMNHSmithsonian – [email protected]@si.edu

NA EMu Users Group MeetingNA EMu Users Group Meeting October 22, 2008October 22, 2008

Page 2: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

The Problem Multiple labels based on a numeric field in

the record itself.

Crystal had some solutions but there were maximum number of repeats allowed and it was VERY complicated.

Looked at the problem from the data perspective.

Page 3: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

The Problem The solution in the data was very simple.

Duplicate the row of data as many times as you need duplicates.

Doing this manually for every report was out of the question.

We called in the superheroes. Ohhhhhh KE please help!

Page 4: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

The Solution KE wrote a script called Texxmlreplicate which

located the field to be used for the number of repeats and would create the repeats in the XML prior to it being converted to CSV and sent to the user’s machine.

KE of course wrote this in such a way that it could be easily customized for different report needs and is available with a texpress upgrade to all customers.

Page 5: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

emu-botlive@kellogg[25] pwd/emu/texpress/texapi/binemu-botlive@kellogg[26] lsCVS/ texxmlctl*standaloneimport* texxmlexport*texcsvexport* texxmlodbc*texhtmlctl* texxmlreplicate*texhtmlserver* texxmlreplicate.old*texps* texxmlserver*texqlclient* texxmlslidewrapper*texxmladjust* texxmlslidewrapper.old2*texxmlbotlabelwrapper* xmlwf*emu-botlive@kellogg[27] more texxmlbotlabelwrapper#!/bin/shtexxmlreplicate -TOtherCounts -cCatOtherCountsValue –tCatOtherCountsType="Duplicates Collected" <$1 >texxmlwrappertemp texxmlodbc texxmlwrappertemprm texxmlwrappertempemu-botlive@kellogg[28]

Green is what KE provides. Red is what customer has to create.

Must notify KE about any wrapper scripts you create so they can check them into the source repository for future upgrades to your version of EMu.

Page 6: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Catalog module Tab view of Other Counts Kind and Value used to determine duplication.

Page 7: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Create a System Registry entry giving a name to your wrapper script.

Page 8: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Create a System Registry setting for the default file extension. This report is still a Crystal Report so .rpt is used.

Page 9: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Create a System Registry entry telling EMu what format the final output should be in.This is an ODBC / CSV type of report just like other Crystal Reports.

Page 10: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Tell EMu what to do when this report is invoked.Again this is still just a Crystal report so you have to run the Crystal viewer with the report name parameter.

Page 11: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Finally you have to give this report type a name that will appear to the users in the Report Type box.

Page 12: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

How a user selects this new type of Report. Notice this is the name you gave it in the Registry.

Page 13: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

When selecting the fields for the report. Put the fields that will be used by the wrapper script to determine the duplication in their own group. This makes like much simpler, TRUST ME!

Also, rename the group to something meaningful. GroupX is not recommended.

Page 14: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Within Crystal this is how the duplicated table is linked in the main report.By having the OtherCou_csv linked in the main report you get the necessary duplication.

This is the Group you created in EMu with name slightly truncated. In this case the name was OtherCounts.

Page 15: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Within Crystal this is how the report is limited to only “Duplicates Collected”Other Counts for the Catalog Record.

This is done via the Select Expert.

Page 16: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

THE FINAL REPORT

Page 17: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

KE comes through again! Ask and you shall receive!

The steps associated with writing the wrapper script and defining the registry setting is done by your system administrator or KE.

The use of the report type and setting up the report in EMu can be done by the users.

Creating the report definition could be done by users or your institution’s Crystal Reports goto person.

Page 18: Beth L. Gamble Senior Systems Analyst Smithsonian – NMNH gambleb@si.edu NA EMu Users Group MeetingOctober 22, 2008 NA EMu Users Group MeetingOctober 22,

Thanks May seem like many steps but it really is

rather straight forward once you do it a time or two.

I am happy to help get you started so email me if any of this isn’t Crystal clear.

Beth L. Gamble – [email protected]