T24 - Calling Local Ref ...

1,696 views
Skip to first unread message

prabal_482

unread,
Jul 3, 2008, 4:14:50 AM7/3/08
to jBASE
hi all,

I am writing a validation rtn, which checks for the input in a field
say customer id, then according to the input value, it should select
an item from drop down list. The field that needs to be selected is a
local ref. field.

can anyone tell me how to do this ?

using R.NEW(MD.DEA.LOCAL.REF,20) does not seem to work.

------------------------------------------------------------------------------------------

System : AIX HBLDRMAIN 3.5 00CC06FF4C00
OS Release : 5.3.0.0
UNIX User : test7 (uid 219, euid 219)
Tty name : /dev/pts/11
Time : Thu Jul 3 13:45:48 2008

Environment
===========

JBCPORTNO : Not Set
JBCRELEASEDIR : '/usr/jbc'
JBCGLOBALDIR : '/usr/jbc'
WARNING: JBCDATADIR is not set, Default '/usr/jbc/jbase_data'
WARNING: JBCDATADIR directory '/usr/jbc/jbase_data' not valid, error 2
WARNING: JBCDATADIR is subdirectory of JBCGLOBALDIR
HOME : '/segproj/test7/bnk/bnk.run'
JEDIFILEPATH : '/segproj/test7/bnk/bnk.run'
JEDIFILENAME_MD : '/segproj/test7/bnk/bnk.run/VOC'
JEDIFILENAME_SYSTEM : '/usr/jbc/src/SYSTEM'
SYSTEM File is (DICT) : '/usr/jbc/src/SYSTEM]D'
RELEASE Information : Major 4.1 , Minor 5.9 , Patch 5494
(Change 39457)
Spooler dir (JBCSPOOLERDIR) : '/usr/jbc/jspooler'

KASHIF MAJEED

unread,
Jul 3, 2008, 4:46:30 AM7/3/08
to jB...@googlegroups.com
Hi,

Your Syntax for local ref should be like this
R.NEW(MD.DEA.LOCAL.REF)<1,20> = 'your value'

I hope it will work

Regards,

Kashif

Sharath HG

unread,
Jul 3, 2008, 5:11:17 AM7/3/08
to jB...@googlegroups.com
you should always use programs like GET.LOCAL.REF which will give you
the position of the Local Ref, which you can substitute for the local
ref pos

Eg:

CALL GET.LOC.REF('LD.LOANS.AND.DEPOSITS','CON.ID',Y.ID.POS)

Y.ID = R.NEW(LD.LOCAL.REF)<1,Y.ID.POS>

Please note not to Hard code the Positon of the local ref or matter of
fact for any fields.

thanks
Sharath

--
"Where there is a Will, there is a Way!!!"

prabal_482

unread,
Jul 3, 2008, 5:43:23 AM7/3/08
to jBASE
thanks guys.
Reply all
Reply to author
Forward
0 new messages