Skip to content

Commit

Permalink
Nest the table header row inside of the objects repetition. This enab…
Browse files Browse the repository at this point in the history
…les access to the first object when rendering the table header, which in turn allows for displayPropertyKeys rules that depend on an object instance.
  • Loading branch information
fbarthez committed Sep 22, 2015
1 parent 270153e commit 5a76430
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<webobject name = "ObjectTable">
<webobject name = "ObjectTableHeaderRow">
<webobject name = "HasLeftActionsConditional"><th class="ActionCell LftActionCell">&nbsp;</th></webobject>
<webobject name = "SectionRepetition">
<webobject name = "ColumnLabelRepetition">
<webobject name = "IsNotOmitted">
<webobject name = "AttColumnHeader">
<webobject name = "TableHeaderSwitchComponent"/>
<webobject name = "ObjectsRepetition">
<webobject name = "IsRenderTableHeader">
<webobject name = "ObjectTableHeaderRow">
<webobject name = "HasLeftActionsConditional"><th class="ActionCell LftActionCell">&nbsp;</th></webobject>
<webobject name = "SectionRepetition">
<webobject name = "ColumnLabelRepetition">
<webobject name = "IsNotOmitted">
<webobject name = "AttColumnHeader">
<webobject name = "TableHeaderSwitchComponent"/>
</webobject>
</webobject>
</webobject>
</webobject>
<webobject name = "HasRightActionsConditional"><th class="ActionCell RtActionCell">&nbsp;</th></webobject>
</webobject>
</webobject>
<webobject name = "HasRightActionsConditional"><th class="ActionCell RtActionCell">&nbsp;</th></webobject>
</webobject>
<webobject name = "ObjectsRepetition">
<webobject name = "ListTableRow">
<webobject name = "HasLeftActionsConditional">
<td class="ActionCell LftActionCell">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ ObjectsRepetition: WORepetition {
eoSupport = true;
}

IsRenderTableHeader : ERXEqualConditional {
value1 = rowIndex;
value2 = 0;
}

LeftAction: WOSwitchComponent {
WOComponentName = d2wContext.componentName;
localContext = d2wContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<webobject name = "ObjectTable">
<webobject name = "ObjectTableHeaderRow">
<webobject name = "HasLeftActionsConditional"><th class="ActionCell LftActionCell">&nbsp;</th></webobject>
<webobject name = "SectionRepetition">
<webobject name = "ColumnLabelRepetition">
<webobject name = "IsNotOmitted">
<webobject name = "AttColumnHeader">
<webobject name = "TableHeaderSwitchComponent"/>
<webobject name = "ObjectsRepetition">
<webobject name = "IsRenderTableHeader">
<webobject name = "ObjectTableHeaderRow">
<webobject name = "HasLeftActionsConditional"><th class="ActionCell LftActionCell">&nbsp;</th></webobject>
<webobject name = "SectionRepetition">
<webobject name = "ColumnLabelRepetition">
<webobject name = "IsNotOmitted">
<webobject name = "AttColumnHeader">
<webobject name = "TableHeaderSwitchComponent"/>
</webobject>
</webobject>
</webobject>
</webobject>
<webobject name = "HasRightActionsConditional"><th class="ActionCell RtActionCell">&nbsp;</th></webobject>
</webobject>
</webobject>
<webobject name = "HasRightActionsConditional"><th class="ActionCell RtActionCell">&nbsp;</th></webobject>
</webobject>
<webobject name = "ObjectsRepetition">
<webobject name = "ListTableRow">
<webobject name = "HasLeftActionsConditional">
<td class="ActionCell LftActionCell">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ ObjectsRepetition: WORepetition {
eoSupport = true;
}

IsRenderTableHeader : ERXEqualConditional {
value1 = rowIndex;
value2 = 0;
}

LeftAction: WOSwitchComponent {
WOComponentName = d2wContext.componentName;
localContext = d2wContext;
Expand Down

0 comments on commit 5a76430

Please sign in to comment.