Entity display format and multiple lines

Is there any way to display more entity information on new lines?

new line breaks
\r
\n
\r\n

don’t work

<br/> does but it messes up state display:

[Name] [Phone]<br/>[Address]
image

[Name] [Phone]<br/>[Address]<br/>
image

Yes, I noticed this too with something new I was working on in 5.3.0 and 5.3.6.

I thought this was just an issue on my side but apparently its not.

2 Likes

You’re a star! Thanks so much.

So whats different? :sweat_smile: Using <linebreak/> instead of <br/>?


<linebreak/>            : forces a NewLine (NL)
<br/>                   : stops auto-NL in Ticket Lister, fine-tune with <br/>
3 Likes

@Jesse I changed Entity display format since whenever Entity selected its crashes and closes, restored the backup still crashes need help asap detailed log below
[General Info]

Application: SambaPOS
Version: 5.3.6
Region: en
DB: SQ
Machine: SERVER
User: Server
Date: 15/02/2022
Time: 10:02 pm

User Explanation:

Server said “”

[Exception Info 1]

Top-level Exception
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
Stack Trace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type: System.ArgumentException
Message: ‘EntitySearch_A/C_Search_1_Customer_Name’ is not a valid value for property ‘Name’.
Source: WindowsBase
Stack Trace: at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at Samba.Presentation.Common.GridLayoutManager.Restore(GridControl dataGrid, String key, Boolean autoSave)
at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySearchView.viewModel_SelectedAccountTypeChanged(Object sender, EventArgs e) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySearchView.xaml.cs:line 47
at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySearchViewModel.InvokeSelectedEntityTypeChanged(EventArgs e) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySearchViewModel.cs:line 37
at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySearchViewModel.set_SelectedEntityType(EntityType value) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySearchViewModel.cs:line 219
at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySearchViewModel.<>c__DisplayClass132_0.b__0() in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySearchViewModel.cs:line 469
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at Samba.Presentation.ClientLibrary.Modules.BasicReports.ReportExplorerViewModel.<.ctor>b__14_1(EventParameters x) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\BasicReports\ReportExplorerViewModel.cs:line 84
at Microsoft.Practices.Prism.Events.EventSubscription1.InvokeAction(Action1 action, TPayload argument)
at Microsoft.Practices.Prism.Events.EventSubscription1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments) at Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments) at Microsoft.Practices.Prism.Events.CompositePresentationEvent1.Publish(TPayload payload)
at Samba.Presentation.Services.Common.ExtensionMethods.PublishCallbackEvent(String eventTopic, Action callback)
at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySearchViewModel.Refresh(Int32 entityType, String stateFilter, OperationRequest1 currentOperationRequest) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySearchViewModel.cs:line 466 at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySwitcherViewModel.ActivateEntitySearcher(EntityScreen entityScreen) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySwitcherViewModel.cs:line 293 at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySwitcherViewModel.ActivateEntityScreen(EntityScreen entityScreen) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySwitcherViewModel.cs:line 258 at Samba.Presentation.ClientLibrary.Modules.EntityModule.EntitySwitcherViewModel.<.ctor>b__27_1(EventParameters1 x) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\EntityModule\EntitySwitcherViewModel.cs:line 88
at Microsoft.Practices.Prism.Events.EventSubscription1.InvokeAction(Action1 action, TPayload argument)
at Microsoft.Practices.Prism.Events.EventSubscription1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments) at Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments) at Microsoft.Practices.Prism.Events.CompositePresentationEvent1.Publish(TPayload payload)
at Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)


[Assembly Info]

mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Samba.Services, Version=5.3.7816.39267
Samba.Domain, Version=5.3.7816.39266
Samba.Infrastructure.Data, Version=5.3.7816.39266
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=5.3.7816.39270
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v17.2, Version=17.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v17.2, Version=17.2.13.0
DevExpress.Xpf.Grid.v17.2.Core, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Infrastructure, Version=5.3.7816.39262
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=5.3.7816.39267
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=5.3.7816.39263
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
NCalc, Version=1.3.8.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
WindowsInput, Version=1.0.4.0


[System Info]

Operating System
-Microsoft Windows 10 Pro
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = 780
–FreePhysicalMemory = 10871952
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 10.0.19044

Machine
-SERVER
–Manufacturer = Dell Inc.
–Model = OptiPlex XE2
–TotalPhysicalMemory = 17080889344
–UserName = SERVER\Server

You named a widget with an invalid name. Probably the /

1 Like

entity field name is customer name , i was using this since 4 years , even tried to with account name but same issue .

I am saying the widget is named this and its invalid.

@jesse, Thank you deleted entity screen layout file and entity screen then added entity screen works now .