By the way, I create a multiple selector in order to filter list ReplenishmentItem by this selector instead of Warehouse (single selector)
Which part should I modify to change filter by new multiple selector?
@mrthanhkhoi
I’m glad that I helped you on getting the Multi-Select selector field.
You need to check the view delegate and modify the logic accordingly to fetch the selected multiple warehouses’ details and populate in the grid.
Hi @Naveen Boga
I have modified the view as following code but it doesn’t work. I guess there is an issue with condition Where<INReplenishmentItem.siteID, In<Current<INReplenishmentFilterExt.usrWarehouse»
I tried with Where<Current<INReplenishmentFilterExt.usrWarehouse>, Contains<INReplenishmentItem.siteID> but it does not work too :(
Could you please have a look and and instruct me?
gPXFilterable] public Processing<INReplenishmentItem> Records; //If update Acmatica to later version need to check this function to update it to latest code from Acumatica (keep use INReplenishmentItem.siteID in INReplenishmentFilterExt.usrWarehouse public class Processing<Type> : PXFilteredProcessingJoin<INReplenishmentItem, INReplenishmentFilter, LeftJoin<INItemClass, On<INReplenishmentItem.FK.ItemClass>>, Where<INReplenishmentItem.siteID, In<Current<INReplenishmentFilterExt.usrWarehouse>>,//The original is: Where<INReplenishmentItem.siteID, Equal<Current<INReplenishmentFilter.replenishmentSiteID>> And2<Where< Current<INReplenishmentFilter.itemClassCDWildcard>, IsNull, Or<INItemClass.itemClassCD, Like<Current<INReplenishmentFilter.itemClassCDWildcard>>>>, And2<Where< INReplenishmentItem.launchDate, IsNull, Or<INReplenishmentItem.launchDate, LessEqual<Current<INReplenishmentFilter.purchaseDate>>>>, And<Where< INReplenishmentItem.terminationDate, IsNull, Or<INReplenishmentItem.terminationDate, GreaterEqual<Current<INReplenishmentFilter.purchaseDate>>>>> >>>> where Type : INReplenishmentItem {
public Processing(PXGraph graph) : base(graph) { this._OuterView = new PXView(graph, false, BqlCommand.CreateInstance( typeof( Select2<INReplenishmentItem, LeftJoin<INItemClass, On<INReplenishmentItem.FK.ItemClass>>, Where<INReplenishmentItem.siteID, In<Current<INReplenishmentFilterExt.usrWarehouse>>,//The original is: Where<INReplenishmentItem.siteID, Equal<Current<INReplenishmentFilter.replenishmentSiteID>> And2<Where< Current<INReplenishmentFilter.itemClassCDWildcard>, IsNull, Or<INItemClass.itemClassCD, Like<Current<INReplenishmentFilter.itemClassCDWildcard>>>>, And2<Where< INReplenishmentItem.launchDate, IsNull, Or<INReplenishmentItem.launchDate, LessEqual<Current<INReplenishmentFilter.purchaseDate>>>>, And<Where< INReplenishmentItem.terminationDate, IsNull, Or<INReplenishmentItem.terminationDate, GreaterEqual<Current<INReplenishmentFilter.purchaseDate>>>>> >>>>)));