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

MOSC Banner

How to check whether strfield is numeric in Jython

I am trying to run a import script for currency conversion and attached the scriopt to the Amount field in import format. I am trying to check the condition whether the field is numerice, however the str.isnumeric/isdigit functions are not working. Plz help

Below is teh script:

abc = ""
cde = ""
FactorMultiply = ""
Factordivide = ""
CheckNum = ""
def RateConv (strfield, strrecord):
global abc
abc = strrecord[45:48]
fdmAPI.logInfo(abc)
global cde
cde = strrecord[57:60]
fdmAPI.logInfo(cde)

# test to see if it is numeric
global CheckNum
CheckNum = abc.isdigit();
fdmAPI.logInfo(str(abc.isdigit();)

if CheckNum == True:
global FactorMultiply
FactorMultiply = abc
fdmAPI.logInfo(FactorMultiply)

# test to see if it is numeric

Tagged:

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