AppStudio - Expression Patterns

Haven’t seen this documented anywhere. feel free to markup and add examples, commentary, etc.

Expression Patterns

Pattern in String Example Parser Description
~_..._~ ~_MyComponent.Property_~ parseControlExpression Identifies control expressions wrapped with ~_ and _~
{...} {OrderHed.OrderNum} parseEpBinding Detects Epicor binding expressions enclosed in curly braces
% %session.UserName% parseToken Flags tokenized strings, possibly for templating or substitution
#_..._#,
.row%,
.count%,
.hasRow%,
.hasChanges%
#_new Date().getDate()_#
#_trans.dataView('OrderHed').row_#
%OrderHed.row%, %Customer.count%
parseJSExpression Identifies dynamic JavaScript expressions embedded in strings

Special Arguments

Placeholder Source Object Description
%value% dataColumnChangeEventArgs.value The new value in a data change event
%row% dataColumnChangeEventArgs.row The full row of data associated with the change
%oldValue% dataColumnChangeEventArgs.oldValue The previous value before the change
%current% dataColumnChangeEventArgs.current The current item or context
%previous% dataColumnChangeEventArgs.previous The previous item or context
%column% dataColumnChangeEventArgs.column The name of the column affected
%readOnly% dataColumnChangeEventArgs.readOnly Boolean indicating if the column is read-only
%currentDataView% transactionService.currentDataView() The current state of the data view
%previousDataView% transactionService.previousDataView() The prior state of the data view
%coreCurrentDataView% transactionService.coreCurrentDataView() The core (non-enhanced) current data view
%corePreviousDataView% transactionService.corePreviousDataView() The core prior data view
%nodeEntityType% p.node.entityType Entity type of the selected tree node (if event is tree-based)
%nodeSysRowID% p.node.sysRowID Unique row ID of the selected node
%nodeIsFolder% p.node.isFolder Indicates if the node is a folder (true/false)
%nodePath% p.node.nodePath Path of the selected node in the hierarchy
%dragEntityType% e.entityType Entity type being dragged (if drag-drop event)
%startDateTime% b.start Start time of the scheduler event
%endDateTime% b.end End time of the scheduler event
%isAllDayEvent% b.isAllDay Boolean flag for all-day scheduler events

This is AI-gen so mileage may vary.

2 Likes