rahul ingale
7th September 2018, 09:26
how can i get description for CDF field to which i can use in message.

tmannais
7th September 2018, 10:23
Please elaborate and explain your situation with as much detail as possible; so that it is easier for other people to be able to help you more efficiently.

rahul ingale
7th September 2018, 10:37
There is CDF field which is having description as port of landing.
i want to use this get description in message.
message would be port of landing is not valid.
message is %S us not valid.
string parameter should be substitute with CDF field description.

Ajesh
7th September 2018, 11:20
Syntax:
function string tt.field.desc (string field(17), ref string desc() mb)

Description

This retrieves information about a specified table field. It is returned, and optionally also stored in the desc argument. (The optional argument is only present for backwards compatibility.)


Arguments
string field(17) The field name.

ref string desc() mb This returns the field description in the user's current language.


Return values
The description is returned.

Context
This function is implemented in the 4GL Tools and can be used in all script types.

rahul ingale
11th September 2018, 15:21
i tried but it give blank string only.

Ajesh
11th September 2018, 15:23
Whats the exact command which you gave?

rahul ingale
12th September 2018, 07:23
domain tcmcs.str100m label.desc
tt.field.desc("whwmd000.cdf_cdun", label.desc)

This is the cdf field which i have created in whwmd000.
label.desc is still not filled.
i have created table extension for whwmd000 and in is valid hook CDF field
i have called this function.

JaapJD
12th September 2018, 10:01
If you have a label linked to the CDF, KB 1924020 may apply.

rahul ingale
12th September 2018, 12:37
No.i have not used label while creating CDF.i directly assign description field value.

rahul ingale
12th September 2018, 14:16
I check today again.it is coming now.maybe i miss something earlier.