Skip to content
Snippets Groups Projects
Commit 4bfb3884 authored by Fuentes Serna  Juan Mariano (ID SIS)'s avatar Fuentes Serna Juan Mariano (ID SIS)
Browse files

SSDM-6196 : New V3 API Sort option sortBy().fetchedFieldsScore(), js implementation + some tweaks

parent 4d78c4bf
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,9 @@ define([ "require", "stjs", "as/dto/common/fetchoptions/EntitySortOptions", "as/
return this.getOrCreateSortingWithParameters(fields.FETCHED_FIELDS_SCORE, parameters);
};
prototype.getFetchedFieldsScore = function() {
return this.getSorting(fields.FETCHED_FIELDS_SCORE);
};
prototype.type = function() {
return this.getOrCreateSorting(fields.TYPE);
};
......
......@@ -57,6 +57,11 @@ public class EntityWithPropertiesSortOptions<OBJECT extends ICodeHolder & IPermI
return getOrCreateSortingWithParameters(FETCHED_FIELDS_SCORE, parameters);
}
public SortOrder getFetchedFieldsScore()
{
return getSorting(FETCHED_FIELDS_SCORE);
}
public SortOrder type()
{
return getOrCreateSorting(TYPE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment