Skip to content

Commit

Permalink
ExcelImport: Add Column to display the Regex replacement for easy tesโ€ฆ
Browse files Browse the repository at this point in the history
โ€ฆt in the UI #379
  • Loading branch information
apobekiaris committed Apr 30, 2019
1 parent cbeaf56 commit 0ed6ce2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Expand Up @@ -116,7 +116,8 @@ public class ExcelColumnMap : XpandBaseCustomObject {
get => _excelColumnName;
set => SetPropertyValue(nameof(ExcelColumnName), ref _excelColumnName, value);
}

[VisibleInDetailView(false)]
public string ExcelColumnNameRegex => this.GetColumnName();

[RuleRequiredField(TargetContextIDs = ExcelImport.ImportingContext)]
[EditorAlias(Persistent.Base.General.EditorAliases.StringLookupPropertyEditor)]
Expand Down
Expand Up @@ -64,11 +64,12 @@
<ListView Id="ExcelColumnMap_ListView" HideToolBar="True">
<Columns>
<ColumnInfo Id="ExcelImport" Index="-1" />
<ColumnInfo Id="ExcelColumnName" Width="122" Index="0" />
<ColumnInfo Id="PropertyName" Width="125" Index="1" />
<ColumnInfo Id="PropertyType" Index="2" />
<ColumnInfo Id="SkipEmpty" Index="3" />
<ColumnInfo Id="ImportStrategy" Index="4" Width="97" />
<ColumnInfo Id="ExcelColumnNameRegex" Width="122" Index="0" />
<ColumnInfo Id="ExcelColumnName" Width="122" Index="1" />
<ColumnInfo Id="PropertyName" Width="125" Index="2" />
<ColumnInfo Id="PropertyType" Index="3" />
<ColumnInfo Id="SkipEmpty" Index="4" />
<ColumnInfo Id="ImportStrategy" Index="5" Width="97" />
</Columns>
<HiddenActions>
<ActionLink ActionId="New" IsNewNode="True" />
Expand Down Expand Up @@ -164,10 +165,11 @@
</DetailView>
<ListView Id="ExcelImport_ExcelColumnMaps_ListView" HideToolBar="True" AutoCommit="True" AllowEdit="True">
<Columns>
<ColumnInfo Id="ExcelColumnName" AllowEdit="False" Index="0" />
<ColumnInfo Id="PropertyName" Width="92" Index="1" />
<ColumnInfo Id="PropertyType" AllowEdit="False" Index="2" />
<ColumnInfo Id="SkipEmpty" Index="3" />
<ColumnInfo Id="ExcelColumnNameRegex" Index="0" />
<ColumnInfo Id="ExcelColumnName" AllowEdit="False" Index="1" />
<ColumnInfo Id="PropertyName" Width="92" Index="2" />
<ColumnInfo Id="PropertyType" AllowEdit="False" Index="3" />
<ColumnInfo Id="SkipEmpty" Index="4" />
</Columns>
<HiddenActions>
<ActionLink ActionId="ListViewShowObject" IsNewNode="True" />
Expand Down

0 comments on commit 0ed6ce2

Please sign in to comment.