Documentation to Convert class and others
Posted: Fri Oct 12, 2018 7:06 pm
By chance, I discovered in a post that it is possible to convert a date field in the JSON format, for example, {"dateField": "2017-10-12T09: 00: 01"}, in the Date data type of Reports.JS using the funciton Convert.ToDateTime (source.dateField), but this was by chance. Where do I find information about the Convert class and others I can use?
Convert.ToDateTime does not exist in the documentation (User Manual, Programming Manual and Help Menu in designer). However, in the class documentation, Convert.toDateTime (in lower case), which does not work in Report.JS Designer. In addition, I tested other classes of documentation that did not work. Where can these classes be used?
Text expressions I tried to use:
- DateTime (https://admin.stimulsoft.com/documentat ... isleapyear):
{DateTime.isLeapYear (2018)}
- Char (https://admin.stimulsoft.com/documentat ... ml#isdigit):
{Char.isDigit ("d")} // generate error
- Environment (https://admin.stimulsoft.com/documentat ... ml#newline):
{Environment.newLine ()} // generate error
Convert.ToDateTime does not exist in the documentation (User Manual, Programming Manual and Help Menu in designer). However, in the class documentation, Convert.toDateTime (in lower case), which does not work in Report.JS Designer. In addition, I tested other classes of documentation that did not work. Where can these classes be used?
Text expressions I tried to use:
- DateTime (https://admin.stimulsoft.com/documentat ... isleapyear):
{DateTime.isLeapYear (2018)}
- Char (https://admin.stimulsoft.com/documentat ... ml#isdigit):
{Char.isDigit ("d")} // generate error
- Environment (https://admin.stimulsoft.com/documentat ... ml#newline):
{Environment.newLine ()} // generate error