You are on page 1of 27

2007 Pre-Summit Workshop & User Cooperative

Tech Track

Bruce Knox University of Arkansas Division of Agriculture Cooperative Extension Service

Tech Track

Argos Pre-Summit Tech Track

Morning: Tech Track Afternoon: Admin & Security

Copyright 2002 Cision Studios Michelangelo Fubaloo

Tech Track

Argos Pre-Summit Tech Track How are you supporting your users? What tools have you developed? What works for you? Got some code to share? Tech Track .

Current Records Tech Track .Argos Pre-Summit Tech Track Topics and Questions? Convert the MS Access SQL to Argos Create a CSV Import File for creating MAPS Users Help specify the selection criteria for your Argos Query Design What to do with MS Access SQL Pass-Through Queries Help for creating Oracle Views for Banner Tables -.

Convert the MS Access SQL to Argos Tech Track .

Some code to help convert the MS Access SQL to Argos (Oracle SQL). This is just to help visually format the code. Automated Conversion includes: removes all [ removes all ] changes Double Quotes to Single Quotes Inserts the CR. tested on AIX.shl It includes conversions for the most common MS Access Functions plus some hints on a few that need more complex code to convert. IMO. Iff insert CR in front of IIf FROM CR after FROM WHERE CR after WHERE HAVING CR after HAVING Tech Track . It makes the code more readable. Carriage Returns or Newlines. access_to_argos. This one is UNIX.

Some code to help convert the MS Access SQL to Argos (Oracle SQL). -2 changes: Chr( to Len( Now() Nz( UCase( LCase( CHAR( LENGTH( SYSDATE NVL( UPPER( LOWER( and since I use Upper Case for Oracle Keywords: Abs( to ABS( LTrim( LTRIM( RTrim( RTRIM( Trim( TRIM( Round( ROUND( Tech Track .

LENGTH(AnyString)-n+1..3.1. but here are some hints on making the changes: Left(AnyString.n) IIf Can be replace with CASE or DECODE (use CASE if any IIf . used) Warning: One must be careful that the input contains no Lower Case Selection Criteria.n) Right(AnyString.. Select View.. because the output is UPPER Case. Copy the code and create a text file. then SQL View. n) SUBSTR(AnyString. Between . The following are too complex for sed and tr to convert. Tech Track . n) SUBSTR(AnyString.Some code to help convert the MS Access SQL to Argos (Oracle SQL) . You open the MS Access Query in Design Mode. Then input it to the shell script..

shl Tech Track .txt sed -e "s/\[//g" -e "s/\]//g" -e "s/\"/\'/g" -e "s/IIF/\\~IIf/g" -e "s/FROM/FROM\\~/g" -e "s/WHERE/WHERE\\~/g" -e "s/HAVING/HAVING\\~/g" -e "s/LEN(/LENGTH(/g" -e "s/NOW()/SYSDATE/g" -e "s/NZ(/NVL(/g" -e "s/UCASE(/UPPER(/g" -e "s/LCASE(/LOWER(/g" -e "s/ABS(/ABS(/g" -e "s/CHR(/CHAR(/g" -e "s/LTRIM(/LTRIM(/g" -e "s/RTRIM(/RTRIM(/g" -e "s/TRIM(/TRIM(/g" -e "s/ROUND(/ROUND(/g" access_to_argos.sql tr '~' '\n' < access_to_argos_temp.edu/bknox/access_to_argos.sql http://www.uaex.txt > access_to_argos_temp.Some code to help convert the MS Access SQL to Argos (Oracle SQL) .sql > access_to_argos.4.txt | tr '[a-z]' '[A-Z]' > access_to_argos. cat access_code_in.

Create a CSV Import File for creating MAPS Users Tech Track .

I think. that is easily changed. Which is a reasonable expectation. Description is always Finance.) Tech Track .Create a CSV Import File for creating MAPS Users SQL*Plus script to create a CSV Import File for creating MAPS Users: maps_users.) The password for the Users' first logon to MAPS will be their Banner User ID + the last four digits of their SSN Be sure to check mark the "User must password change at next login" when Importing the file so that the User can sync their Banner and MAPS password. (Relates to using "Argos and Banner Security" option. (Determining Department assignments can be a difficult Banner issue.sql To use this. one must have the Users already assigned to the Argos Security Class Object.

sql Tech Track .9)||'".Your Argos Security Class Object AND goremal_pidm = spbpers_pidm AND goremal_status_ind = 'A' AND goremal_preferred_ind = 'Y' AND gobeacc_pidm = goremal_pidm AND gurucls_userid = gobeacc_username ORDER BY Sort_Name.6.uaex."'||LOWER(gurucls_userid)||SUBST R(spbpers_ssn.edu/bknox/maps_users. spbpers."'||LOWER(gurucls_userid)||'"."'||TRIM(goremal_email_address)||'"' FROM goremal. gobeacc WHERE gurucls_class_code = 'ARGOS' -. '"MAPS". http://www.Create a CSV Import File for creating MAPS Users -2 SELECT gurucls_userid Sort_Name."Finance". gurucls.

Help specify the selection criteria for your Argos Query Design Tech Track .

edu/bknox/table_to_argos.sql from my BannerAccess work.sql Tech Track . http://www.sql creates a SQL Query that can be used in Argos or can be used to help specify the selection criteria for your Argos Query Design.SQL*Plus script to help convert from MS Access table_to_argos. but this one concatenates the output and is useful for creating a single document for the most useful Tables. (OK. it is a warmed over table_to_query.uaex.

txt Just a few: -.**FABINVH** Invoice Header Table -.**FABCHKS** Check Summary Table -.**FABINCK** Invoice/Check Table -.**FABCHKA** Batch Check/Invoice Detail Table -.Table Descriptions for Argos Use.Table or View Descriptions -.sql TableNameToAdd -.**FARINTX** Invoice Tax Allocation Table -.txt Tech Track .**FARINVC** Invoice Commodity Table -.**FABBKTP** Bank Tape Table -. -.**FFBMAST … http://www.Details Below -.edu/bknox/Table Descriptions for Argos Use. -.To add more Tables or Views run table_to_argos.**FARDIRD** Direct Deposit Table.**FFBADJH** Adjustment to Fixed Assets Header Table.**FARINVA** Invoice Accounting Table -.uaex.

What to do with MS Access SQL Pass-Through Queries? Tech Track .

Tech Track .What to do with MS Access SQL Pass-Through Queries? I am currently dividing our existing MS Access SQL Pass-Through Queries into groups of objects for Argos.

What to do with MS Access SQL Pass-Through Queries? Tech Track .

Just Add the Objects. Done! Tech Track . Select the Columns to Display.Our End-Users find it easier to “paste” together pre-defined Queries than to write their own. Click and Drag the Joins.

What to do with MS Access SQL Pass-Through Queries? Tech Track .

Mrs.. and presents the nearly ubiquitous PIDM for Joins.. Mr. drops Ms..This universally available Names Query is very helpful. Tech Track . This one gets the Active Employees. and presents a short version of Last Name for that frequent Last Name First Sort Order. grabs the Preferred Name. … but leaves the Dr.

But. others are more difficult to replace. Such as the Budgeting Queries that need a Parameter to select the Period.The question becomes which to make into Oracle Views? Surely the Names Queries. Tech Track .

one could just copy it and add the remaining required Tables or Views. Tech Track . Since the Template would have the most complex logic.The question becomes which to make into Argos DataBlock “Templates”? If it is complex and needs a Parameter to select the records. then making a DataBlock Template might be the best solution.

Help for Creating the Oracle Views for Banner Tables – Current Records? Tech Track .

there already is a PEVEMPL.Help for Creating the Oracle Views? I decided that I needed a View with a name very similar to the Banner Table names.uaex.edu/bknox/table_to_v_view. Tech Track .sql will give you a head-start.sql Current Records VIEW from TABLE PEBEMPL CREATE OR REPLACE VIEW PEBEMPL_V ( . http://www. . -. . This was just an example. Yes.pebempl_v_create.

What to do with MS Access SQL Pass-Through Queries Slide 24. Help specify the selection criteria for your Argos Query Design Slide 16. Help for creating Oracle Views for Banner Tables -. Create a CSV Import File for creating MAPS Users Slide 13. Convert the MS Access SQL to Argos Slide 10.Current Records Tech Track .Argos Pre-Summit Tech Track Topics and Questions? Slide 5.

Bruce Knox bknox @t uaex. Wilson Spence.uaex.htm University of Arkansas Division of Agriculture Cooperative Extension Service Tech Track .edu/bknox/BannerArgos.edu http://www.2007 Pre-Summit Workshop & User Cooperative Tech Track Cision Studios Images are used with the permission of J.