Skip to content
Snippets Groups Projects
Commit 3fa3ccb1 authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

#1063997 Favorites: Filter Exporttemplate by Favorites

parent adf1bb7e
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,16 @@
<recordfield>EXPORTTEMPLATE.FIELDDELIMITER</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
<filterExtensions>
<filterExtension>
<name>Favorite_filter</name>
<title>Favoritegroup</title>
<contentType>TEXT</contentType>
<filterValuesProcess>%aditoprj%/entity/ExportTemplate_entity/recordcontainers/db/filterextensions/favorite_filter/filterValuesProcess.js</filterValuesProcess>
<filterConditionProcess>%aditoprj%/entity/ExportTemplate_entity/recordcontainers/db/filterextensions/favorite_filter/filterConditionProcess.js</filterConditionProcess>
<filtertype>BASIC</filtertype>
</filterExtension>
</filterExtensions>
</dbRecordContainer>
</recordContainers>
</entity>
import("Favorites_lib");
import("system.result");
import("Sql_lib");
var favoFilterCond = newWhere();
var rowIds = FavoritesUtil.getRowIdsOfFavoriteGroup();
for(i = 0; i < rowIds.length; i++)
favoFilterCond.or("EXPORTTEMPLATE.EXPORTTEMPLATEID", rowIds[i], SqlBuilder.EQUAL());
result.string(favoFilterCond.toString());
\ No newline at end of file
import("Favorites_lib");
import("system.result");
result.object(FavoritesUtil.getUserFavoriteGroups());
\ No newline at end of file
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