Mohammad1911
21st January 2014, 11:59
Can anyone tell me about how to create and use customer defined field(CDF) for standard Session.I need all the steps like creation of CDF and how to access it

JaapJD
21st January 2014, 14:10
See "Infor Enterprise Server Administration Guide". Can be found on InforXtreme.

mjamsek
23rd January 2014, 12:37
I have problem with CDF fields (LN - FP8):

Script:

domain tcmcs.str15 sneto.nabcena


select tdipu001.*
from tdipu001
where tdipu001._index1 = {:tdsls401.item}
order by tdipu001._index1
selectdo
sneto.nabcena = tdipu001.cdf_nnc
endselect




Compile:
Error: Customer-defined field 'tdipu001.cdf_nnc' not allowed


Can anyone help me, please .:confused:

JaapJD
23rd January 2014, 13:33
Porting set 8.9a supports it. Workaround on older porting sets:

get.var(pid, "tdipu001.cdf_nnc", steno.nabcena)

mjamsek
23rd January 2014, 15:37
Thank you very much!
It works! :)

FrenkR
27th January 2014, 14:10
another easier option is that you declare extern fields as follows:

table ttisfc001 | Produciton orders
table ttiedm100 | Engineering item

|CDF on tisfc001
extern domain tiqep1 tisfc001.cdf_dpnq
extern domain tiqep1 tisfc001.cdf_dsnq
|CDF on tiedm100
extern domain tiqep1 tiedm100.cdf_dpnq
extern domain tiqep1 tiedm100.cdf_dsnq

|copy-ing cfd-s from one to another table (using user exit funciton)

function void upadteNumbers(){
tisfc001.cdf_dpnq = 0
tisfc001.cdf_dsnq = 0

if not isspace(tisfc001.revi) then
select tiedm100.cdf_dpnq, tiedm100.cdf_dsnq
from tiedm100
where tiedm100.eitm = :tisfc001.mitm
and tiedm100.revi = :tisfc001.revi
selectdo
tisfc001.cdf_dpnq = tiedm100.cdf_dpnq
tisfc001.cdf_dsnq = tiedm100.cdf_dsnq
endselect
endif

}

Rgds,
Frenk

Mohammad1911
10th February 2014, 05:52
thanx every 1