How do I hide/disable custom actions when no lines are selected in the LIG
Summary:
Custom actions such as Reconfigure, Delete Line items, Copy Line Items are enabled for user selection with No lines selected in the LIG and upon clicking them without selecting lines, A display message saying "Action Delete Line Items completed" comes up when no real lines were deleted.
Content (please ensure you mask any confidential information):
We need the model lines hidden as per client's requirement. As a result we have created some custom actions (Deleting line items, reconfiguring lines, copy line items, etc.) to be able to select the child part and enable these functionalities.
However without the selection of any lines in the LIG, these actions are enabled for user selection and upon clicking them, there is a OOTB display message saying that the "Action Delete Line Items" is completed" even if there are no lines deleted from the LIG. When the user contains large number of lines in the LIG, this is bound to create confusion.