Hi All,
QAD Dot net version : QAD Enterprise Applications 2010 SE.
I want to implement the below logic in a Dot net browse function to get the mnemonic for account type
/* GET MNEMONIC FOR ACCOUNT TYPE FROM lngd_det */
for first lngd_det where lngd_dataset = "csbd_det" and
lngd_key1 = csbd_type and lngd_key2 <> "" and
lngd_key3 = "" and lngd_key4 = "" and
lngd_field = "bk_acct_type" and
lngd_lang = global_user_lang no-lock:
end. /* FOR FIRST LNGD_DET */
if available lngd_det then do:
/* In raw mode this routine maps code to itself */
if global_lngd_raw then /********** Not working and throwing the error *** /
assign
tt_btype = lngd_key1.
else
assign
tt_btype = lngd_key2.
end.
end.
OR
for each csbd_det where csbd_det.csbd_domain = global_domain and
csbd_addr = vd_addr no-lock:
/* GET MNEMONIC FOR ACCOUNT TYPE FROM lngd_det */
{gplngn2a.i &file = ""csbd_det""
&field = ""bk_acct_type""
&code = csbd_type
&mnemonic = bk_acct_type
&label = bk_acct_type_desc}
I can write a function like
function a return char(input c as char)
for first lngd_det where lngd_dataset = "csbd_det" and
lngd_key1 = c and lngd_key2 <> "" and
lngd_key3 = "" and lngd_key4 = "" and
lngd_field = "bk_acct_type" and
lngd_lang = global_user_lang no-lock:
end. /* FOR FIRST LNGD_DET */
if available lngd_det then do:
/* In raw mode this routine maps code to itself */
if global_lngd_raw then /********** Not working and throwing the error *** /
return lngd_key1.
else
return lngd_key2.
end.
end.
end.
Should I use any .i to avoid this error. Please suggest.
QAD Dot net version : QAD Enterprise Applications 2010 SE.
I want to implement the below logic in a Dot net browse function to get the mnemonic for account type
/* GET MNEMONIC FOR ACCOUNT TYPE FROM lngd_det */
for first lngd_det where lngd_dataset = "csbd_det" and
lngd_key1 = csbd_type and lngd_key2 <> "" and
lngd_key3 = "" and lngd_key4 = "" and
lngd_field = "bk_acct_type" and
lngd_lang = global_user_lang no-lock:
end. /* FOR FIRST LNGD_DET */
if available lngd_det then do:
/* In raw mode this routine maps code to itself */
if global_lngd_raw then /********** Not working and throwing the error *** /
assign
tt_btype = lngd_key1.
else
assign
tt_btype = lngd_key2.
end.
end.
OR
for each csbd_det where csbd_det.csbd_domain = global_domain and
csbd_addr = vd_addr no-lock:
/* GET MNEMONIC FOR ACCOUNT TYPE FROM lngd_det */
{gplngn2a.i &file = ""csbd_det""
&field = ""bk_acct_type""
&code = csbd_type
&mnemonic = bk_acct_type
&label = bk_acct_type_desc}
I can write a function like
function a return char(input c as char)
for first lngd_det where lngd_dataset = "csbd_det" and
lngd_key1 = c and lngd_key2 <> "" and
lngd_key3 = "" and lngd_key4 = "" and
lngd_field = "bk_acct_type" and
lngd_lang = global_user_lang no-lock:
end. /* FOR FIRST LNGD_DET */
if available lngd_det then do:
/* In raw mode this routine maps code to itself */
if global_lngd_raw then /********** Not working and throwing the error *** /
return lngd_key1.
else
return lngd_key2.
end.
end.
end.
Should I use any .i to avoid this error. Please suggest.
Last edited: