shane_anderson Posted January 30, 2015 Share Posted January 30, 2015 Please excuse me if this is a simple question but I am brand new to this product and have looked for a while and can't seem to find an answer. I am attempting to design a domain on JS that is connected to an Oracle database and am having issues.Consider the case where I have three tables as follows:Dates_TableJDateGDateStringDate11500101/01/2015January 1, 201511500201/02/2015January 2, 201511500301/03/2015January 3, 201511500401/04/2015January 4, 201511500501/05/2015January 5, 2015………Price_Heading_TablePriceIDPriceDescCatCode1100Price Description 1AAA200Price Description 2AAA300Price Description 3BBB400Price Description 4BBB500Price Description 5CCC………Price_Detail_TablePrice_IDEffective DateAmount10001/01/20151.2520001/01/20152.5020001/03/20152.7530001/01/20151.1540001/02/20151.75……… I wish to create a domain that will allow the creation of an ad-hoc view to return of the following information when a user enters a paramater containing a date value of January 3:Results for user entering a date of January 3PriceIDPriceDescGdateAmount100Price Description 101/03/20151.25200Price Description 201/03/20152.75300Price Description 301/03/20151.15400Price Description 401/03/20151.75500Price Description 501/03/2015 My Issue is being able to return only the current effective price for each Price_ID by date. I can do this using SQL by returning a single row from the Price_Detail_Table when joining by Price_ID where Effectie_Date >= GDate and sorting decending by effective date but I have no idea how to accomplish this in the Domain designer. I have reviewed the DomEL information (for as much as I am able to find) but have had no luck.Any idea's would be greatly appreciated! Link to comment Share on other sites More sharing options...
shane_anderson Posted February 13, 2015 Author Share Posted February 13, 2015 I'm not sure if there is a more elegant solution and I would certainly be interested in hearing from anyone who miight have one but I ended up creating a stored procedure to retreive the values I need based on input parameters of PriceID and Date. I am then able to execute the stored procedure using DomEL in a calculated field. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now