Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: suggestions in the next release  (Read 6803 times)

Pierre udm

  • Newbie
  • *
  • Posts: 11
    • View Profile
suggestions in the next release
« 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 :
  • Conditional Formatting fields .
  • Export to DOC and XLS .
  • Merging identical lines for truplets with similar lines.
  • formatting of DateTime fields Image

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: suggestions in the next release
« Reply #1 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}
}

joaquim_bs

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: suggestions in the next release
« Reply #2 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.


Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: suggestions in the next release
« Reply #3 on: February 11, 2016, 02:28:49 pm »
Ok, we'll make it.

joaquim_bs

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: suggestions in the next release
« Reply #4 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
}

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: suggestions in the next release
« Reply #5 on: February 15, 2016, 02:47:54 pm »
joaquim_bs, Good idea !