The FIELDNAME field function returns the name of a given field.
FIELDNAME returns the name of the field identified by source_field_reference as a character value. If the parameter identifies a nonexistent field, NULL is returned.
This function does not show any namespace information; this must be obtained by a separate call to the FIELDNAMESPACE function.
SET X=FIELDNAME(InputBody.*[<]);
The
following ESQL sets Y to null: SET Y=FIELDNAME(InputBody.F1.*[<]);
SET Z=FIELDNAME(InputBody.*[<].*[<]);
DECLARE ns NAMESPACE 'urn:nid:xxxxxx';
SET Y=FIELDNAME(InputBody.ns:F1.*[<]);