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 - maurosanjo

Pages: [1]
1
Hello Arin,

Unfortunately the subdetail won't do the trick, they appear for each row on the data band, what I want is only once per group so GroupHeader would be the one. The fields will be customized by the user regarding visibility.

Thanks for your kind attention.

2
Hello Arin,

There is no other way of achieving that?

Also, do you have a development documentation to ease the study of LimeReport sources? This would help code contributions :)

Regards!

3
Discussion | Обсуждение / Empty field on a band with auto height
« on: December 06, 2016, 05:13:19 PM »
Hello Arin,

Still investigating LimeReport hehehe  :D

In previous posts here regarding the option to supress empty fields, it is only for warnings or for also the space that geometry of the field takes on the report?

I did some testing and the field is still present but empty. Is there any way to supress the field so the band with autoheight that contains it will have its height decreased?

Regards

4
Discussion | Обсуждение / Re: Image content as variable
« on: December 06, 2016, 02:08:55 PM »
Oh man, so sorry, it was a problem on my resource images. Indeed it is working :P Thanks

5
Discussion | Обсуждение / Re: Image content as variable
« on: December 05, 2016, 08:14:15 PM »
Hello,

Thanks. I tried that, its not as clean as what you did on your categories example. Using Image we can take advantage of scale, keepAspectRation, etc.

Something is strange, if I put a Image on Data Band and set Resource and Field on it, on the slot & signal mechanism I can set a QImage to data and it works fine. But if I put the Image on the group header, of footer, no matter if I put it on columnData or not, it gets fetched (more than once by the way) on the callback function but setting QImage to data (QVariant) does not work. Is it a bug or a limitation?

Regards

7
Sorry Arin, on my sample I forgot to put a test group field. That is working correctly.

My question is regarding custom data ON the header and footer that are not coming from DataBase data sources. How do I implement the GetCallBackData slot so I can get a request to set the values of the fields on the group header and footer?

See my sample code below, in my sample I sent you, I have four columns of data and 1 field on group header and 2 on group footer. But this way I only get a call for the 4 data fields and the groupField. I don't know if I could make myself clear, please let me know if you did not understand  ;)

Code: [Select]
void ReportsGenerator::LRGetCallbackData2(LimeReport::CallbackInfo info, QVariant &data) {
    switch (info.dataType) {
        case LimeReport::CallbackInfo::RowCount:
            qDebug() << "P2 RowCount - i" << info.index << " - " << info.columnName << " - r " << this->_currentRow;
            data = 4;
            break;
        case LimeReport::CallbackInfo::ColumnCount:
            qDebug() << "P2 ColumnCount - i" << info.index << " - " << info.columnName << " - r " << this->_currentRow;
            data = 4;
            break;
        case LimeReport::CallbackInfo::IsEmpty:
            qDebug() << "P2 IsEmpty - r " << this->_currentRow << " - " << info.columnName;
            data = true; //!ds->first();
            break;
        case LimeReport::CallbackInfo::ColumnHeaderData: {
            switch(info.index) {
                case 0:
                    data = "Name1";
                    break;
                case 1:
                    data = "Value1";
                    break;
                case 2:
                    data = "Name2";
                    break;
                case 3:
                    data = "Value2";
                    break;
            }
            qDebug() << "P2 HeaderData - " << info.index << " - " << data.toString();
            break;
        }
        case LimeReport::CallbackInfo::ColumnData:
            qDebug() << "P2 Requested - i - " << info.index << " - " << info.columnName << " - r " << this->_currentRow;
            if (info.columnName == "SamplesGroup")
                data = "Resultados Gerais";
            else {
                data = "Data";
            }
            break;
        default: break;
    }
}

8
Hello Arin,

There is a sample page I was testing on version 1.4. Imagine I want to set a differente value for each field on group header and footer bands, not using DB sources, just the signal and slot mechanism you called callback.

The names of the fields in $D are not used in this signal & slot mechanism right? I was testing different patterns.

Regards

[вложение удалено администратором]

9
I made a code to study how the callback mechanism works with diferrent band arrangements.

When we have a Data band with a Group Header and with a Group Footer. We put, for instance, 4 fields on data band, that will correspond to columns of each row data. So on LimeReport::CallbackInfo::ColumnCount we set the number of rows = 4.
But if I put text fields in Group Header or Footer using $D{}, the data never gets fetched on getCallbackData.

How can it be done imagining we want different values for each Group Header and Footer fields.

Regards

10
Discussion | Обсуждение / Image content as variable
« on: December 01, 2016, 11:34:30 PM »
Hi there,

In the way LimeReport was designed the image can be static and also associated with a DataSoure.Field. But imagine we have a custom report in which we need to programatically change the company logo.
Is there any way?
If not, would be interesting if we could treat the image as a text field and set a Report Variable to it?

Congrats on the Report Designer tool, the best look'n feel and usability I found among Qt report solutions  :D
Regards

Pages: [1]