Get(LayoutObjectName) or Get(ContextObjectName)

Idea created by nrobinson on Sep 27, 2018
    Active
    Score12

    Returns the Object Name of the layout object in the context of a layout object calculation. 

     

    If you can think of a better name for this function please suggest.  The right name can make the difference between an adopted idea and a forgotten one.

     

    Description

    Returns the Object Name of the layout object in the context of a layout object calculation. 

     

    Returns blank if Object Name was not set in the Layout Editor

    Availability

    Layout object calculations only:

    • Hide Conditions
    • Conditional Formatting
    • Portal Filtering
    • Button Parameters
    • Script Trigger Parameters

     

    This should be safe to extend to these as well but not 100% sure:

    • Tooltip
    • Placeholder text
    • Tab Name
    • Button Bar Active Segment
    • Web Viewer calcs
    • Chart calcs

     

    Returns an error when attempt to be used in a script or field calculation.

    Uses:

    (please provide more possible uses in comments if you like this feature)

    • Button parameters passed from object name
    • Multiple portals on the same layout from the same occurrence that each have a different filter, just setting the object name.
    • global variable keeps track of which objects to display based on object names
      • example of a hide condition to show objects that are kept track of in a global variable:

                   Not PatternCount ( $$displayed.objectNames , Get(LayoutObjectName) )

    Bonus:

    • Many of us love to use object names to organize our layout building anyway.  Leverage that curation!
    • Create template objects and only change object name
    • Pass object name to a script and then keep the work in the script branches
      • or use a  combo of Layout Name / Layout Table Name and Object Name
    • Specifying object name is very accessible in the Objects Pane

     

    Note: I am also proposing a shortcut for Specify Object Name in another idea