DictionaryForumContacts

 rostic

link 11.11.2008 12:33 
Subject: all the records are implicitly accepted
Помогите, пожалуйста, с последним предложением разобраться. Никак не получается его сформулировать. Это инструкция по созданию поднаборов данных.

JasperReports permits the use of a scriptlet to perform special calculations on a subdataset’s records in a way similar to that provided for the main report. If you need it, you can set the name of your scriptlet class when you create your new subdataset.
Finally, you can set a filter expression to select which records should be used by your subdataset.
This expression must return a Boolean object. A blank filter expression is not considered by iReport, and the final result is that all the records are implicitly accepted.

Мой попытка:
Это выражение должно возвращать объект Boolean. Пустое выражение фильтра не учитывается iReport, и, в результате, все записи полностью принимаются.

Заранее спасибо.

 Idyllik

link 11.11.2008 13:00 
а почему вы проигнорировали перевод слова Boolean?
Boolean object - булев/логический объект.
..... и в результате все записи принимаются по умолчанию.

 rostic

link 11.11.2008 13:08 
Спасибо, Idyllik, за замечание. Я просто просмотрела разные документы и там Boolean просто оставлен на англ., поэтому я и решила поступить точно так же. И спасибо за исправление последней части. Именно она вызывала у меня сомнения больше всего:)

 rostic

link 11.11.2008 13:21 
Еще один вопрос. Как можно назвать Dataset Runs? На сайте JasperReports есть глоссарий и там дан вариант "выполнить запрос". http://jasperforge.org/jasperbabylon/langdetails.php?appid=1&lang=ru_RU
Но я так понимаю, что это не утвержденные переводы, поэтому хотела проконсультироваться.

Creating Dataset Runs

As mentioned previously, you can use a subdataset in a chart or in a crosstab. To fill the subdataset, JasperReports needs some extra information, like what JDBC connection to use to perform the subdataset SQL query, or how to set the value of a specific subdataset parameter. All this information is provided using a dataset run.

A dataset run works in a way similar to the process used to connect a subreport to a master report: you can set the value of the subdataset parameters using expressions containing main report objects (like fields, variables, and parameters), define a parameters map to set values for the
subdataset parameters at runtime, and finally define the connection or datasource that will be used by the subdataset to get its data.

 

You need to be logged in to post in the forum

Get short URL | Photo