ws_objectRenamed

Defines the behavior of the worksheet plug-in component when the main development object being edited is renamed.

operation ws_objectRenamed
params
  string pObjectUrl : IN
endparams
									
; <... Your code here ...>

end; operation ws_objectRenamed		

Parameters

pObjectUrl —new name of the current main development object.

Description

The Uniface IDE activates this operation to notify the worksheet plug-in that the current main development object has been renamed. Depending on the worksheet, this may have some impact, so this operation enables you to respond appropriately.

The operation is optional.

Example

The following operation sends a message to the Messages tab by calling the IDE API operation outputMessage and it resets the value of a component variable ($URL$) and field (URL.ENT).

operation ws_objectRenamed
  params
    string pObjectUrl : IN
  endparams

  activate "IDE_API_1".outputMessage("Main Object renamed (Url=%%pObjectUrl).")
  if ($procerror != 0)
    putmess "Activate error: %%$procerror%%%, %%$procerrorcontext%%%"
  endif

  $URL$ = pObjectUrl
  URL.ENT = $URL$
  show
end ; ws_objectRenamed