sisko_ds9
24th February 2016, 22:05
I need to show a field within the DAL, it's possible? In another words, I need to invoke a display("field.xxx") within the DAL.
Ajesh
25th February 2016, 06:11
My first question is, whether the field is first disabled in the UI ?
If it is disabled and you are using DAL2 you can embed the logic in the field hook for DAL2
From Infor ERP Enterprise Programmers Guide
function boolean field.is.never.applicable(long mode)
For example
function extern domain tcbool tdsls401.cnty.is.never.applicable()
{
if condition then
dal.set.error.message("tdsls401.cnty")
|* The Field is not displayed because of the *so and so* condition and it wont displayed at all in the UI
return(true)
endif
return(false)
|* In this case the field will be enabled and this will be the default condition for the field
}
So if you want to enable the field which is already disabled you can put your condition such that the program will point to the return(false) condition and then the field will be displayed. Hope it is little clear.