Skip to main content
Question

Switch Case Selector - Select from different sources in one Selector

  • March 29, 2023
  • 0 replies
  • 390 views

aaghaei
Captain II
Forum|alt.badge.img+10

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>>>))]