Concordion > Specification Types > Markdown >

Markdown verify-rows command

Since: Concordion 2.0.0

To run the verifyRows command, the verifyRows command is specified in the first table header column, followed by the command for that column (if any), with the commands for each column of the table specified in the table header.

Example

Markdown Resultant HTML
      
|[_check GST_ ](- "c:verifyRows=#detail:getInvoiceDetails()")[Sub Total](- "?=#detail.subTotal")|[GST](- "?=#detail.gst")|
| --------------------------------- | ---------------------: |
|                                100|                      15|
|                                500|                      75|
|                                 20|                       2|
        
<table concordion:verifyRows="#detail:getInvoiceDetails()"> <thead> <tr><th concordion:assert-equals="#detail.subTotal">Sub Total</th><th align="right" concordion:assert-equals="#detail.gst">GST</th></tr> </thead> <tbody> <tr><td> 100</td><td align="right"> 15</td></tr> <tr><td> 500</td><td align="right"> 75</td></tr> <tr><td> 20</td><td align="right"> 2</td></tr> </tbody> </table>

Using reference style links can make the Markdown source for the table more readable:

Example

Markdown Resultant HTML
|[_check GST_][][Sub Total][]|[GST][]| | -------------------------- | ----: | | 100| 15| | 500| 75| | 20| 2| [_check GST_]: - "c:verifyRows=#detail:getInvoiceDetails()" [Sub Total]: - "?=#detail.subTotal" [GST]: - "?=#detail.gst" <table concordion:verifyRows="#detail:getInvoiceDetails()"> <thead> <tr><th concordion:assert-equals="#detail.subTotal">Sub Total</th><th align="right" concordion:assert-equals="#detail.gst">GST</th></tr> </thead> <tbody> <tr><td> 100</td><td align="right"> 15</td></tr> <tr><td> 500</td><td align="right"> 75</td></tr> <tr><td> 20</td><td align="right"> 2</td></tr> </tbody> </table>

The verifyRows command also allows a strategy to be specified.

Example

Markdown Resultant HTML
|[_check GST_][][Sub Total][]|[GST][]| | -------------------------- | ----: | | 100| 15| [_check GST_]: - "c:verifyRows=#detail:getInvoiceDetails() c:matchStrategy=BestMatch" [Sub Total]: - "?=#detail.subTotal" [GST]: - "?=#detail.gst" <table concordion:verifyRows="#detail:getInvoiceDetails()" concordion:matchStrategy="BestMatch"> <thead> <tr><th concordion:assert-equals="#detail.subTotal">Sub Total</th><th align="right" concordion:assert-equals="#detail.gst">GST</th></tr> </thead> <tbody> <tr><td> 100</td><td align="right"> 15</td></tr> </tbody> </table>