frenny
7th November 2015, 06:41
hello ,
How Can i use display field in dialog Box for which value if derived from input field of same Dialog Box?

for ex, i would like to display name of Employee ,which i have mention in input field of same dialog box.

sam291091
7th November 2015, 07:40
Hi
you can try following code:
dialog.add.field(dlg, "dsgn.psno", "Enter Employee No : ",DLG_FIELD_LENGTH,12,DLG_ZOOM_PROG,"ltxxx0501m000",DLG_ZOOM_RETURN,"ltxxx001.psno", DLG_FIELD_CHECK,"dsgn.psno.check.input")
dialog.add.field(dlg,"name","",DLG_FIELD_STATE,READONLY )
ret1 = dialog.show(dlg)

Functions:
function extern long dsgn.psno.check.input()
{
get.var(pid,"dsgn.psno",dsgn.psno)
select ltxxx001.name
from ltxxx001
where ltxxx001._index1 = {:dsgn.psno}
as set with 1 rows
selectdo
name = ltxxx001.name
dialog.refresh.field(dlg,"name")
selectempty
Message("Please select Valid Emp No")
endselect

return(true)
}

patvdv
11th November 2015, 17:06
Please do not delete threads where other members have posted a reply to your original question.

sam291091
14th November 2015, 06:12
Hi patvdv,
Who has delete this threads ?