Is it possible to fetch data from some doctype to the content of Dialog Box

Can any one tell me if it is possible to fetch data from some doctype to the content of Dialog Box by using method: “frappe.client.get_list”?
I have found the solution to add child table’s item by using checkbox’s selection in Dialog Box?
Below is my code:
cur_frm.cscript.mritem_add = function(doc,cdt,cdn) {
var d = new frappe.ui.Dialog({
‘fields’: [
{‘fieldname’: ‘a1’, ‘fieldtype’: ‘Check’,‘label’: ‘AA1’},
{‘fieldname’: ‘a2’, ‘fieldtype’: ‘Check’,‘label’: ‘AA2’},
{‘fieldname’: ‘a3’, ‘fieldtype’: ‘Check’,‘label’: ‘AA3’},
{‘fieldname’: ‘a4’, ‘fieldtype’: ‘Check’,‘label’: ‘AA4’},
{‘fieldname’: ‘a5’, ‘fieldtype’: ‘Check’,‘label’: ‘AA5’},
{‘fieldname’: ‘a6’, ‘fieldtype’: ‘Check’,‘label’: ‘AA6’},
{‘fieldname’: ‘a25’, ‘fieldtype’: ‘Check’,‘label’: ‘AA25’},
{‘fieldname’: ‘a29’, ‘fieldtype’: ‘Check’,‘label’: ‘AA29’},
{‘fieldname’: ‘column_breaka0’, ‘fieldtype’: ‘Column Break’},
{‘fieldname’: ‘a7’, ‘fieldtype’: ‘Check’,‘label’: ‘AA7’},
{‘fieldname’: ‘a8’, ‘fieldtype’: ‘Check’,‘label’: ‘AA8’},
{‘fieldname’: ‘a9’, ‘fieldtype’: ‘Check’,‘label’: ‘AA9’},
{‘fieldname’: ‘a10’, ‘fieldtype’: ‘Check’,‘label’: ‘AA10’},
{‘fieldname’: ‘a11’, ‘fieldtype’: ‘Check’,‘label’: ‘AA11’},
{‘fieldname’: ‘a12’, ‘fieldtype’: ‘Check’,‘label’: ‘AA12’},
{‘fieldname’: ‘a26’, ‘fieldtype’: ‘Check’,‘label’: ‘AA26’},
{‘fieldname’: ‘a30’, ‘fieldtype’: ‘Check’,‘label’: ‘AA30’},
{‘fieldname’: ‘column_breaka1’, ‘fieldtype’: ‘Column Break’},
{‘fieldname’: ‘a13’, ‘fieldtype’: ‘Check’,‘label’: ‘AA13’},
{‘fieldname’: ‘a14’, ‘fieldtype’: ‘Check’,‘label’: ‘AA14’},
{‘fieldname’: ‘a15’, ‘fieldtype’: ‘Check’,‘label’: ‘AA15’},
{‘fieldname’: ‘a16’, ‘fieldtype’: ‘Check’,‘label’: ‘AA16’},
{‘fieldname’: ‘a17’, ‘fieldtype’: ‘Check’,‘label’: ‘AA17’},
{‘fieldname’: ‘a18’, ‘fieldtype’: ‘Check’,‘label’: ‘AA18’},
{‘fieldname’: ‘a27’, ‘fieldtype’: ‘Check’,‘label’: ‘AA27’},
{‘fieldname’: ‘column_breaka2’, ‘fieldtype’: ‘Column Break’},
{‘fieldname’: ‘a19’, ‘fieldtype’: ‘Check’,‘label’: ‘AA19’},
{‘fieldname’: ‘a20’, ‘fieldtype’: ‘Check’,‘label’: ‘AA20’},
{‘fieldname’: ‘a21’, ‘fieldtype’: ‘Check’,‘label’: ‘AA21’},
{‘fieldname’: ‘a22’, ‘fieldtype’: ‘Check’,‘label’: ‘AA22’},
{‘fieldname’: ‘a23’, ‘fieldtype’: ‘Check’,‘label’: ‘AA23’},
{‘fieldname’: ‘a24’, ‘fieldtype’: ‘Check’,‘label’: ‘AA24’},
{‘fieldname’: ‘a28’, ‘fieldtype’: ‘Check’,‘label’: ‘AA28’},
],
primary_action: function(){
d.hide();
var zz = locals[cdt][cdn];
if(d.get_values().a1==‘1’) {zz.feeitem=‘AA1’};
if(d.get_values().a2==‘1’) {zz.feeitem=‘AA2’};
if(d.get_values().a3==‘1’) {zz.feeitem=‘AA3’};
if(d.get_values().a4==‘1’) {zz.feeitem=‘AA4’};
if(d.get_values().a5==‘1’) {zz.feeitem=‘AA5’};
if(d.get_values().a6==‘1’) {zz.feeitem=‘AA6’};
if(d.get_values().a7==‘1’) {zz.feeitem=‘AA7’};
if(d.get_values().a8==‘1’) {zz.feeitem=‘AA8’};
if(d.get_values().a9==‘1’) {zz.feeitem=‘AA9’};
if(d.get_values().a10==‘1’) {zz.feeitem=‘AA10’};
if(d.get_values().a11==‘1’) {zz.feeitem=‘AA11’};
if(d.get_values().a12==‘1’) {zz.feeitem=‘AA12’};
if(d.get_values().a13==‘1’) {zz.feeitem=‘AA13’};
if(d.get_values().a14==‘1’) {zz.feeitem=‘AA14’};
if(d.get_values().a15==‘1’) {zz.feeitem=‘AA15’};
if(d.get_values().a16==‘1’) {zz.feeitem=‘AA16’};
if(d.get_values().a17==‘1’) {zz.feeitem=‘AA17’};
if(d.get_values().a18==‘1’) {zz.feeitem=‘AA18’};
if(d.get_values().a19==‘1’) {zz.feeitem=‘AA19’};
if(d.get_values().a20==‘1’) {zz.feeitem=‘AA20’};
if(d.get_values().a21==‘1’) {zz.feeitem=‘AA21’};
if(d.get_values().a22==‘1’) {zz.feeitem=‘AA22’};
if(d.get_values().a23==‘1’) {zz.feeitem=‘AA23’};
if(d.get_values().a24==‘1’) {zz.feeitem=‘AA24’};
if(d.get_values().a25==‘1’) {zz.feeitem=‘AA25’};
if(d.get_values().a26==‘1’) {zz.feeitem=‘AA26’};
if(d.get_values().a27==‘1’) {zz.feeitem=‘AA27’};
if(d.get_values().a28==‘1’) {zz.feeitem=‘AA28’};
if(d.get_values().a29==‘1’) {zz.feeitem=‘AA29’};
if(d.get_values().a30==‘1’) {zz.feeitem=‘AA30’};
cur_frm.refresh_field(“mritem”);
}
});
d.show();
};
However, I hope I can get the checkbox’s selections by using method: “frappe.client.get_list” directly but not fixed data added manually. Thank you first.

Thanks all. I got a not-too-good solution, however it can work temporarily.

Hey please tell me how to increase dialog width from custom script wich is already created