![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/7b4cfb23-2a45-4d8a-b88d-513aa63b5141.png)
Example one base screen is available in acumatica screenID: SO503050 & graph name: SOPickingWorksheetProcess for List button
Example one base screen is available in acumatica screenID: SO503050 & graph name: SOPickingWorksheetProcess for List button
Hi
Kindly find below code snippet. I have not implemented it at my end but I believe it works for you.
#region Views
[PXVirtualDAC]
[PXImport(typeof(HeaderFilter))]
public PXSelect<InventoryLinkFilter> SelectedItems;
public IEnumerable selectedItems() => SelectedItems.Cache.Cached.Cast<InventoryLinkFilter>().Where(t => SelectedItems.Cache.GetStatus(t) != PXEntryStatus.Deleted).ToArray();
#endregion
#region Actions
[PXButton, PXUIField(DisplayName = "List")]
public virtual void selectItems() => SelectedItems.AskExt();
public PXAction<HeaderFilter> SelectItems;
#Endregion
and call this action in aspx as well to the button as below.
<CallbackCommands>
<px:PXDSCallbackCommand Visible="false" Name="SelectItems" CommitChanges="true" />
</CallbackCommands>
<px:PXButton runat="server" ID="btnItemList" Text="List" CommandName="SelectItems" CommandSourceID="ds"></px:PXButton>
<%-- Inventory Item List Dialog --%>
<px:PXSmartPanel ID="InventoryItemListDialog" runat="server" Caption="Inventory Item List" CaptionVisible="True" Key="selectedItems" LoadOnDemand="True" AutoRepaint="True">
<px:PXGrid ID="gridItemList" runat="server" DataSourceID="ds" SkinID="Details" SyncPosition="True">
<Levels>
<px:PXGridLevel DataMember="selectedItems">
<Columns>
<px:PXGridColumn DataField="InventoryID" />
<px:PXGridColumn DataField="Descr" />
</Columns>
<RowTemplate>
<px:PXSegmentMask ID="iidInventoryID" runat="server" DataField="InventoryID" CommitChanges="True" />
</RowTemplate>
<Layout ColumnsMenu="False" />
</px:PXGridLevel>
</Levels>
<AutoSize Enabled="True" MinHeight="300" />
<Mode AllowAddNew="True" AllowDelete="True" AllowUpdate="True" AllowUpload="True" AllowFormEdit="False" />
</px:PXGrid>
</px:PXSmartPanel>
Hope, it helps!
Regards,
Sweta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.