jsusen
(Jindřich Sušeň)
January 3, 2022, 9:22am
1
It seems like the problem is caused by missing attribute “HideNavigationPanel” in the xml. This means the problem is some where in the server because the workqueue items are completely generated by the server.
tvavrda
(Tomáš Vavrda)
January 7, 2022, 2:57pm
3
So it should come right here in memoRenderData
.
And when we are there, it could also have PanelTitle
set to memoColumn.Caption
in order to get a configurable navigation title for a mobile view.
AddColumn(entity, "RecordCreated", ref memoColumn,
ref lastPos, propertiesElement, propertyNamesElement, table, null);
SetUserConfig(doc, listElement, wqc.DefaultPanelConfiguration, queueId, Guid.Empty);
if(memoColumn != null)
{
XmlElement memoElement = doc.CreateElement("UIElement");
children.AppendChild(memoElement);
UIElementRenderData memoRenderData = new UIElementRenderData();
memoRenderData.DataMember = "WorkQueueEntry";
AsPanelBuilder.Build(memoElement, memoRenderData, queueId.ToString(), "memoPanel1",
table, dataSources, table.PrimaryKey[0].ColumnName, false, Guid.Empty, false);
memoElement.SetAttribute("Id", "memoPanel");
memoElement.SetAttribute("ModelInstanceId", "65DF44F9-C050-4554-AD9A-896445314279");
memoElement.SetAttribute("IsRootGrid", XmlConvert.ToString(false));
memoElement.SetAttribute("IsRootEntity", XmlConvert.ToString(true));
memoElement.SetAttribute("IsPreloaded", XmlConvert.ToString(true));
memoElement.SetAttribute("ParentId", queueId.ToString());
tvavrda
(Tomáš Vavrda)
January 11, 2022, 4:05pm
6
Current solution introduces a new XML attribute. It would be enough to set a property of memoRenderData
, in my opinion.