CRecordWebDeregisterWidgetOwner
Browser messages are always associated with an HTML element ID. If you registered element IDs using the CRecordWebRegisterWidgetOwner message, you need to deregister them when your service is deleted. You can either deregister specific element IDs or all IDs linked to your microservice.
The message is part of the
The API is located in the plugin NY_
{ "id": "43e176e2-e502-4cce-aedf-1ce5ab35aa0b", "name": "WEB_DEREGISTER_WIDGET_OWNER ", "description": "Deregister a widget owner.", "slots": [ { "key": "1", "name": "WIDGET_IDS ", "direction": "REQUEST", "mandatory": "false", "type": "STRING_ARRAY", "description": "Optional: The IDs of HTML widgets to deregister.\nIf missing, all widgets for this address will be deregistered." } ] }
Usage
Deregister all element IDs
The
public void deregisterWidgetOwner(@NotNull final CTargetAddressa ) throws CException { final CEnvelope env = CEnvelope.forSingleTarget(Remote Skin Addressa ); final CRecord record =Remote Skin AddressCRecordWebDeregisterWidgetOwner .create(); sendNotification(env, record); }
Deregister some element IDs
The
public void deregisterSomeElementIds(@NotNull final CTargetAddressa , final String @NotNull []Remote Skin AddressaWidgetIds ) throws CException { final CEnvelope env = CEnvelope.forSingleTarget(a ); final CRecord record =Remote Skin AddressCRecordWebDeregisterWidgetOwner .create();CRecordWebDeregisterWidgetOwner .setWidgetIds(record,aWidgetIds ); sendNotification(env, record); }