Skip to main content
Question

Switch Case Selector - Select from different sources in one Selector

  • Mar 29, 2023 4:36 AM UTC
  • 0 replies
  • 407 views
  • Translate All

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

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