Skip to content

Instantly share code, notes, and snippets.

View BrianMRO's full-sized avatar

Brian Stevens BrianMRO

  • SETECH Supply Chain Solutions, LLC
View GitHub Profile
@BrianMRO
BrianMRO / Acumatica_Mobile_SmartPanel_ZZBlogSetupMaint.cs
Created May 12, 2021 18:30
Acumatica Mobile Demo - Tags - ZZBlogSetupMaint Graph
using PX.Data;
using PX.Data.BQL.Fluent;
namespace BLOG.Common
{
public class ZZBlogSetupMaint: PXGraph<ZZBlogSetupMaint>
{
#region Data Views
[PXViewName("Blog Preferences")]
public PXSelect<ZZBlogSetup> Preferences;
@BrianMRO
BrianMRO / OldMenuAction.txt
Last active June 17, 2021 15:05
Old Way of Adding Actions to Menus
#region Initialize
public override void Initialize()
{
base.Initialize();
Base.action.AddMenuAction(printLabel);
}
#endregion
@BrianMRO
BrianMRO / NewMenuAction.txt
Last active December 1, 2023 12:44
New Way of Adding Actions to Menus via Workflow
#region Workflow based menus
public override void Configure(PXScreenConfiguration config)
{
Configure(config.GetScreenConfigurationContext<InventoryItemMaint, InventoryItem>());
}
protected virtual void Configure(WorkflowContext<InventoryItemMaint, InventoryItem> context)
{
context.UpdateScreenConfigurationFor(screen =>
{
@BrianMRO
BrianMRO / MobileSmartPanel_InventoryItemMaint_Extension.cs
Created June 22, 2021 20:28
Mobile Smart Panel VLOG - InventoryItemMaint_Extension.cs
using MobileSmartPanel.IN;
using PX.Data;
using PX.Data.BQL.Fluent;
using PX.Objects.AR;
using PX.Objects.CR;
using System;
using System.Collections;
namespace PX.Objects.IN
{
@BrianMRO
BrianMRO / MobileSmartPanel_MobileApplication_SiteMap.txt
Created June 22, 2021 20:32
Mobile Smart Panel VLOG - Mobile Application - Site Map
update sitemap {
add folder "Stock Items" {
type = HubFolder
isDefaultFavorite = True
displayName = "Stock Items"
icon = "system://Bookmarks"
add item "IN202500" {
displayName = "Stock Items"
}
@BrianMRO
BrianMRO / MobileSmartPanel_MobileApplication_TagsScreen.txt
Created June 22, 2021 20:34
Mobile Smart Panel VLOG - Mobile Application - Tags Screen
add screen ZZ301000 {
add container "Document" {
formActionsToExpand = 1
displayName = "Tags"
add field "TagID"
add field "Descr"
add field "Details#InventoryID"{
selectorDisplayFormat = Key
}
add field "Details#Description"
@BrianMRO
BrianMRO / MobileSmartPanel_MobileApplication_StockItemsScreen.txt
Created June 22, 2021 20:36
Mobile Smart Panel VLOG - Mobile Application - Stock Items Screen
add screen IN202500 {
add container "StockItemSummary" {
add layout "ItemHeader" {
layout = "HeaderSimple"
add layout "ItemHeaderRow1" {
layout = "Inline"
add field "InventoryID" {
selectorDisplayFormat = Key
}
add field "ItemStatus"
@BrianMRO
BrianMRO / MobileSmartPanel_IN202500_SmartPanel.aspx
Created June 22, 2021 20:56
Mobile Smart Panel IN202500 Smart Panel ASPX
<px:PXSmartPanel runat="server" ID="CstSmartPanel1" AutoCallBack-Enabled="True" AutoCallBack-Command="Refresh"
Caption="Add Tag" CaptionVisible="True" CommandSourceID="ds" AutoCallBack-Target="FrmCreateTag" Key="tagparamfilter"
AutoReload="True" Height="160" Width="320">
<px:PXFormView runat="server" ID="FrmCreateTag" DataSourceID="ds" DataMember="tagparamfilter" AllowCollapse="False">
<Template>
<px:PXLayoutRule runat="server" ID="CstPXLayoutRule7" StartColumn="True" LabelsWidth="S" ControlSize="SM" />
<px:PXSegmentMask runat="server" ID="CstPXSegmentMask9" DataField="CustomerID" CommitChanges="True" />
<px:PXSelector runat="server" ID="CstPXSelector8" DataField="ContactID" CommitChanges="True" />
</Template>
</px:PXFormView>
@BrianMRO
BrianMRO / AcumaticaCopyPasteExclusions.cs
Created July 1, 2021 19:35
Excluding Fields from Acumatica Copy/Paste
#region Data Views
[PXViewName(Messages.ViewSSINNewItemEntryItems)]
[PXCopyPasteHiddenFields(typeof(MyDAC.field1), typeof(MyDAC.field2))]
public PXSelect<MyDAC> Document;
[PXCopyPasteHiddenView]
public PXSelect<INItemClass, Where<INItemClass.itemClassCD, Equal<Optional<INItemClass.itemClassCD>>>> ItemClass;
#endregion
@BrianMRO
BrianMRO / Approval_Dac_Fields.cs
Created September 28, 2021 13:52
Approval DAC Fields
#region Hold
[PXDBBool()]
[PXDefault(true)]
[PXUIField(DisplayName = Messages.FldHold, Visibility = PXUIVisibility.Visible)]
public virtual bool? Hold { get; set; }
public abstract class hold
: PX.Data.BQL.BqlBool.Field<hold> { }
#endregion
#region Approved