How I can get list of all selected doctypes?

I have the button in Menu

How I can select all necessary doctypes and send on backend?

listview.page.add_action_item(__(“MailEva”), function () {
frappe.msgprint(“fdsa”);
frappe.call({
method: “erpnext_maileva.customizations.item.ftp_repository.ftp_repository.send_to_maileva”,
//there i suppose should be “send data to python side”
})
});

1 Like
listview.page.add_action_item(__(“MailEva”), function () {
frappe.msgprint(“fdsa”);
frappe.call({
method: “erpnext_maileva.customizations.item.ftp_repository.ftp_repository.send_to_maileva”,
args:{'data':doclist},
callback:function(r){

}
})
});

check this you will get idea.

3 Likes

Thanks)