LimeReport Forum

General Category | Основное => Discussion | Обсуждение => Topic started by: Pierre udm on December 29, 2015, 03:07:44 PM

Title: suggestions in the next release
Post by: Pierre udm on December 29, 2015, 03:07:44 PM
Hello merry chrismas for all off you.
I would like to give some suggestions in the next version of limereport :
Title: Re: suggestions in the next release
Post by: Arin Alex on January 06, 2016, 01:24:21 AM
Thank you for your suggestions, we will consider them when developing future releases.
Can I clarify what do you mean by conditional formatting? LimeReport can use script and html to format output field.

Example :
Code: [Select]
$S{
var selectedItemBegin = '<span style="background:black; color:red; font-weight:bold ">';
var selectedItemEnd = '</span>';
var customer = "";
if ($D{customers.CustomerID}=="ANTON"){
  customer = selectedItemBegin+$D{customers.CustomerID}+selectedItemEnd;
} else {
  customer = $D{customers.CustomerID};
}
'<span> Customer: </span>'+customer;
}

Also you can use "THIS" to change current item properties.

Example:
Code: [Select]
$S{
var color = new QColor('#DEB887');
var font = new QFont('Times New Roman',12,false,true);
if ( $D{customers.CustomerID}=="ANTON"){
  THIS.backgroundColor = color;
  THIS.font = font;
  THIS.fontColor = QColor('red');

$D{customers.CustomerID}
}
Title: Re: suggestions in the next release
Post by: joaquim_bs on February 10, 2016, 11:41:23 AM
A little suggestion:

"Open recent" option in File, to save the user going to the same directory every day.

Title: Re: suggestions in the next release
Post by: Arin Alex on February 11, 2016, 02:28:49 PM
Ok, we'll make it.
Title: Re: suggestions in the next release
Post by: joaquim_bs on February 12, 2016, 08:46:29 PM
Another suggestion (or maybe it is already done, but I don't know how):

Set up the Connection host code, like a variable

_limeReportEngine->dataManager()->setReportVariable("session_id", session_id);

to be able to do:

Code: [Select]
_limeReportEngine = new LimeReport::ReportEngine();
_limeReportEngine->dataManager()->setDatasourceConnectionHost("my_data_source", "192.168.0.1");
if(_limeReportEngine->dataManager()->checkConnection()) {
   // preview report...
} else {
   // pop up error
}
Title: Re: suggestions in the next release
Post by: Arin Alex on February 15, 2016, 02:47:54 PM
joaquim_bs, Good idea !