Skip to content

RenameApplicationModel ​

This event is triggered when an application model has been renamed.

Parameters ​

ParameterDescription
appmodelidintValue, ID of the renamed application model.
oldnamestrVlaue, the old application model name.
newnamestrVlaue, the new application model name.

Exit value: ​

Remarks ​

See Also ​

Example ​

The following example welcomes the user after renaming an application model.

leo-grammar
	ON_EVENT "RenameApplicationModel" {

	SETG id_AppModelId: (appmodelid)
	SETG str_OldName: (oldname)
	SETG str_NewName: (newname)
	
	CC "AdoScript" INFOBOX ("ModelId:  " + STR(id_AppModelId)) title: "You are renaming the model..."
	CC "AdoScript" INFOBOX ("OldName:  " + (str_OldName))  title: "from"
	CC "AdoScript" INFOBOX ("NewName:  " + (str_NewName))  title: "to"
	
	}
	ON_EVENT "RenameApplicationModel" {

	SETG id_AppModelId: (appmodelid)
	SETG str_OldName: (oldname)
	SETG str_NewName: (newname)
	
	CC "AdoScript" INFOBOX ("ModelId:  " + STR(id_AppModelId)) title: "You are renaming the model..."
	CC "AdoScript" INFOBOX ("OldName:  " + (str_OldName))  title: "from"
	CC "AdoScript" INFOBOX ("NewName:  " + (str_NewName))  title: "to"
	
	}