Returns the list RMA comments
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
@foreach (LoopItem item in GetLoop("Ecom:Rma.Comments") {
@item.GetValue("Relevant.Tag")
}
Check if the loop exists
@if (Loops.Contains("Ecom:Rma.Comments")) {
...
}
Example of usage
The following general example illustrates how to use a loop construct.
<!--@LoopStart(Ecom:Rma.Comments)-->
Check if the loop exists
<!--@If LoopDefined(Ecom:Rma.Comments)-->
...
Ecom:Rma.Comment.CreatedDate
Returns of date stamp of creation RMA comment
RAZOR
@GetDate("Ecom:Rma.Comment.CreatedDate")
Ecom:Rma.Comment.Event
Returns name of event related to RMA state
RAZOR
@GetString("Ecom:Rma.Comment.Event")
Ecom:Rma.Comment.NewState
Returns name of new state RMA
RAZOR
@GetString("Ecom:Rma.Comment.NewState")