Event.Form.MainGrid.GridCopiedFromName

.GridCopiedFromName returns the name of the source grid used when creating the current grid. If you create user-defined grids in Deacom, this will return the name of the source grid.

Note: If the grid you are referencing to get the .GridCopiedFromName is a system grid, then this property will not return a value.

Applies To

Properties and Methods

None

Available

The .GridCopiedFromName property is available in:

  • 16.05.065
  • 16.06.030
  • 16.07.004
  • 17.00.001
  • All newer builds

Note: The .GridCopiedFromName property and all sub-classes, properties, and methods are only available in Form Layout scripts.

Type

String

Syntax

Event.Form.MainGrid.GridCopiedFromName;

Parameters

None

Example

//--Add this script to a user-defined button on the Orders form (Sales Order Reporting)

//--Click Event

//--Copy a new grid from the Ordsum grid and save it

 

var lpMainGrid = Event.Form.MainGrid;

Event.Form.MessageBox('Grid Copied From Name: ' + lpMainGrid.GridCopiedFromName);

 

/* Expected Prompt response when clicking the button after running the new copied report:

Grid Copied From Name: Ordsum

 

--Expected Prompt response when clicking the button after running the ordsum report:

<<NOTHING>>

*/