Skip to content

Commit

Permalink
CollectionField
Browse files Browse the repository at this point in the history
contain filter in place of start on display name in dnn user data source
  • Loading branch information
Sacha Trauwaen committed May 16, 2023
1 parent 8881b2d commit fa0f751
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OpenContent/Components/Datasource/DnnUsersDataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public override IDataItems GetAll(DataSourceContext context, Select selectQuery)

if (ruleDisplayName != null)
{
string displayName = ruleDisplayName.Value.AsString + "%";
string displayName = "%"+ruleDisplayName.Value.AsString + "%";
users = UserController.GetUsersByDisplayName(context.PortalId, displayName, pageIndex, pageSize, ref total, true, false).Cast<UserInfo>();
}
else
Expand Down
1 change: 1 addition & 0 deletions OpenContent/OpenContent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,7 @@
<Content Include="js\summernote\font\summernote.woff" />
<Content Include="js\swagger\fonts\DroidSans-Bold.ttf" />
<Content Include="js\swagger\fonts\DroidSans.ttf" />
<Content Include="lama\src\components\CollectionField.vue" />
<None Include="packages.config" />
<None Include="Scripts\_references.js" />
<Content Include="js\select2\select2.css" />
Expand Down
3 changes: 2 additions & 1 deletion OpenContent/js/lamaengine.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,14 @@ alpacaEngine.engine = function (config) {

} else if (config.query.type == "relation") {
var postData = {
"collection": config.query.collection,
"dataKey": config.query.dataKey,
"valueField": config.query.valueField,
"textField": config.query.textField
};
$.ajax({
//url: self.sf.getServiceRoot(self.options.dataService.module) + self.options.dataService.controller + "/" + self.options.dataService.action,
url: self.sf.getServiceRoot("OpenContent") + "OpenContentAPI" + "/" + "LookupData",
url: self.sf.getServiceRoot("OpenContent") + "OpenContentAPI" + "/" + config.query.action,
beforeSend: self.sf.setModuleHeaders,

type: "post",
Expand Down
2 changes: 1 addition & 1 deletion OpenContent/lama/dist/js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa0f751

Please sign in to comment.