Hyperion Financial Data Quality Management (FDM/FDMEE) (MOSC)

MOSC Banner

Jython: Displaying the result of a query

Earlier if we wanted to display a result of a query after the validate (for example when it does not balance)

I would set up a query, execute it and just display it with a simple message

    Set rs = DW.DataAccess.farsFireHose(strSQL, 1)

        total = CDbl(rs.fields("AMOUNT").value)

        RES.PlngActionType = 2

        RES.PstrActionValue = "WARNING - Ledger does not balance: " & Round(CDbl(total),2)

Im trying to do this like this, but its not working:

query = """declare @LOADID int

SET @LOADID= ?

Select IsNull(Sum(D.AMOUNT),0) AMOUNT FROM TDATASEG D

WHERE D.PARTITIONKEY = @LOADID"""

params=[str(fdmContext["LOADID"])]

rs=fdmAPI.executeDML(query, params, False)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center