Class DataKeyUtils
java.lang.Object
com.inductiveautomation.reporting.common.util.DataKeyUtils
A utility class to help manage DataKey functionality in Ignition Reporting.
 Copyright Inductive Automation 2015
 Project: Reporting
- Since:
- 7.8.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringHelper method to add @ if needed and massage Page of Pagemaxstatic StringgetRelativizedKey(RMShape shape, String key) If the RMShape parameter is a child of a parent shape, this method will return a path that is relativized to the parent shape.static String
- 
Constructor Details- 
DataKeyUtilspublic DataKeyUtils()
 
- 
- 
Method Details- 
getSelectedDataKey
- 
getRelativizedKeyIf the RMShape parameter is a child of a parent shape, this method will return a path that is relativized to the parent shape. This method is convenient in situations such as drag-and-drop onto a RMTextShape field which is inside a parent such as a table. If the parent has a Data key of "ADataSource" and a datakey from the source named "ADataSource.idString" is dropped on the child TextShape, this method will return "idString" when passed the child TextShape and the key.- Parameters:
- shape- the shape we are trying to get the relative key for.
- key- the full data key, of which our relative key should be a part of.
- Returns:
- the relativized key, if there is a relation found, otherwise will return the original Key or empty string
- Since:
- 7.8.1
 
- 
getKeyHelper method to add @ if needed and massage Page of Pagemax
 
-