Thanks!

at the moment we don't have a user list, but that's something we have to 
think about. You can also contact us per mail.

One way to save the report is using the localStorageReportKey setting (see 
https://www.reportbro.com/docs/options ), e.g.
$("#reportbro").reportBro({
    localStorageReportKey: 'myReportKey'
});

this way the report is saved on the client in local storage with given key 
when you click the save button. When the plugin is initialized the report 
is automatically loaded from local storage. This is fine for testing but in 
a real-world application you usually want to save the report in your 
application (database).

For this you can use the saveCallback option, e.g.
function saveReport() {
    var report = $('#reportbro').reportBro('getReport');

    $.ajax('<your save controller url>', {
        data: JSON.stringify(report),
        type: "PUT", contentType: "application/json",
        success: function(data) {
            ...
        },
        error: function(jqXHR, textStatus, errorThrown) {
            ...
        }
    });
}
    
$(document).ready(function() {
    $('#reportbro').reportBro({
        saveCallback: saveReport
    });
});

how you are saving the report server-side is up to you.

Alex

On Tuesday, August 29, 2017 at 3:15:52 PM UTC+2, Javier Pepe wrote:
>
> Alex
>
> The tool is very good, you have a user list for question, i am to try the 
> designer and not found howto save this.
>
> Thanks
>
> 2017-08-26 10:19 GMT-03:00 Alex <al...@jobsta.at <javascript:>>:
>
>> We created a report tool since creating pdf reports in a web application 
>> is a common problem and none of the existing solutions were optimal for us. 
>> We needed something that is easy to integrate, easy to use (to design the 
>> reports) and easy to maintain (e.g. to create new versions of an existing 
>> report template).
>>
>> https://www.reportbro.com
>>
>> The designer to create report templates is a javascript plugin which can 
>> easily be integrated in a web application. Server-side we developed a 
>> python package - which you can either download or install via pip - to 
>> create the pdf (or xlsx) file with a given report template and data. 
>> Because it's python it is easy to use in an existing web2py app.
>>
>> We appreciate any kind of feedback!
>>
>> Alex
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to