JavaThe method described below can be used to get symbolic names for administrative objects in JSPs, JavaBeans, and JPOs. To get the symbolic name for an administrative object, use this method: FrameworkUtil.getAliasForAdmin(context, "Type", "admin name", "useCache value"); where:
For optimum performance, obtain the symbolic name from the cache and not from the database. Example 1 To get the symbolic name for the Part type administrative object Part from the cache, use this code: String typePart = FrameworkUtil.getAliasForAdmin(context, "Type", "Part", true); The code would return "type_Part". Example 2 To get the symbolic name for the EBOM relationship administrative object from the cache, use this: String relEBOM = FrameworkUtil.getAliasForAdmin(context, "Relationship", "EBOM", true); The code would return "relationship_EBOM". For more information on symbolic names for administrative objects, see How the System Identifies Administrative Objects: Symbolic Name Properties. TclThis section describes how to get the symbolic name for administrative objects when writing a Tcl program, although Java is the preferred method for writing programs. You should use a JPO instead of Tcl for triggers. The program eServiceSchemaVariableMapping.tcl contains the procedure emxGetPropertyFromAdminName that gets the symbolic name for an administrative object. The signature for using the procedure is: proc emxGetPropertyFromAdminName {sAdminType sRegProg sAdminName} where:
For example, to get the symbolic name for the attribute named Originator: set sAttOriginatorProperty [emxGetPropertyFromAdminName "attribute" eServiceSchemaVariableMapping.tcl Originator] Use the emxGetPropertyFromStateName procedure to get the symbolic name for a state. the signature for using the procedure is: proc emxGetPropertyFromStateName {sPolicyName sStateName} where:
For example: set sStateProp [emxGetPropertyFromStateName Person Active] |