CRecordWebSetValue
The
The message is part of the
The API is located in the plugin NY_
{ "id": "a13e429c-b6bd-4566-95b4-b803ada225cb", "name": "WEB_SET_VALUE ", "description": "Set a value of an input element.", "slots": [ { "key": "1", "name": "ID ", "direction": "REQUEST", "mandatory": "true", "type": "STRING", "description": "The id of the element." }, { "key": "2", "name": "VALUE ", "direction": "REQUEST", "mandatory": "true", "type": "STRING", "description": "The value to set." } ] }
Arguments
-
ID : The id of the HTML element. -
VALUE : The value to set.
Usage with the helper class CWebApi
The easiest way is to call the corresponding method in the CWebApi class. The use of the class is described there.
mWebApi.setValue(@NotNull final StringaId , @NotNull final StringaValue );
Usage as message
The
public void setValue(@NotNull final CTargetAddressa , @NotNull final StringRemote Skin AddressaId , @NotNull final StringaValue ) throws CException {// Envelope final CEnvelope env = CEnvelope.forSingleTarget(m );Remote Skin Address// Record final CRecord record =CRecordWebSetValue .create();CRecordWebSetValue .setId(record,aId );CRecordWebSetValue .setValue(record,aValue );// send message sendNotification(env, record); }