multiselection printing problem

60 views
Skip to first unread message

bourah...@gmail.com

unread,
Nov 15, 2022, 9:10:15 AM11/15/22
to Jam.py Users Mailing List
Hello I can't print in multiselection  

def on_generate(report):
    exploitants = report.task.exploitants.copy()
    if report.id.value:exploitants.set_where({'id__in': report.id.value})
    exploitants.set_order_by('numero_dossier')
    exploitants.open()

    for cust in exploitants  :
       
        nom_arabe = cust.nom_ara.display_text
        prenom_arabe = cust.prenom_ara.display_text
        numero_nationall = cust.nom_ara.display_text + '/' + cust.code_act.display_text
        naissance = cust.id_cna_jour.display_text
        adresse_exploitation = cust.adresse_exploitation.display_text
        activite = cust.activite.display_text
        report.print_band('detail', locals())

les parametres
paramtres.png
voila ma table

explt.png

et merci beaucoup

Andrew Yushev

unread,
Nov 15, 2022, 2:47:55 PM11/15/22
to bourah...@gmail.com, Jam.py Users Mailing List
Hi, can you explain what the problem is?
Are there some exceptions?

вт, 15 нояб. 2022 г. в 17:10, bourah...@gmail.com <bourah...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/54ed91a4-6e50-4fc6-bf6a-19ef685e8021n%40googlegroups.com.

Andrew Yushev

unread,
Nov 15, 2022, 9:01:23 PM11/15/22
to bourah...@gmail.com, Jam.py Users Mailing List
I think I understood the problem.
The parameter must be as follows

image.png

and you must to pass it on the client side, for example, this way

function print(item) {
    task.customers_report.customers.value = item.selections;
    task.customers_report.print(false);
}

Please see the Customer list report in the demo application.

вт, 15 нояб. 2022 г. в 22:47, Andrew Yushev <yush...@gmail.com>:

Andreas Schneider

unread,
Jun 12, 2023, 11:52:43 AM6/12/23
to Jam.py Users Mailing List
can I hijack this conversation?

I have the same problem, but I need a separate saved pdf-report-file for each dataset

Dean D. Babic

unread,
Jun 13, 2023, 12:50:13 AM6/13/23
to Jam.py Users Mailing List
Hi, 
I think it was discussed in here, can't remember exactly.



Dean D. Babic

unread,
Jun 13, 2023, 1:05:36 AM6/13/23
to Jam.py Users Mailing List

Andreas Schneider

unread,
Jun 13, 2023, 3:13:04 AM6/13/23
to Jam.py Users Mailing List

Thanks. I actually thought something like that... but I get stuck...
is the .generate() (python)-function  the right way to start the report? And how to set params
Reply all
Reply to author
Forward
0 new messages