Hello Community,
I was wondering has anyone experienced using Switch in Selector Attribute something like the one below. I know the below doesn’t work and also I have seen some lengthy posts on how to create a dynamic selector but I was hoping Acumatica has something built-in so that I don’t go the long path.
[PXSelector(typeof(
Switch<
Case<Where<MyDAC.module.IsEqual<BatchModule.moduleAP>>,
Search<Vendor.bAccountID>>,
Case<Where<HCLSMFileFilter.module.IsEqual<BatchModule.moduleAR>>,
Search<Customer.bAccountID>>>))]