Skip to main content
Question

Switch Case Selector - Select from different sources in one Selector


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


 

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings