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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Arin Alex

Pages: 1 ... 3 4 [5] 6 7 ... 67
61
Discussion | Обсуждение / Re: Вопросы новичка
« on: February 04, 2022, 04:12:45 PM »
leoneii,
Quote
Еще, еще вопрос/просьба -дайте родительного падежа скрипт))
Тут я не понял про что вопрос :)

Quote
Как сумму (SUM) по таблице узнать, если нет DataBand на этой странице отчета?
1. Передать сумму из приложения 
2. Написать скрипт который сумму будет считать
3. Если есть дата DataBand на другой странице, можно сумму прикопать в переменную, потом использовать :)

Походу нужен вебинар как пользоваться скриптами в лайме :)
 

62
Пофиксил, пушнул можно проверять 

63
Discussion | Обсуждение / Re: Multiple Databands side by side
« on: January 26, 2022, 01:02:00 AM »
Quote
What puzzles me a bit, is that the databand datasource is not required to get the correct number of iterations to fetch all rows.
The number of rows are different.
I can explain what happens in this report :)
I have selected the biggest datasource via variable "base_ds".
Then I just move the current row pointer in the other datasources via script and fix if datasource at the end in the map "datasources".
Then $S{if (!datasources.get("d1")) $D{d1.1}; else ""} checks if datasource has data to render or not.
No tricks, just JavaScript :)

Quote
Is this API also for C++ available ? (not the lookup, the access to the classes/instances.)
No, limereport interacts only with objects that are registered in the script engine scope.

64
Discussion | Обсуждение / Re: Multiple Databands side by side
« on: January 18, 2022, 09:25:37 PM »
Look at this example, I think it can help in your case

65
Discussion | Обсуждение / Re: Multiple Databands side by side
« on: January 17, 2022, 09:31:00 PM »
Hi!
Thank you for your kind words about my project!
If I understood you right you want something like shown in the attached picture, isn't it?

66
Discussion | Обсуждение / Re: Show image only on last page
« on: January 08, 2022, 02:44:43 PM »
Hi, and happy new year too!
Could you send me a sample of how you built a report?

67
Discussion | Обсуждение / Re: Show image only on last page
« on: December 24, 2021, 02:51:33 AM »
Hi!
You can place the image on the ReportFooter band.   

68
Приветствую!
Тяжело сказать :) 
Попробуйте клирануть Ваш проект и лайму перед сборкой.

69
Requests | Пожелания / Re: LRdesigner error
« on: December 08, 2021, 01:52:54 AM »
Hi!
Please, check qsqlmysql dependency often libmysql has another version than qsqlmysql is needed.

70
Hi!
The simplest way to add an external data source is to realize one slot callback data source.
Just do something like this:
Code: [Select]
void MainWindow::slotOneSlotDS(LimeReport::CallbackInfo info, QVariant &data)
{
    QStringList columns;
    columns << "Name" << "Value" << "Image";
    switch (info.dataType) {
            case LimeReport::CallbackInfo::RowCount:
                data = 4;
                break;
            case LimeReport::CallbackInfo::ColumnCount:
                data = columns.size();
                break;
            case LimeReport::CallbackInfo::ColumnHeaderData: {
                data = columns.at(info.index);
                break;
            }
            case LimeReport::CallbackInfo::ColumnData:
                qDebug() << info.index <<info.columnName;
                if (info.columnName == "Image")
                    data = QImage(":/report//images/logo32");
                else {
                    data = info.columnName+" "+QString::number(info.index);
                }
                break;
            default: break;
        }
}

.....

callbackDatasource = report->dataManager()->createCallbackDatasource("oneSlotDS");
connect(callbackDatasource, SIGNAL(getCallbackData(LimeReport::CallbackInfo,QVariant&)),
            this, SLOT(slotOneSlotDS(LimeReport::CallbackInfo,QVariant&)));

 

71
atom63, Приветствую, на данный момент допиливаю LimeReport под Qt6, как закончу будет релиз :)

72
Discussion | Обсуждение / Re: GroupHeader и sum
« on: September 16, 2021, 07:20:25 PM »
Внутри агрегатной функции использование $D{} допустимо :)
Я имел ввиду комбинацию  $D{} и групповой функции. Данная комбинация приведет к неправильному захвату значений, как и было в случае захвата значения с2 вместо с1. 

73
Discussion | Обсуждение / Re: GroupHeader и sum
« on: September 16, 2021, 05:11:35 PM »
Конструкции вида $D{} $V{}

74
Discussion | Обсуждение / Re: GroupHeader и sum
« on: September 16, 2021, 12:10:25 PM »
Вроде исправил :) Можете проверять. Единственно в поле с групповой функцией не должно быть конструкций захватывающих данные.   

75
Discussion | Обсуждение / Re: GroupHeader и sum
« on: September 15, 2021, 01:49:50 PM »
Приветствую.
А можете мне прислать шаблон отчета и тестовые данные в sqlite?

Pages: 1 ... 3 4 [5] 6 7 ... 67