Set url field size XLARGE; set record label field as id

This commit is contained in:
2023-04-18 13:40:53 -05:00
parent bf5273fa4d
commit a6e02ea1bf

View File

@ -103,6 +103,7 @@ public class OutboundAPILogMetaDataProvider
.withIcon(new QIcon().withName("data_object"))
.withBackendName(backendName)
.withRecordLabelFormat("%s")
.withRecordLabelFields("id")
.withPrimaryKeyField("id")
.withFieldsFromEntity(OutboundAPILog.class)
.withSection(new QFieldSection("identity", new QIcon().withName("badge"), Tier.T1, List.of("id")))
@ -142,6 +143,7 @@ public class OutboundAPILogMetaDataProvider
// limit url to 250... //
/////////////////////////
tableMetaData.getField("url").withMaxLength(250).withBehavior(ValueTooLongBehavior.TRUNCATE_ELLIPSIS);
tableMetaData.getField("url").withFieldAdornment(AdornmentType.Size.XLARGE.toAdornment());
if(backendDetailEnricher != null)
{