cchar *ediGetFieldFmt(cchar *fmt, EdiRec *rec, cchar *fieldName) { EdiField field; field = ediGetFieldSchema(rec, fieldName); if (!field.valid) { return ""; } return ediFormatField(fmt, field); }
cchar *ediReadField(Edi *edi, cchar *fmt, cchar *tableName, cchar *key, cchar *columnName, cchar *defaultValue) { EdiField field; field = ediReadRawField(edi, tableName, key, columnName); if (!field.valid) { return defaultValue; } return ediFormatField(fmt, field); }
static cchar *formatValue(EdiField *fp, MprHash *options) { return ediFormatField(httpGetOption(options, "format", 0), fp); }