I want to filter item_code in Delivery note based on field brand_name
(both item_code & brand_name are in child table Delivery Note Item (field name items))
I had created extra field ‘i1’ type link field and options Item (same as item_code)
-
My following code works pefectly for 'i1' , but not for 'item_code'.
cur_frm.fields_dict[‘items’].grid.get_field(‘i1’).get_query = function(doc) {
return {
filters: {
"brand": "brand1"
}
}
}
- and how to refer dynamic filter field
‘brand_name’ instead of fixed value “brand1”.