Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added the cleaner version of the implementation


Where the value of "4" was determined by using the same ~ObjectID custom function within the Data Viewer in the format of ~ObjectID ( "Customer Details" ; "Layout" ; Null ; Null ) in order to determine the internal id of the Layout.

To optimize the code even further, your LayoutIsCustomerDetails custom function would directly evaluate if the current layout was the right target.

No Format

// Custom function code
Get ( LayoutName ) = ~ObjectID ( 4 ; "Layout" ; Null ; Null )

// Resulting script If[] step
If [ LayoutIsCustomerDetails ]
    # Do layout specific steps here...
End If

ObjectID Custom function on Github