Skip to main content
Answer

Customization

  • October 6, 2023
  • 3 replies
  • 59 views

Forum|alt.badge.img

CSAttributeDetail shipTypeDetail =
          new PXSelect<CSAttributeDetail,
          Where<CSAttributeDetail.attributeID, Equal<Required<CSAttributeDetail.attributeID>>,
          And<CSAttributeDetail.valueID, Equal<Required<CSAttributeDetail.valueID>>>>>
          (Base).Select("MFGPRPALLE", attributeID.Value);

 

What is the best way above code use in PXSelector ? 

 

Best answer by praveenpo

hi @tharinduweerasooriya90,

you can refer the below ticket where it has solution for same kind of requirement.
 


Hope this will be helpful

3 replies

praveenpo
Semi-Pro III
Forum|alt.badge.img+3
  • Semi-Pro III
  • Answer
  • October 6, 2023

hi @tharinduweerasooriya90,

you can refer the below ticket where it has solution for same kind of requirement.
 


Hope this will be helpful


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • October 6, 2023

Hi @tharinduweerasooriya90 ,

You can utilize the current row's attributeID and retrieve the attributeID option using the following selector. 

     [PXSelector(typeof(Search<CSAttributeDetail.valueID, Where<CSAttributeDetail.attributeID, Equal<Current<extnensionDACName.attributeID>>>>),
            typeof(CSAttributeDetail.valueID), typeof(CSAttributeDetail.description))]


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi @tharinduweerasooriya90

Following article has steps to create a PXSelector using Attributes,

 

Feel free to post if you have any questions. Good Luck.!