mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
heavy fields, qvalueFormatter static
This commit is contained in:
@ -67,7 +67,6 @@ public class GetAction
|
|||||||
private Optional<AbstractPostQueryCustomizer> postGetRecordCustomizer;
|
private Optional<AbstractPostQueryCustomizer> postGetRecordCustomizer;
|
||||||
|
|
||||||
private GetInput getInput;
|
private GetInput getInput;
|
||||||
private QValueFormatter qValueFormatter;
|
|
||||||
private QPossibleValueTranslator qPossibleValueTranslator;
|
private QPossibleValueTranslator qPossibleValueTranslator;
|
||||||
|
|
||||||
|
|
||||||
@ -297,6 +296,7 @@ public class GetAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
queryInput.setFilter(filter);
|
queryInput.setFilter(filter);
|
||||||
|
queryInput.setShouldFetchHeavyFields(getInput.getShouldFetchHeavyFields());
|
||||||
|
|
||||||
QueryOutput queryOutput = new QueryAction().execute(queryInput);
|
QueryOutput queryOutput = new QueryAction().execute(queryInput);
|
||||||
|
|
||||||
@ -334,13 +334,13 @@ public class GetAction
|
|||||||
|
|
||||||
if(getInput.getShouldGenerateDisplayValues())
|
if(getInput.getShouldGenerateDisplayValues())
|
||||||
{
|
{
|
||||||
if(qValueFormatter == null)
|
QValueFormatter.setDisplayValuesInRecords(getInput.getTable(), List.of(returnRecord));
|
||||||
{
|
|
||||||
qValueFormatter = new QValueFormatter();
|
|
||||||
}
|
|
||||||
qValueFormatter.setDisplayValuesInRecords(getInput.getTable(), List.of(returnRecord));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// note - shouldFetchHeavyFields should be handled by the underlying action //
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
return (returnRecord);
|
return (returnRecord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user