Share this page

# nca_java_action

Java Object Functions

Performs an event on a Java object.

    int nca_java_action( LPCSTR name, LPCSTR event, LPCSTR arglist );

name | The name of the Java object.
event | The event to perform, as defined by the customer's business application. During recording, the name of the event is inserted into the script. For example, the following call to the nca_java_action function means that the `WEBUTIL_WEBUTIL_CLIENTINFO_FUNCTIONS_0_1` object sends the WUC_REGISTER event to the server: `nca_java_action("WEBUTIL_WEBUTIL_CLIENTINFO_FUNCTIONS_0_1", "WUC_REGISTER", "WUC_DATA==WUI|165.245.6.7|Windows XP|jw68959|;|\\|en;WUC_DATA_MULTIPART==1/1;");`
arglist | A list of the Java arguments with their values. The final argument indicates the number of arguments "Count=xxx".

The nca_java_action function performs an event on a Java object using the specified arguments.

If several nca_java functions must be send to the server as a single packet, wrap the set of nca_java calls with nca_step_begin and nca_step_end functions.

## Return Values

Oracle NCA Error Codes

## Parameterization

All arguments of this function may be parameterized using standard parameterization.

## Example

In the following example, the nca_java_actionfunctionexecutes a SHOW_NOTES event for the FLOW_MONITOR object using four arguments.

Copy code

    nca_set_window("Navigator - General Ledger, Vision Operations (USA)");
    nca_tab_select_item("NAVIGATOR_REGIONS", "Processes");

    lr_think_time(19);
    nca_java_action("FLOW_MONITOR_0", "SHOW_NOTES",
                    "P4=152749;P3=10;P2=START;P1=AZNF003;COUNT=4;");

    lr_think_time(9);
    nca_java_action("FLOW_MONITOR_0", "SHOW_NOTES",
                    "P4=152753;P3=10;P2=AZN_NA_ENTJOUR;P1=AZNF003;COUNT=4;");
    nca_java_action("FLOW_MONITOR_0", "SHOW_NOTES",
                    "P4=152755;P3=10;P2=AZN_NA_POSJOU;P1=AZNF003;COUNT=4;");

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