i want to show rarb id in link field that rarb_id fieldtype is data type
here code
cur_frm.set_query("pch_rarb_location_src", "items", function(frm, cdt, cdn) {
var d = locals[cdt][cdn];
var s_warehouse = d.s_warehouse;
rarb_warehouse = get_rarb_warehouse_item_name(s_warehouse);
console.log("rarb_warehouse--------src-------"+rarb_warehouse);
return {
"filters": [
["RARB Warehouse Item", "name", "in", rarb_warehouse]
]
}
});
in rarb_warehouse data is there then even in link field its showing empty i don’t know why
Regards
Eliyas
Can you please put your code in code snippet feature is available so code looks formatted and everybody will be willing to help you
Example to fetch link field:
cur_frm.set_query("asset", "items", function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
return {
filters: [
["Asset", "item_code", "=", d.item_code],
["Asset", "docstatus", "=", 1],
["Asset", "status", "in", ["Submitted", "Partially Depreciated", "Fully Depreciated"]],
["Asset", "company", "=", doc.company]
]
}
});
1 Like
actually i have tried all possible things everytime i geting empty only.
I think system works that way only you will have to set explicitly since wherever link field comes with pre existing data they have written some explicitly