 <p>If you are able to write proper 'Search' BQL to get the result, you can use the PXSelector attribute. If you use 'Current' it will use the the current documents field value. So as per your case, you can use the current ClassID and Status to dynamically populate your selector.</p> <p>Eg:</p> <pre><code>[PXSelector(typeof(Search&lt;DiscountSequence.discountSequenceID, Where&lt;DiscountSequence.discountID, Equal&lt;Current&lt;DiscountSequence.discountID&gt;&gt;&gt;&gt;))] </code></pre> <p>Hope this helps.</p>