Skip to content
/ effdt Public

A simple Javascript effective date generator to be used as a utility for PeopleSoft developers who don't want to repeatedly type out effective date/sequence checks.

Notifications You must be signed in to change notification settings

jkrehm/effdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

README


Purpose

This simple page is meant to be a utility for PeopleSoft developers to use to quickly generate effective date/sequence checks. Depending on the record in question, these checks can get pretty long and tedious to type out, especially when you just need some information quickly.

Usage

Choose your database type, then what type of capitalization you want, and then input the record, its alias, and the key fields. The script will generate an effective date/sequence check based on those parameters, and you can discard the sequence portion if it's not required.

Example

Database: Oracle Character Case: Lower Inputs:

stdnt_fa_term a
emplid
institution
strm

Outputs:

and a.effdt = (
	select max(a1.effdt)
	from ps_stdnt_fa_term a1
	where 1=1
	and a1.emplid = a.emplid
	and a1.institution = a.institution
	and a1.strm = a.strm
	and a1.effdt <= sysdate)
and a.effseq = (
	select max(a1.effseq)
	from ps_stdnt_fa_term a1
	where 1=1
	and a1.emplid = a.emplid
	and a1.institution = a.institution
	and a1.strm = a.strm
	and a1.effdt = a.effdt)

Note: The "where 1=1" is there only for easy of commenting out criteria. It can (and probably should) be removed from production code, for ease of future reading.

About

A simple Javascript effective date generator to be used as a utility for PeopleSoft developers who don't want to repeatedly type out effective date/sequence checks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published