Contents tagged with Current record

  • 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 … more