DependOngrid In Acumatica Or How To Get Currently Selected Record In Grid
Hello everybody,
today I want to share one important note, for search of which I've spent for two hours.
In grid I've added button in the following way:
<ActionBar ActionsText="True"> <CustomItems> <px:PXToolBarButton> <AutoCallBack Command="RemovePMTask" Target="ds" > </AutoCallBack> </px:PXToolBarButton> </CustomItems> </ActionBar>
Initially described it in the following way:
<px:PXDSCallbackCommand Name="RemovePMTask" Visible="False" </px:PXDSCallbackCommand>
Then added code for button in graph, and noticed terrible behaviour. In my action I wasn't able to get currently selected record in grid. After wondering for two hours, I found that I need to add attribute DependOnGrid. After adding that attribute my code started to work well and get posibility to get currently selected record.
But for getting current record it was nesessary to add DependOnGrid="grdJiraProjects"
<px:PXDSCallbackCommand Name="RemovePMTask" Visible="False" DependOnGrid="grdJiraProjects"> </px:PXDSCallbackCommand>
Ready to take your Acumatica customization to the next level? Whether you're facing a tricky development challenge like the one I shared or have a unique business requirement, our team is here to help. Leave a customization request today, and let’s build solutions that work seamlessly for your needs. Your perfect Acumatica experience is just a click away—let’s make it happen!