Customizing Unified Bead Fastener Names

As an administrator, you can use a Business Logic (BL) script to customize unified bead fastener names.


Before you begin: You are granted the Owner role to access the Data Setup app.
See Also
About Data Setup for Fastening
  1. From the Compass, click Data Setup app.
  2. Select Fastening business logic resources in the right panel.
  3. Add a new resource table by right-clicking it.

  4. Select Unified Bead Instance Title.

  5. Right-click and select Choose the assigned resource.
  6. In the Select a Business Rule dialog box, create a new rule.
  7. Add the following script in the BL script editor.

    /* ------------------------------------------------------------------------------------------------- */
    /* Business Logic :  																				 */
    /* 	Set the unified bead instance title 															 */
    /* ------------------------------------------------------------------------------------------------- */
    /* INPUTS to Business Logic                                                                          */
    /* ------------------------------------------------------------------------------------------------- */
    /*    "iUnifiedBeadInstance"		: BeadInstance                                                   */
    /*                           			The instance of the unified bead currently being updated     */
    /* ------------------------------------------------------------------------------------------------- */
    /*    "iCurveName"    				: String                                                      	 */
    /*                           			The instance of the unified bead currently being updated     */
    /* ------------------------------------------------------------------------------------------------- */
    /* OUTPUTS from Business Logic                                                                       */
    /* ------------------------------------------------------------------------------------------------- */
    /*    "oUnifiedBeadInstanceTitle"	: String                                                         */
    /*                     			  		The unified bead instance title set on the bead instance     */
    /* ------------------------------------------------------------------------------------------------- */
    
    /* OUTPUTS from Business Logic */
    let osUnifiedBeadInstanceTitle(string)
    
    /* INPUTS to Business Logic */
    let iUnifiedBeadInstance(BeadInstance)
    Let iCurveName(string)
    
    /* Others variables used in the Business Logic */
    let defaultUnifiedBeadInstanceTitle(string)
    
    osUnifiedBeadInstanceTitle =  "BL"
    
    
    iCurveName = Parameters->GetAttributeString("iCurveName")
    
    if(iCurveName <> "")
    {
    	osUnifiedBeadInstanceTitle = osUnifiedBeadInstanceTitle + "_" + iCurveName
    }
    
    Parameters.SetAttributeString("oUnifiedBeadInstanceTitle", osUnifiedBeadInstanceTitle)
    


  8. Optional: Modify the script to meet your requirements.
  9. Return to the Data Setup app tab.
  10. Save the information in the database.
  11. Drag and drop the new resource to your collaborative space.
    The BL script is taken into account.