Share this page

# nca_java_get_value

Java Object Functions

Retrieves the value of a Java object.

    int nca_java_get_value( LPCSTR name, char *value );

name | The name of the Java object.
value | A pointer to the string containing the value of the java object.

The nca_java_get_value function retrieves the value of the specified Java object.

This and other nca_java functions can be sent to the server as a single packet by wrapping the set of nca_java calls with nca_step_begin and nca_step_end functions.

## Return Values

Oracle NCA Error Codes

## Parameterization

The following variable can be parameterized using standard parameterization: name

## Example

In the following example, the nca_java_get_value function gets the value of the NAVIGATOR_SOCKETLISTENER_0 object and saves it to the variable out_value. As a result of the call to nca_lov_select_item, the server creates an object with an ID of 114 and property of 129, and object name NAVIGATOR_SOCKETLISTENER_0.

    char out_value[200];

    nca_lov_select_item("Responsibilities", "Assets, Vision Operations (USA)");
    nca_java_get_value("NAVIGATOR_SOCKETLISTENER_0",out_value);

    As a result of the call to nca_lov_select_item, the server creates object IDs, properties, an object name and a value. The first message shows the object name and the second one shows its value:

    Server Message Properties: action=1 handlerClassId=0x10F handlerId=114
         property=129 type=0x4000 value="NAVIGATOR_SOCKETLISTENER_0"

    Server Message Properties: action=2 handlerClassId=0x10F handlerId=114
         property=402 type=0xE008 value=Message
         Sub Message Properties: action=2 handlerClassId=0x10F handlerId=114
         property=403 type=0x4000 value="+"
         property=404 type=0x4000
         value="sl:oracle.apps.fnd.formsClient.SocketListener"

    The result of the function can be viewed in the Execution log:

    Action1.c(15): nca_java_get_value("NAVIGATOR_SOCKETLISTENER_0",
              "sl:oracle.apps.fnd.formsClient.SocketListener")

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: