Example: nca_java_delete_name

In the following example, a Java object appears and its fields are filled after the button press CONTROL_B_OK_COURT_0. The name of the Java object is CONTROL_BN_SESSION_VALIDATION_0 and its properties and their values (taken from the recording log) are as follows:

Example: Server Message Properties: action=2 handlerClassId=0x10F handlerId=84
property=402 type=0xE008 value=Message
Sub Message Properties: action=2 handlerClassId=0x10F handlerId=84
property=403 type=0x4000 value="sessionId"
property=404 type=0x4000 value="381"
property=403 type=0x4000 value="sessionType"
property=404 type=0x4000 value="A"
property=403 type=0x4000 value="traceMask"
property=404 type=0x4000 value="0"

The handlerClassId field identifies it as a Java object. The first property is sessionId and its value is "381". The example retrieves the sessionId value from the object.

At the end of the session nca_java_delete_name deletes the property and value from the Java object.

char *java_value;

nca_java_set_option(JAVA_SAVE_PROP, 1);
nca_java_set_option(JAVA_SEPARATOR, '#');


/* The Java object is created after the call to nca_menu_select_item */
nca_menu_select_item("Libra", "Results;Confirm Sessions");
nca_set_window("Session Confirmation");

/* The Java object's fields are created after this operation */

/* Get one the Java object's properties - the session id */
            "sessionId", java_value);
lr_output_message("value=%s", java_value);