This article will show you the avaliable helper functions to display data in meaningful ways on you report.
Returns: String with replacement commplete
Code: {ConsignmentTotalPallets(idConsignment)}
Returns: Number
Code: {ConsignmentTotalNonPallets(idConsignment)}
Returns: Number
Code: {TrimPad(string, length)}
Returns: "TEST "
Code: {TrimPadLeft(string, length, padValue)}
Returns: " TEST"
Code: {Max(str, length)}
Returns: " TESTIN"
Provides a time range an hour before and an hour have the tame passed in
Code: {HourRange(object dateTime)}
Returns: " 13:45-15:45"
This function enables you to split a string based on a character and return a specific element of that back
Code: {Split(String, Split Value, ReturnNumber)}
Example: {Split("this|is|a|test", string "|", 1)}
Returns: " this"
@Model.Date
That would output a string in the default culture date time string. For greater control, you could do the following:
@Model.DateDateTime which converts the string to a datetime object which then allows all .net functions such as @Model.DateDateTime.ToString(“dd/MM/yyyy”)
@Model.DateDateTimeUTC – same as above, but in place of the client time zone will be UTC time
@Model.EventLocationDateTime – same as above, but the timezone of the event. Only used if client has multi offices with different timezones.
Same for decimal, example @Model.Cubic would be a string, if we need to call .net functions, can convert to a decimal via:
@Model.CubicDecimal then allows things like @Model.CubicDecimal.ToString(“n3”) which would be converted to 3 decimal places with standard 1000 , format