Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eXpand.Search #287

Closed
CWolffIF opened this issue Jan 5, 2019 · 3 comments
Closed

eXpand.Search #287

CWolffIF opened this issue Jan 5, 2019 · 3 comments

Comments

@CWolffIF
Copy link
Member

CWolffIF commented Jan 5, 2019

Hi Tolis,

is there a documentation about the eXpand.Search Modul (from the eXpand.System Modul)? I like to understand the possibilities of the Modul and the paramters to set in den Moduleditor.

In one of my projects (but only in one) I go an Error when using the Search-Button from the DetailView. But I don´t really understand the options to set.

iXISXRM.Win.exe Error: 0 : 05.01.19 14:04:15.611 ================================================================================
The error occurred:

Type:       NullReferenceException
Message:    Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Data:       0 entries
Stack trace:

bei Xpand.ExpressApp.Win.SystemModule.SearchFromDetailViewController.SearchActionOnExecute(Object sender, SimpleActionExecuteEventArgs simpleActionExecuteEventArgs) in D:\a\1\s\Xpand\Xpand.ExpressApp\Xpand.ExpressApp.Win\SystemModule\SearchFromDetailViewController.cs:Zeile 16.
bei DevExpress.ExpressApp.Actions.SimpleActionExecuteEventHandler.Invoke(Object sender, SimpleActionExecuteEventArgs e)
bei DevExpress.ExpressApp.Actions.SimpleAction.RaiseExecute(ActionBaseEventArgs eventArgs)
bei DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)
InnerException is null

@apobekiaris
Copy link
Member

is there a documentation about the eXpand.Search Modul (from the eXpand.System Modul)?

I understand the importance of some basic at least documentation and examples. So at the moment I am focusing or packaging the framework in smaller nuggets where you will find what you need see the Packages project. You welcome to participate if you like.

Now digging the source on this exception first it leads to

var propertyEditor = ((DetailView)View).GetItems<PropertyEditor>().Single(editor => editor.PropertyName == SearchAbleMemberInfos.ToList()[0].Name);

where the only possible NullReference could be in SearchAbleMemberInfos which is declared in base class and assigned at

_searchAbleMemberInfos = detailView.Model.Items.OfType<IModelPropertyEditorSearchMode>().Where(
mode => mode.SearchMemberMode == SearchMemberMode.Include).Select(searchMode => View.ObjectTypeInfo.FindMember(((IModelPropertyEditor)searchMode).ModelMember.Name));

This line tells us the the View.ObjectTypeInfo.FindMember returns null, so you need to question if this check holds
mode.SearchMemberMode == SearchMemberMode.Include

@apobekiaris apobekiaris removed their assignment Jan 5, 2019
@apobekiaris
Copy link
Member

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.

@apobekiaris apobekiaris reopened this Feb 28, 2019
@expand expand closed this as completed Apr 30, 2019
@expand
Copy link
Member

expand commented Apr 30, 2019

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants