Page 1 of 1

Documentation to Convert class and others

Posted: Fri Oct 12, 2018 7:06 pm
by galexandre
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

Re: Documentation to Convert class and others

Posted: Sun Oct 14, 2018 9:04 am
by Lech Kulikowski
Hello,

In the JS version, you can use the DateTime.Parse() method.

Thank you.

Re: Documentation to Convert class and others

Posted: Tue Oct 16, 2018 9:58 am
by galexandre
Ok, but where I find reference to this and others?

Re: Documentation to Convert class and others

Posted: Wed Oct 17, 2018 1:01 pm
by Lech Kulikowski
Hello,

At the current moment, not the last version of class references is present on the site.

We will try to update it in near future.

Thank you.