View SQL_Get_Default_MobileSiteMap.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* NOTE: Replace [2022R1] with the name of YOUR database */ | |
/* Right-Click the Table in MS SQL Server Mgmt Studio and select "Select Top 1000 Rows" */ | |
SELECT TOP (1000) [CompanyID] | |
,[ScreenID] | |
,[Script] | |
,[Type] | |
,[CompanyMask] | |
,[CreatedByID] | |
,[CreatedByScreenID] |
View Blog-MobileBLOG3010-2205.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add screen BLOG3010 { | |
add container "Packages" { | |
displayName = "Packages" | |
fieldsToShow = 3 | |
add field "PackageID" { | |
listPriority = 99 | |
} | |
add field "OrderType" { | |
listPriority = 98 | |
} |
View Blog-MobileGI000095-2205.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add screen GI000095 { | |
type = FilterListScreen | |
add container "Filter_" { | |
add field "PackageID" { | |
special = BarCodeScan | |
} | |
} | |
add container "Result" { | |
add field "PackageID" | |
add field "OrderType" |
View Blog-MobileUpdateSiteMap-2205.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update sitemap { | |
add folder "BlogPackages" { | |
type = HubFolder | |
isDefaultFavorite = True | |
displayName = "Blog Packages" | |
icon = "system://Box2" | |
add item "GI000095" { | |
displayName = "Blog Packages" | |
icon = "system://Box2" | |
} |
View IsAutoRun.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.WithFlowStates(states => | |
{ | |
states | |
.Update<State.approved>(flowState => flowState | |
.WithActions(actions => | |
{ | |
actions.Update(g => g.pushInventoryID, a => a.IsAutoAction(conditions.MyCondition)); | |
})); | |
}) |
View Workflow_Define_Conditions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Conditions | |
Condition Bql<T>() where T : IBqlUnary, new() => context.Conditions.FromBql<T>(); | |
var conditions = new | |
{ | |
IsOnHold | |
= Bql<hold.IsEqual<True>>(), | |
IsScheduled | |
= Bql<scheduleDate.IsNotNull>(), | |
}.AutoNameConditions(); |
View Workflow_Disable_Hide_Actions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Actions - Hide (Pre-Defined Action) | |
screen | |
.WithActions(action => | |
{ | |
action.Add(removeHold); | |
action.Add(putOnHold); | |
action.Add(complete); | |
action.Add(reopen); | |
action.Add(g => g.schedule, a => a | |
.WithCategory(processingCategory) |
View Workflow_Blog_Post_4.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PX.Data; | |
using PX.Data.WorkflowAPI; | |
using PX.Objects.Common; | |
namespace Blog.CMMS | |
{ | |
using static PX.Data.WorkflowAPI.BoundedTo<CMMSWorkOrderEntry, CMMSWorkOrder>; | |
using static CMMSWorkOrder; | |
using State = Blog.CMMS.CMMSWorkOrder.Statuses; |
View Workflow_Conditions_On_Transitions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.WithTransitions(transitions => | |
{ | |
transitions.AddGroupFrom(State.InitialState, ts => | |
{ | |
ts.Add(t => t | |
.To<State.hold>() | |
.IsTriggeredOn(g => g.initializeState) | |
.When(conditions.IsOnHold)); // CONDITION!!! | |
}); | |
transitions.Add(transition => transition |
View Workflow_Using_Conditions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.When(conditions.IsOnHold) |
NewerOlder